Query regarding group users' privileges
Hello all,
I have some questions regarding my setup of CentOS 4.6 machine. Scenario: ---------------------- 1. I have made 4 user accounts, all belong to a group - developers. One user, admin is also in a group "admin". 2. I am going to install various Java tools on admin account. Like right now, I have installed JDK from admin account. Questions: ---------------------- 1. I am configuring ~/.bash_profile to have an environment variable JAVA_HOME exported. I want this configuration done for all users in "developers" group, automatically, when they login. Can this be done? Code:
[admin~]# vi ~/.bash_profile ---------------------- I'll be editing this post as and when I have more questions regarding this setup. Thanks for all the help. |
You can add that to each user's individual profile, or you can edit /etc/profile to add it to all people in that group.
|
Thanks buddy,
That answers my question. I'll be posting back if I have some query. Quote:
|
Hello all,
About the setup on my CentOS machine, I have a question again. Scenario: ---------------------- 1. I have made 4 user accounts, all belong to a group - "developers". One user, admin is also in a group "admin". 2. I want to install several Java applications on this machine, to be used by users of group "developers" and installed by user "admin". Question: ----------------------- 1. Is this a good idea? I mean installing applications like J2EE server, MySQL is going to require root privileges. Even if I sodu the admin user for all admin commands, that still doesn't make any sense. I should install applications from root itself, right? |
Normally you'd use the std Centos install as root and it'll install as needed. Usually MySQL will run as its own user. You'd then add accts inside the DB for users.
For J2EE I wouldn't know, but the normal Linux perms should be sufficient I'd have thought. |
Ok Chris thanks for you time. Yes, earlier I was having a problem with MySQL as well, but now I have fiddled it into working. :)
I will create accounts for users in database now. Thank you. |
All times are GMT -5. The time now is 06:15 PM. |