No write permissions on cifs share
Hi There,
I've got a minimal fedora box with a folder mounted to a windows cifs share. I mounted the share as root and can access it fine as root and write. If I try and access the shared folder as another user I can read but I cannot write. If I try to change the ownership to the other user I get permission denied. Can anyone advise? Many Thanks. |
post your /etc/fstab
that will help. also did you set visudo to allow your user access to cifs folder. also the user has to have the exact same name on both systems. ex: on MS Windows computer user name = admin on the Linux box you will need a user named admin this will cause much less issues as MS Windows never plays nice with permissions even in an AD pure windows network. |
an example for the /etc/fstab:
Code:
//IP_address/share <mount_point> cifs noauto,guest,rw,username=<user>,password=<pw> 0 0 Code:
/bin/mount <mount_point>, /bin/umount <mount_point> |
Hi There Guys,
I mounted the share using mount from a root shell. As root I can read/write to the share. I have another user who cant. So this suggests that the fact the username is different to the windows logon name doesn't matter. My /etc/fstab contains Code:
/dev/mapper/vg_ftp-lv_root / ext4 defaults 1 1 |
as you manually mounted the drive, that is why your user can not access the files fully as you desired. again see what i typed above.
|
Thanks for you reply,
So I should put Code:
//servername/DNN /home/wsi/dnn cifs noauto,guest,rw,username=*****,password=***** 0 0 Many thanks. |
It didn't work :(
|
Quote:
again remember the user has to be able to mount/umount the share. If the user can not then the user will never have full access to the share for rwx |
what's visudo? ;\
|
visudo is what controls sudo permissions. this is how user gets to run commands with root level permissions. mount and umount are root commands that user normally does not have access to. by using the visudo you can give permissions to a user they dont own in their group.
Code:
# sudoers file. |
All times are GMT -5. The time now is 06:58 PM. |