LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-11-2009, 08:57 AM   #1
reckless2k2
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.

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

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 658

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>

Thanks
 
Old 08-12-2009, 06:47 PM   #4
reckless2k2
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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 01:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration