LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-25-2012, 01:31 PM   #1
heuster
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 04-25-2012, 02:50 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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.
Old 04-25-2012, 05:00 PM   #3
heuster
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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?
 
Old 04-25-2012, 06:37 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
better way to organize packages? mma8x Debian 2 11-21-2005 09:21 PM
Compaq Organize webwolf70 Linux - Software 6 05-22-2005 05:20 PM
Organize Backup ddaas Linux - General 1 01-03-2005 07:58 AM
how to organize linux? dr_zayus69 Linux - Newbie 15 09-28-2004 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration