Sponsored Content
Full Discussion: motd for different users
Top Forums UNIX for Advanced & Expert Users motd for different users Post 20400 by vancouver_joe on Thursday 25th of April 2002 03:43:38 PM
Old 04-25-2002
motd for different users

Hi,

I was hoping to get some help on this question:

I have different groups of users logging into our servers and I would like to set it up so that when they login they could get an update from the motd.

How do I set it up so that I can have one group see a different motd than the system motd?

Thanks.

VJ
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

MOTD File?

Anyone know how to change the location of the MOTD file from the default /etc/motd? An annoying person with root access has found out how to edit the file and change my MOTDs. Help me. (14 Replies)
Discussion started by: Rex00me
14 Replies

2. UNIX for Dummies Questions & Answers

Linux help on X and motd

Hie guys im new to Unix. Need some advise or favour perhaps. Iam running Red hat Linux 7.2 and as soon as i install with GUI and so done, i reboot the system. After i reboot it directly went to the GUI login. I able to login and do my stuffs. My question is how to hold the system not to directly... (4 Replies)
Discussion started by: ###1tomato
4 Replies

3. UNIX for Dummies Questions & Answers

Dynamic MOTD

Hello all, I'm looking for a way to have motd display something different when users log in based on what groups they belong to. I'm network administratinng at a college and professors would like to have different posts come up to students when they log in based on the different classes they are... (1 Reply)
Discussion started by: hoppese
1 Replies

4. Shell Programming and Scripting

replacing old motd with new motd

I need to replace the current /etc/motd text file with a new motd across 30+ servers. Which is the best way to do this? Shell script? sed? Does anyone have an example I can use? Thanks in advance. Unix people are the best!!! :) (2 Replies)
Discussion started by: antalexi
2 Replies

5. UNIX for Dummies Questions & Answers

/etc/motd

Hi I do get the message of the day upon logging in to my machine(Solaris 9). I do NOT have a .hushlogin file in my home directory. Any ideas :-) (7 Replies)
Discussion started by: run_time_error
7 Replies

6. UNIX for Dummies Questions & Answers

Motd

Does anyone know how to get the IP Address of the connecting client to apear in the MOTD I am new to linux and I was wondering if this was possible thanks in advance. :D :confused: :D (4 Replies)
Discussion started by: DragonLenage
4 Replies

7. Linux

Motd

In which login startup script is the motd displayed? Red Hat 4AS As I understand it, upon login (bash) it hits /etc/profile ~/.bash_profile ~/.bash_login ~/.profile I went through the scripts and the associated scripts (/etc/profile.d/*.sh) but don't see where it's being displayed... (5 Replies)
Discussion started by: BOFH
5 Replies

8. Linux

From where does motd data comes?

Hi, I am using Ubuntu 10.04 desktop and whenever I login to the xterm terminal through ssh, I am getting the following motd (message of the day) info. Linux desktop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux Ubuntu 10.04.2 LTS Welcome to Ubuntu! *... (1 Reply)
Discussion started by: royalibrahim
1 Replies

9. UNIX for Dummies Questions & Answers

Default motd for different OS

Hello, which is the default motd for the different following different OS versions? RHEL: has no default motd? HP-UX: no motd but cat /etc/copyright in /etc/profile: (c)Copyright 1983-2003 Hewlett-Packard Development Company, L.P. (c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the... (2 Replies)
Discussion started by: asanchez
2 Replies

10. UNIX Desktop Questions & Answers

/etc/motd - queries

If I have /etc/motd, he is file or directory? I saw that some call them folders and files others... Which option is better? I knew that being a director, but many told me not. Thank you! (1 Reply)
Discussion started by: mescu
1 Replies
LOGIN(1)						    BSD General Commands Manual 						  LOGIN(1)

NAME
login -- authenticate users and set up their session environment SYNOPSIS
login [-Ffps] [-a address] [-h hostname] [user] DESCRIPTION
The login utility logs users (and pseudo-users) into the computer system. If no user is specified, or if a user is specified and authentication of the user fails, login prompts for a user name. Authentication of users is done via passwords. If the user can be authenticated via S/Key, then the S/Key challenge is incorporated in the password prompt. The user then has the option of entering their Kerberos or normal password or the S/Key response. Neither will be echoed. The options are as follows: -a The -a option specifies the address of the host from which the connection was received. It is used by various daemons such as telnetd(8). This option may only be used by the super-user. -F The -F option acts like the -f option, but also indicates to login that it should attempt to rewrite an existing Kerberos 5 creden- tials cache (specified by the KRB5CCNAME environment variable) after dropping permissions to the user logging in. This flag is not supported under pam(8). -f The -f option is used when a user name is specified to indicate that proper authentication has already been done and that no password need be requested. This option may only be used by the super-user or when an already logged in user is logging in as themselves. -h The -h option specifies the host from which the connection was received. It is used by various daemons such as telnetd(8). This option may only be used by the super-user. -p By default, login discards any previous environment. The -p option disables this behavior. -s Require a secure authentication mechanism like Kerberos or S/Key to be used. This flag is not supported under pam(8). If a user other than the superuser attempts to login while the file /etc/nologin exists, login displays its contents to the user and exits. This is used by shutdown(8) to prevent normal users from logging in when the system is about to go down. Immediately after logging a user in, login displays the system copyright notice, the date and time the user last logged in, the message of the day as well as other information. If the file ``.hushlogin'' exists in the user's home directory, all of these messages are suppressed. This is to simplify logins for non-human users. login then records an entry in the wtmp(5) and utmp(5) files, executes site-specific login commands via the ttyaction(3) facility with an action of "login", and executes the user's command interpreter. login enters information into the environment (see environ(7)) specifying the user's home directory (HOME), command interpreter (SHELL), search path (PATH), terminal type (TERM) and user name (both LOGNAME and USER). The user's login experience can be customized using login class capabilities as configured in /etc/login.conf and documented in login.conf(5). The standard shells, csh(1) and sh(1), do not fork before executing the login utility. FILES
/etc/login.conf login class capability database /etc/motd message-of-the-day /etc/nologin disallows non-superuser logins /var/run/utmp list of current logins /var/log/lastlog last login account records /var/log/wtmp login account records /var/mail/user system mailboxes .hushlogin makes login quieter SEE ALSO
chpass(1), newgrp(1), passwd(1), rlogin(1), skey(1), getpass(3), ttyaction(3), login.conf(5), passwd.conf(5), utmp(5), environ(7), kerberos(8), pam(8) HISTORY
A login appeared in Version 6 AT&T UNIX. TRADEMARKS AND PATENTS
S/Key is a trademark of Bellcore. BSD
November 19, 2008 BSD
All times are GMT -4. The time now is 09:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy