Click to See Complete Forum and Search --> : Individual Login Scripts


sleepingbear
05-17-2002, 12:05 PM
Hello all,
I'm running Zipslack (itty bitty Slackware)and I want to display a login message but only for one user. I'm not using GUI at all (yet).
How can this be done? I'm thinking that I have to modify a file and put in a few echo lines but I'm not sure where to start.
Any assistance is appreciated.

SB

z0mbix
05-17-2002, 12:17 PM
Use /etc/motd for all users or ~/.bashrc for each user to have a different message.

sleepingbear
05-17-2002, 12:32 PM
OK... will try when I boot back into Linux. :)

Unfortunately, I'm one of the lost souls without a "proper" modem thus confined to windows for internet. :(

sleepingbear
05-20-2002, 07:15 PM
ok, tried it, got problem:

.bashrc didn't exist. I created one and it didn't make any difference. I verified that my shell is BASH (echo $SHELL).

Is there anything I'm missing?

Hena
05-21-2002, 02:05 AM
Check your ~/.bash_profile. I've in mine # Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

sleepingbear
05-21-2002, 08:33 PM
Thanks,
Will see if this helps....

-~SB~-