Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-29-2004, 04:16 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 13

Rep: Reputation: 0
permission problems with mounted smb shares

I'm having a hard time setting up a shared folder accessible by a few users in a particular group.

My setup:
SME Server
WinXP client
Linux (Mandrake 10.1 Community) client

My goal:
Allow 6 users to log onto either machine and have access to their own folder (on SME server) and 4 of the users in a particular group to have access to a common folder.

So far:
SME server is configured with one i-bay (shared folder) accessible to users in the group.
XP machine is working fine.
Mandrake machine, however is not working very well. I've set up the fstab file as follows:

//smeserver/user1folder /home/user1/Desktop/User1 smbfs credentials=/etc/samba/auth.smeserver.user1,uid=503,gid=502 0 0
//smeserver/user2folder /home/user2/Desktop/User2 smbfs credentials=/etc/samba/auth.smeserver.user2,uid=504,gid=502 0 0
etc.... for other 4 users
//smeserver/sharedfolder /home/common smbfs user, credentials=/etc/samba/auth.smeserver.user1,exec 0 502

The mounted folders on each users desktop is working fine. Appropriate write access is given to the user.
The shared folder (mounted to /home/common), however, is stuck on root/root and group is only given read-only access.

I know that the SME server is configured fine, because the common folder functions properly on the WinXP machine. I've tested by creating a file by one user and then erasing it by another user.

Any suggestions?
Old 12-29-2004, 05:26 PM   #2
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
You could set the sticky-bit on the group of your folder, and add in your smb.conf, at the point where you defined your share:
inherit permissions = yes
ie, set your group to "privUsers" and chmod g+s
this would do the trick for the file permissions....
Old 12-29-2004, 10:26 PM   #3
LQ Newbie
Registered: Sep 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Still doesn't work. Any other ideas?

FYI ... when I remove that line (for documents share) from fstab and restart, the folder permissions are configured properly. And the permissions on the folder on the server are set up properly as well. It seems that my fstab entry must be problematic. Are there any options I should be setting there to "force" the group?

Thanks again!
Old 12-29-2004, 11:48 PM   #4
LQ Newbie
Registered: Sep 2003
Posts: 13

Original Poster
Rep: Reputation: 0
The plot thickens!

Still working on this problem and I'm almost there. I can now create directories/files and erase files, but for some reason I can't remove directories. I had to add entries for fmask=760 and dmask=3770 to even have partial write access to the shares. I've done some experimenting and have found the following (if it's any benefit in troubleshooting my problem).

1) If I browse to the SMB share with Konquerer (smb://smeserver/sharedfolder), then I can erase folders. Interestingly, the same folders have different permissions and owners there than when I get properties on the same folders in the mount. I'd just scrap the whole mounting thing altogether, except you can't save directly to SMB shares unless they're mounted - you can only copy files there.

2) I can't unmount any of my SMB shares, even as root.

Thanks for any guidance anyone can provide.



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
Problems with SMB shares after suspend/restore sjr Linux - Networking 5 11-19-2005 10:40 PM
Problems with mounted Samba shares Fozza Linux - Software 1 12-09-2004 04:00 PM
SMB shares to OS X MadTurki Linux - Networking 6 12-02-2003 06:59 PM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM
Problems connecting to samba shares from w2k or XP systemafter configuring smb.conf f marvc Linux - Software 0 06-09-2003 07:12 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:41 PM.

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