I mount a samba share with the following command:
# mount -t cifs //192.168.1.1/username pc -o username=username,password=xxxxx
But only root can go inside that share.
How to allow users read/write in the share?
mountsamba
I mount a samba share with the following command:
# mount -t cifs //192.168.1.1/username pc -o username=username,password=xxxxx
But only root can go inside that share.
How to allow users read/write in the share?
Best Answer
If only one user needs read/write access, you can make him owner of the mounted directory using the option
uid=<linux_username>
:If more than one user need read/write access, you can create a group, add the users to it:
then mount the share using options
gid
,file_mode
anddir_mode
:More information:
mount.cifs
manual page.