LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba-share "Directory Locked" (https://www.linuxquestions.org/questions/linux-software-2/samba-share-directory-locked-304067/)

Xstack 03-20-2005 07:14 PM

samba-share "Directory Locked"
 
These specific samba problems may have an easy answer?

PROBLEM-1
The samba share is established over a LAN by a line in /etc/fstab. The fstab spec fmask=664 works correctly, but the dmask=775 does not (RH8 + k2.4.20). Instead of what is specified, the dmask actually imposed is 555, which allows the 'root' user to access the share and read from it ok (although 'root' rarely wants to use this). But 'root' might like to write to the share occasionally. Is there any way to overwrite the default and get a dmask of 775?


PROBLEM-2
Non-root users find that the share is "Directory Locked"? No access at all. Does this mean that a mounting via fstab-line will only facilitate the 'root'-user? Must other users each mount the share for themselves -- like floppies? (Which I guess means adding noauto to fstab and lots of mounting/unmounting from other users -- maybe using AUTOFS?). Or can the share be mounted at startup in such a way as to be available to all users (as many shared local-drive directories are)?

I would be grateful for pointers on this.

Xstack

t3gah 03-20-2005 07:22 PM

Re: samba-share "Directory Locked" http://www.tldp.org/HOWTO/SMB-HOWTO.html
 
Quote:

Originally posted by Xstack
These specific samba problems may have an easy answer?

PROBLEM-1
The samba share is established over a LAN by a line in /etc/fstab. The fstab spec fmask=664 works correctly, but the dmask=775 does not (RH8 + k2.4.20). Instead of what is specified, the dmask actually imposed is 555, which allows the 'root' user to access the share and read from it ok (although 'root' rarely wants to use this). But 'root' might like to write to the share occasionally. Is there any way to overwrite the default and get a dmask of 775?


PROBLEM-2
Non-root users find that the share is "Directory Locked"? No access at all. Does this mean that a mounting via fstab-line will only facilitate the 'root'-user? Must other users each mount the share for themselves -- like floppies? (Which I guess means adding noauto to fstab and lots of mounting/unmounting from other users -- maybe using AUTOFS?). Or can the share be mounted at startup in such a way as to be available to all users (as many shared local-drive directories are)?

I would be grateful for pointers on this.

Xstack

SAMBA HOWTO
http://www.tldp.org/HOWTO/SMB-HOWTO.html

The Official Samba-3 HOWTO and Reference Guide
http://www.samba.org/samba/docs/man/...TO-Collection/


All times are GMT -5. The time now is 09:32 AM.