Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, i have a huge problem. Recently i have shared a samba shared directory consists of 100+ files. Unfortunately users who connect to the samba shared directory sometimes accidently delete ...
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    2

    Securing Samba Shared Files



    Hello, i have a huge problem. Recently i have shared a samba shared directory consists of 100+ files. Unfortunately users who connect to the samba shared directory sometimes accidently delete a file without knowing and its a huge problem for me to search every day if each file is still there.

    I need to share the directory where users can read/write to the directory but not delete any files in it. Please, if anyone can help me...

  2. #2
    Just Joined!
    Join Date
    Jun 2005
    Location
    Ljubljana, Slovenia
    Posts
    18
    Hi

    Well, I am not an expert, but I think that write access automatically includes rights to delete files. If files should not be deleted then put them on another samba share with only read access.

    Maybe a thing to try are create masks for files on the samba share. Try the samba guide at http://www.samba.org.

  3. #3
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,322
    If your security model is set up correctly, the users should have read and write access through normal Linux permissions to the files they create. If the delete their own files, then they're behaving stupidly, and that problem isnt one of server admin, but of user education.

    If they're deleting others files, then you should be able to use the normal filesystem permissions to keep everything protected correctly. It just takes a little thought about which user and group permissions you want to set and then applying them correctly. Using subdirectories with different permissions can really help here.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •