LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   SMB shares and fstab (https://www.linuxquestions.org/questions/fedora-35/smb-shares-and-fstab-130057/)

sfagundes 12-30-2003 08:54 AM

SMB shares and fstab
 
I am mounting smb shares from a Win2k3 server for our linux users. I want it to be automatic so I am trying to use fstab. here is the entry I currently have:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
//homer/Files /mnt/ram/homer smbfs username=user,password=pass,gid=500,mode=666 0 0

The share is mounting, however I need the users to have read and write acces on this volume. I also tried mode=777 which did not work....

thanks in advance.............

Mathieu 12-30-2003 11:47 AM

You will need to use the umask option.
The umask value is an octal number (i.e. 4 digits) that represent the bitmask of the permissions that are not present.
If you want to set the permissions to read and write, the umask will be 0111.


All times are GMT -5. The time now is 06:48 AM.