LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Creating Users in Linux with specific rights: Issue?? (https://www.linuxquestions.org/questions/linux-software-2/creating-users-in-linux-with-specific-rights-issue-462556/)

rajnair0278 07-10-2006 05:10 AM

Creating Users in Linux with specific rights: Issue??
 
Hello folks, can somebody out there assist me with creating users in Linux using the command prompt and assign rights?? I am pretty new to this OS and running real short of time. I mean that user should only have installation rights and should not be able to view my document root i.e. /usr/local/apache/htdocs that has me client web pages. Is it possible?? Any help will be appreciated. Thx in advance

jtshaw 07-10-2006 07:24 AM

There are a few ways to accomplish this task. The traditional unix way would be to make sure your files in /usr/local/apache/htdocs are not world readable and to make sure your user isn't in the owning group (or isn't the owner) of the files. As far as allowing installation, wherever you want this installation to occur you would have to give the user write privilages either through a group or by making the new user the owner of the area.

The only way to accomplish this is with ACL's. This is a bit more complicated and not all systems support it, but I have included a link below that goes over the basics.

Linux File Permissions.
ACL Manual.


All times are GMT -5. The time now is 01:20 AM.