LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-28-2009, 10:02 AM   #1
amitabhmishra80
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
problem related to Samba server


I have shared a directory AmitShare with read-write permission using smb
My smb.conf is-
[global]
workgroup = workgroup
netbios name = smbserver
security = user
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
server string =
guest ok = yes
guest account = samit
; workgroup = workgroup
username map = /etc/samba/smbusers
; encrypt passwords = yes
[share]
writeable = yes
admin users = samit,amitabh
path = /home/AmitShare
; force user = root
available = yes
browseable = yes
valid users = amitabh, samit


Now please tell me that what should I do so that file added by one smb user can not be deleted by another smb user

Last edited by amitabhmishra80; 01-28-2009 at 08:08 PM.
 
Old 01-29-2009, 07:34 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What are the permissions on the /home/AmitShare directory? If both amitabh and samit can write to it, then set the sticky bit. This is what is done for the /tmp directory, and what the Samba documentation (Samba 3 by Example) says to do for directories for world writable shares.

If you are user "amit" and want to prevent "samit" from overwriting or editing it, then change the permissions of the file itself clearing the group and other write flags.
 
  


Reply



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 related issue......... rr_rr_29 Linux - Server 1 03-23-2007 12:36 AM
problem related with DNS server er_gaurav22 Linux - Server 1 08-28-2006 07:48 AM
samba related problem-------- pal Linux - Newbie 4 03-13-2005 03:31 AM
read socket problem (proxy server related) jnusa Programming 9 11-25-2004 09:31 AM
postfix server installation, samba server problem eozdoganci Linux - Networking 0 06-04-2004 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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
Open Source Consulting | Domain Registration