LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Query regarding group users' privileges (https://www.linuxquestions.org/questions/linux-newbie-8/query-regarding-group-users-privileges-678180/)

vikram8jp 10-21-2008 08:34 PM

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
JAVA_HOME=/usr/local/jdk1.6.0_10
export JAVA_HOME
[admin~]#

Note:
----------------------
I'll be editing this post as and when I have more questions regarding this setup. Thanks for all the help.

chrism01 10-21-2008 08:37 PM

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.

vikram8jp 10-21-2008 08:46 PM

Thanks buddy,

That answers my question. I'll be posting back if I have some query.

Quote:

Originally Posted by chrism01 (Post 3318182)
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.


vikram8jp 10-22-2008 12:33 AM

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?

chrism01 10-22-2008 07:11 PM

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.

vikram8jp 10-22-2008 09:37 PM

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.