Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-11-2009, 08:57 AM   #1
LQ Newbie
Registered: Jul 2006
Location: Yardley, PA.
Distribution: Ubuntu, CentOS, Slackware, openSUSE
Posts: 25

Rep: Reputation: 0
Arrow samba config question

I'm trying to setup a share (scans) on my server for scans from various users to one directory. The issue is that I want each person to be able to see each others scans but not be able to delete each others scans. The file (PDF) permissions would be inherited from the user so each could not accidentally ease the others. Am I over thinking this because I can't seem to figure it out.

The directory share should have group ownership with all that access as a member of that group. Each uploaded file would have user permissions so another could not delete accidentally or maliciously.

comment = Scan Directory
path = /scans
browseable = yes
writable = yes
valid users = user1 user2 user3
Old 08-12-2009, 01:50 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
You need to use "security = user" in the General section and set the sticky bit on the /scans directory.

Last edited by jschiwal; 08-13-2009 at 03:25 PM. Reason: removed bad umask info
Old 08-12-2009, 01:53 AM   #3
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
I think setting SGID and sticky bit will solve your issue
#chmod g+s <path of scan folder> (set SGID bit)
#chmod o+t <path of scan folder> (set sticky bit)

SGID bit enable groups member to write on same folder, while sticky bit prevent deletion from others(only owner and root can delete that file)

scans folder group owner should be group which member want to access that folder.
chown root:<group> <path of scan folder>
chmod 775 <path of scan folder>

Old 08-12-2009, 06:47 PM   #4
LQ Newbie
Registered: Jul 2006
Location: Yardley, PA.
Distribution: Ubuntu, CentOS, Slackware, openSUSE
Posts: 25

Original Poster
Rep: Reputation: 0
I'm not sure why I didn't even think about the sticky bit. I guess I was over thinking it.

Thanks ninjas! It worked out perfect.


samba, smbconf

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
Samba config question beumont Linux - Software 3 10-08-2008 08:10 AM
Samba config question toonaken Linux - Networking 2 01-10-2007 08:06 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba Config Question firefly2442 Linux - Networking 8 07-20-2003 04:17 AM
Samba Config Question fiburglas Linux - Networking 5 12-15-2002 06:53 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:23 AM.

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