LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-21-2008, 08:34 PM   #1
vikram8jp
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: CentOS
Posts: 27

Rep: Reputation: 15
Question 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.
 
Old 10-21-2008, 08:37 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 10-21-2008, 08:46 PM   #3
vikram8jp
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: CentOS
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks buddy,

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

Quote:
Originally Posted by chrism01 View Post
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.
 
Old 10-22-2008, 12:33 AM   #4
vikram8jp
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: CentOS
Posts: 27

Original Poster
Rep: Reputation: 15
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?
 
Old 10-22-2008, 07:11 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 10-22-2008, 09:37 PM   #6
vikram8jp
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: CentOS
Posts: 27

Original Poster
Rep: Reputation: 15
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.

Last edited by vikram8jp; 10-23-2008 at 12:15 AM.
 
  


Reply

Tags
groups



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
Don't letting users do certain things. Privileges. glore2002 Slackware 12 08-14-2008 06:20 AM
permissions not recognizing group or assigned users to group blckspder Linux - Server 1 07-28-2008 10:32 AM
I want a group to nice and renice the processes of other users of the same group tim_c Linux - Newbie 1 01-05-2007 05:39 AM
Adding users to Kubuntu: need admin privileges badbunny Ubuntu 3 03-16-2006 12:35 PM
Samba Users & Groups Privileges Bilal84 Linux - Networking 3 10-11-2005 08:31 AM

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

All times are GMT -5. The time now is 08:59 PM.

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