Click to See Complete Forum and Search --> : Sharing files through samba


MarkLeong
09-27-2001, 10:56 PM
I have 3 files shared directory (/home/shareddata) in a samba box:-

a.dat, b.dat, c.dat

I want users to be able to read and write to the above files but not delete them. I also want users to be able to create new files in /home/sharedata and delete those files they created (but not a.dat, b.dat, c.dat).

Can somebody help me with the samba.conf file setup?

Thanks in advance

d23
09-28-2001, 09:52 AM
Not sure that Samba allows you that kinda of flexibility. Maybe an FTP server would, if it's really good. It sounds like that kind of strict control is really what you're looking for. In any case, I think with Samba it comes down to the permissions of the samba user logged into the machine or the larger Samba group they're a part of. Mind you, I just set up Samba for the first time yesterday, but that was the impression I got while doing it. Samba lays down the track between the towns, but Linux lays down the law within the city gates.

MarkLeong
09-28-2001, 10:40 AM
I could do the above using WinNT and was hoping that samba could do the same so that I could move the files to a Linux file server.

Any other suggestions?

knute
09-28-2001, 10:59 AM
You may want to look into setting the sticky bit on that directory.
Check the chmod man page for info.