Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-27-2002, 03:07 PM   #1
LQ Newbie
Registered: May 2002
Location: Alabama, USA
Distribution: Redhat 7.2
Posts: 2

Rep: Reputation: 0
Question Can You Set Up Custom Logins Using Groups?

I am new to Linux. We just setup this new Linux server running Redhat 7.2. I have already created the 30+ users. The users I created are going to run an application that is installed on the server. I know I can set it up in their bash_profile so that everytime they login it will shoot them directly to the App, but what I would like to know is there a way I can modify the group that the user is assigned to so that if a user is in that particular group it will do the above for me? I just want to know if their is a easier way then modify all of the bash_profiles. Please Help

Thanks in advance
Old 05-27-2002, 03:55 PM   #2
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
you can link .bash_profiles to one file whichis the one you want
Old 05-28-2002, 04:12 AM   #3
Registered: May 2002
Posts: 179

Rep: Reputation: Disabled
yes, you can make symbolic links, but you will have to do it thirty times. here's an example (assuming /usr/local/bin/ is the script you want to run for group1)

ln -sf /usr/local/bin/ /home/_user_/.bash_profile

you need to do this for each user. to modify the groups, edit /etc/group...there might be a graphical way of doing this, but i don't know it. entries are comma separated
group1: user1, user2

Old 05-28-2002, 04:32 AM   #4
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
I think that all users load /etc/profile and /etc/bashrc so if you put it there and maybe do check (if gid = "yourgid" then run something)


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
How can I create custom keyboard shortcuts in Gnome? (not the ones they have set!) DreameR-X Linux - General 2 06-12-2005 06:56 AM
Creating a custom Debian CD set oneguy Debian 2 01-20-2005 12:39 AM
Custom-Made Installation DVD from 4-CD ISO Set? jdanniel Linux - Newbie 1 08-07-2004 02:06 PM
Can I put a 2.6x kernel on a custom set of ISOs and use it to install? lowpro2k3 Red Hat 1 03-26-2004 01:03 AM
su root command returns 'cannot set groups...' golgotha Linux - Newbie 2 04-08-2003 10:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:11 PM.

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