You are not logged in.

#1 2018-01-22 19:59:46

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

[SOLVED] CIFS mounting UK BT Router

I'm a little stumped by this, and it's an issue I've only become aware of since I grabbed a RasPi, but it's affecting my Arch installs. Full disclosure, I have two Arch only machines (my main desktop, and a laptop), and one local Raspian machine. I also have a Debian remote machine, but that isn't a part of the problem.

I'm in the UK with a BT Homehub 5, and I have a 500Gb USB drive plugged into the HomeHub. This drive is a media drive, for use by the RasPi with a plex server. As far as the Raspberry is concerned, read only is fine. However, rather than waste disk space, I'm also using the drive for Music and Videos, soft-linked to my Arch machines, as /home/Music and /home/Videos.

Mounting via fstab is working fine, and I can read alll the files without issue. However, unless I sudo, I have no write access, which is a bit of a nuisance if I want to add to my collection. (e.g. tonight I've ripped a couple of my CDs, which I've had to rip to a local drive, and will now have to sudo copy to the shared drive).

On the HH5, there's no password to mount the drive (though I have to use the password= option in fstab), but I can't mount with user permissions.

My fstab entry (on my Arch machine) is:

#CIFS
//192.168.1.254/Data				/mnt/NFS		cifs		vers=1.0,username=steve,password=	0	0

The "username=" option makes no difference whatsoever.

Any ideas how to get a user access mount?

Last edited by Roken (2018-01-24 06:00:15)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#2 2018-01-22 20:04:59

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] CIFS mounting UK BT Router

What are the permissions on /mnt/NFS ?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-01-22 20:10:21

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: [SOLVED] CIFS mounting UK BT Router

Thanks for the reply. I created /mnt/NFS as root, then chown to normal user. However, after mounting, perms revert to root.

Share not mounted:

drwxr-xr-x  2 steve 4.0K Jan 20 10:56 NFS

And after mounting

drwxr-xr-x  4 root     0 Dec 31  1600 NFS

Last edited by Roken (2018-01-22 20:12:59)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#4 2018-01-23 08:20:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,742

Re: [SOLVED] CIFS mounting UK BT Router

Pass the GID and UID of your intended user to the mount options i.e.

uid=videl,gid=videl

and/or chown the mount point and pass the users option, not sure how well that last one works  I do the first part


See https://wiki.archlinux.org/index.php/Sa … l_mounting as well.

Last edited by V1del (2018-01-23 08:22:59)

Offline

#5 2018-01-24 05:59:54

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: [SOLVED] CIFS mounting UK BT Router

Thank you. Worked.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

Board footer

Powered by FluxBB