LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-18-2009, 10:54 PM   #1
KFC123
Member
 
Registered: May 2009
Posts: 47

Rep: Reputation: 15
About maintaining lots of account


I have a cluster in which lots of user are using. For some users, I have to configure the enviornment (in .bashrc) as A and for some others, I have to configure that as B. Moreover, for some of them, I don't allow them to use a certain software. So how to do this kind of job more efficient? For example, if there is any service such that I can group some user, configure the environment and set their right once?
 
Old 06-19-2009, 12:44 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
Quote:
Originally Posted by KFC123 View Post
I have a cluster in which lots of user are using. For some users, I have to configure the enviornment (in .bashrc) as A and for some others, I have to configure that as B. Moreover, for some of them, I don't allow them to use a certain software. So how to do this kind of job more efficient? For example, if there is any service such that I can group some user, configure the environment and set their right once?
There are a lot of tools that you may consider using..
* You can perhaps use netgroups (typically with and LDAP solution too). They are very flexible, but I'm not sure if they provide exactly the kind of control you're after
* Use a configuration management tool such as Puppet of CFengine.
* Set up a sudo solution to control access to services. You can use netgroups to fine grain access control
* ACLs


Regards,
kenneho
 
Old 06-19-2009, 04:00 PM   #3
KFC123
Member
 
Registered: May 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for all these suggestions. I am thinking if the following is possible?

In my case, I will modify the path of the installed software and other parameters quite often. So if I did make some modification, I have to modify .bashrc for all users. Is that possible to write a common bashrc and everytime when the user logon, within his/her .bashrc, just include the common bashrc?

For example,

# common bashrc
PATH=$PATH: .....

# user A's bashrc
....
include common bashrc (I don't know if there is any command called 'include' for that purpose)
 
Old 06-21-2009, 01:56 AM   #4
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
"man bash" says this:

Quote:
When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist.
So when a user log in, the /etc/bash.bashrc (the file name may differ from linux distros) is executed before the user's own bashrc. Is this what you're looking for? Now you only need to host the /bash/bash.bashrc file, which can be done by RPM-files, Puppet/CFengine, custom scripts, or whatever.
 
  


Reply



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
Maintaining a Kernel With both New and Old Computers Woodsman Slackware 6 08-11-2008 09:36 AM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
maintaining website nadine.mauch Linux - General 3 07-07-2004 09:38 AM
Maintaining Updates ltsai Linux - Software 0 10-02-2003 12:37 AM
Looks like 2.5 kernel is almost here - and AC won't be maintaining 2.4! jeremy Linux - General 0 11-02-2001 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:35 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