LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-23-2008, 10:44 PM   #1
blancs
Member
 
Registered: Mar 2005
Posts: 49

Rep: Reputation: 15
dif motd depending on users group?


how could i set different motd's on login depending on the group the user belongs to? maybe in the bash configs? any links to help me do this would help, was unable to google this one.
 
Old 07-23-2008, 10:53 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
The motd is printed after login but before the login shell is started. You might try adding some logic to your /etc/profile (or /etc/profile.local depending on your distro) which prints an additional message depending on which groups the user belongs to. Remember that a user also belongs to auxiliary groups. The motd message is printed by the login program and not a script.
 
  


Reply


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 to get an motd (or equivalent) to users of gdm? pcardout Linux - Server 2 09-19-2007 01:14 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 06:39 AM
/etc/group - the group users empty Artanicus Linux - General 2 02-22-2005 05:25 AM
Changing a user's group at login depending on the time of day Steve2001 Linux - General 10 10-11-2004 04:29 AM
Script to set different quota depending on User's Group ID TechNett Programming 6 08-09-2004 03:45 PM


All times are GMT -5. The time now is 07:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration