LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2005, 08:14 PM   #1
Xstack
Member
 
Registered: Jan 2003
Location: NZ
Distribution: RedHat 8
Posts: 44

Rep: Reputation: 15
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
 
Old 03-20-2005, 08:22 PM   #2
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing groupadd to execv() returned error msg: "file already locked." walwali Programming 9 11-22-2010 07:36 AM
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 02:19 AM
Authenticating to Samba share using "Active Directory Server" hlslaughter Linux - Software 36 07-23-2004 11:59 AM
Error: "mysqld dead but subsys locked" mikeshn Linux - Software 1 01-01-2004 06:18 PM
i just finished typing "./configure" and "make" in mplayer directory... kublador Linux - General 4 02-22-2003 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration