Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, is there a possibility to change the user permissions, so that the user can onyl read and delete files in a specified folder but can not write a file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    5

    advanced folder and file permissions


    Hello,

    is there a possibility to change the user permissions, so that the
    user can onyl read and delete files in a specified folder but can not write a file or create a folder ?
    I experimented with chmod, chown and chattr but no success.
    The filesystem is ext4.
    Can anybody help me ?

    Best regards
    B.-D.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,517
    Not specifically with normal directory permissions. Removing write permission on the directory will allow users to edit files, but not create or delete them. However, if you enable SELinux on your system, then you can use access control lists (ACLs) to do what you want, I believe.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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