Find the answer to your Linux question:
Results 1 to 4 of 4
Hello there! At first i must say, that at google didn't founded anything useful, or i'm searching with wrong keywords. Basicly i need that user can read / write / ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    5

    [SOLVED] Allow user read, write & exec only in home dir

    Hello there!

    At first i must say, that at google didn't founded anything useful, or i'm searching with wrong keywords.

    Basicly i need that user can read / write / exec only in his home directory. He is allowed to read other directorys / files, but nothing more - just read.

    How can i do that?

  2. #2
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    How different is this than the default? Users are given those permissions for their home directories.

    The only difference I see is that users are able to execute things outside their home directories but they need this to execute programs.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  3. #3
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    By default users are only allowed to write to their /home/ directory. As far as executing goes... you might change their PATH to only include /home/username instead of /bin/ and /usr/bin/. However that would make the system functionally useless since they couldn't even list directories with "ls" unless they had exec privileges against /bin/.

    I guess I'm confused as to what you're trying ultimately do here. Can you give us a more broad picture of what's happening?
    Registered Linux user #270181
    TechieMoe's Tech Rants

  4. #4
    Just Joined!
    Join Date
    Apr 2008
    Posts
    5
    Oh, thank you. I'm stupid - thought all the time, that they can write outside their home dir too.

Posting Permissions

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