Results 1 to 10 of 15
I've got the following line in my fstab:
Code:
//bullwinkle/scolgan /home/sean/CSMEG_scolgan cifs noauto,user,sync,username=scolgan%<my_password>,uid=sean,gid=users,file_mod=0755,dir_mode=0755 0 0
This is to mount a W2K3 server share. This is on a laptop so I'm ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-05-2005 #1
'user' option in fstab
I've got the following line in my fstab:
This is to mount a W2K3 server share. This is on a laptop so I'm not always connected to that network, thus the 'noauto' (use of 'auto' would probably obviate this issue).Code://bullwinkle/scolgan /home/sean/CSMEG_scolgan cifs noauto,user,sync,username=scolgan%<my_password>,uid=sean,gid=users,file_mod=0755,dir_mode=0755 0 0
I've also included the 'user' option. This is supposed to let me mount this share as a user correct? For some reason this is not the case. I must su- root first.
This is the error I get as a user:
My guess is that this is because 'user' is also an option for mount.cifs and it's somehow being applied to that instead. I'm using the 'username' option for cifs to try to resolve this but, as you can see, no love.Code:sean@Iago:~> mount /home/sean/CSMEG_scolgan/ mount error 1 = Operation not permitted Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Anyone have any thoughts on this?HP Pavilion dv6000t
Intel Centrino Duo 2.0GHz
nVidia GeForce Go 7400
Fedora 10
----------------------
The real question is what time is it and why the hell am I still screwing around with my computer?
- 10-05-2005 #2Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
Try using "users" instead of "user". The only differense is that all users can umount it again and such.
- 10-05-2005 #3
so I replaced the 'user' option in fstab with 'users'. Here's the fstab entry now:
now I'm getting a new problem:Code://bullwinkle/scolgan /home/sean/CSMEG_scolgan cifs noauto,users,sync,username=scolgan%<my_password>,uid=sean,gid=users,file_mod=0755,dir_mode=0755 0 0
which I'm getting for both users and root. so it's fixed the permission issue I guess but maybe is still getting confused by the 'users' & 'username' options?Code:sean@Iago:~> mount /home/sean/CSMEG_scolgan/ username specified with no parameter
HP Pavilion dv6000t
Intel Centrino Duo 2.0GHz
nVidia GeForce Go 7400
Fedora 10
----------------------
The real question is what time is it and why the hell am I still screwing around with my computer?
- 10-06-2005 #4Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
Try without the UID and GID options, if your user mount it, then it will probably be mounted with that owner as well.
- 10-08-2005 #5
Try 'user=' instead of 'username='.
Also, 'file_mod=' -> 'file_mode='.
- 10-08-2005 #6
Is there a way of loading changes to the fstab without restarting?
HP Pavilion dv6000t
Intel Centrino Duo 2.0GHz
nVidia GeForce Go 7400
Fedora 10
----------------------
The real question is what time is it and why the hell am I still screwing around with my computer?
- 10-08-2005 #7Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
umount the partition you changed entry for
Originally Posted by pajamabama
run "mount -a"
- 10-09-2005 #8
The 'noauto' option will render "mount -a" ineffective for that device.
Suggestion:
Execute: umount /home/sean/CSMEG_scolgan/
Edit fstab and save.
Execute: mount /home/sean/CSMEG_scolgan/
NOTES:
From the mount.cifs man-page:
(Emphasis mine.)user=arg
specifies the username to connect as. If this is not given, then the environment variable USER is used. This option can also take the form "user%password" or "user/workgroup" or "user/workgroup%password" to allow the password and workgroup to be specified as part of the user name.
Cifsfs has the parameter user=, not username=, like smbfs.
'user' and 'user=' should both be usable together. Try placing the 'cifs' options first, followed by the standard mount options.
- 10-09-2005 #9
I've tried both the 'user' and 'username' options for cifs. The 'username' option is still valid, I believe, for backwards compatability. I tried 'username' because I thought that might aleveiate the confusion with the mount 'user' option. So far though, nothing seems to have solved it.
It's not a big deal, because I can just su- root to mount the share. But gosh-drat-it, I want this thing to work like it's supposed to.HP Pavilion dv6000t
Intel Centrino Duo 2.0GHz
nVidia GeForce Go 7400
Fedora 10
----------------------
The real question is what time is it and why the hell am I still screwing around with my computer?
- 10-09-2005 #10Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
Maybe yast does the trick for you?


Reply With Quote
