Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-25-2012, 01:31 PM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 2
Rep:
|
How to organize my server
Let me explain the server and how I want things to work:
Server has an application with 10 instances running on it.
/var/hp/app1
/var/hp/app2
/var/hp/app3
etc.
Currently I have all folders owned by a user called 'admin' and all folders are assigned to the group 'suppadmin'
What I would like to do is create a user for each application. So a user would be created for app1 and that user would ONLY have access to the application running in /var/hp/app1.
The admin user would continue to have access to all /var/hp/ folders
what is the best way to accomplish this?
|
|
|
04-25-2012, 02:50 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Hi, welcome to LQ!
Using POSIX only ...
Make admin member of suppadmin, and grant that group rwx on all files
in all directories, potentially make the group sticky (chmod -R g+s /var/hp/*).
Using ACLs ... depending on the file-system you chose on install you
may be able to use ACLs to accomplish what you're asking. man setfacl
Cheers,
Tink
|
|
1 members found this post helpful.
|
04-25-2012, 05:00 PM
|
#3
|
LQ Newbie
Registered: Apr 2012
Posts: 2
Original Poster
Rep:
|
admin is already a member of suppadmin. I need to add new users that are only granted exclusive access. Sorry don't know what ACLs are.
Is there a diff organization of users/folders that accomplishes the same thing without the addon utils?
|
|
|
04-25-2012, 06:37 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Well, if you make the main directories (/var/hp/app1, app2, and so forth)
owned by the respective app-user, and DON'T add them to suppadmin (and, of
course, make the directories o-rwx) you got what you wanted.
|
|
|
All times are GMT -5. The time now is 11:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|