Find the answer to your Linux question:
Results 1 to 5 of 5
Hi guys i have a fedora in my system and i am using it as a ftp server. i want to create 5 diffrent users , where each one can ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5

    Cool hOW to do this??

    Hi guys
    i have a fedora in my system and i am using it as a ftp server.


    i want to create 5 diffrent users , where each one can upload his files in one file (this file is common for all of them )
    what i wana do is to let eveyone can upload his file , and the others can download it but they cant delete it or modofiy it .
    can someone please let me know how to do this?


    thanks

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    So what you want is 5 users. Each user can upload their files to a particular directory, but they cannot affect any files but their own in that directory?

    This is precisely what the sticky bit is for. As you (should) know, write permissions on a directory allow users to create and delete files inside that directory. The sticky bit on a directory means that only the file's owner, directory's owner, and the superuser can delete or rename files inside of that directory.

    So basically, you want the permissions of the directory to be:

    rwxrwxrwt # t = sticky bit
    Owner: root
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5
    Hi
    thanks alot for your answer but i have a problem to chmod the file

    i tried this command and it didnt work

    chmod rwxrwxrwt # t filename

    is that what you mean??

    thanks

  4. #4
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    The permissions of the directory should be 1777:
    Code:
    chmod 1777 directory
    DISTRO=Arch
    Registered Linux User #388732

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5
    Thanks alot , Woking 100%

Posting Permissions

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