View previous topic :: View next topic |
Author |
Message |
Mitzi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Southpark/avatar18.gif)
Joined: 16 Dec 2003 Posts: 45 Location: Cheshire, UK
|
Posted: Mon Feb 16, 2004 12:08 pm Post subject: Setting file permissions at mount time? |
|
|
Hi,
At the moment everytime I mount a Windows share all files are given the execute file permission. Can I change this default behaviour so everytime I mount a smbfs share it is given a read/write permission only?
I have tried mount -t smbfs -o umask=644 but the file permissions are unchanged.
Any ideas?
Cheers! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Janne Pikkarainen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10433783463f526aba4144d.jpg)
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Mon Feb 16, 2004 12:32 pm Post subject: |
|
|
I think that it should be fmask instead of umask when using smbfs. You may also need to use dmask which is like fmask but changes directory permissions. _________________ Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.". |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mitzi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Southpark/avatar18.gif)
Joined: 16 Dec 2003 Posts: 45 Location: Cheshire, UK
|
Posted: Mon Feb 16, 2004 1:46 pm Post subject: |
|
|
Excellent! fmask=644 worked a treat!
Many thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|