Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-23-2008, 09:44 PM   #1
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, 09:53 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.


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 12: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 05:39 AM
/etc/group - the group users empty Artanicus Linux - General 2 02-22-2005 04:25 AM
Changing a user's group at login depending on the time of day Steve2001 Linux - General 10 10-11-2004 03:29 AM
Script to set different quota depending on User's Group ID TechNett Programming 6 08-09-2004 02:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:23 AM.

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