View Full Version : remove fortune from startup
yoohoo2
January 13th, 2009, 03:37
I am trying to prevent fortune from running and dispaying fortune when I log into my server. I was thinking that all I had to do was comment out the line in .login in my home directory. This seems not to be the case. Any clues how I stop it? Thanks.
anomie
January 13th, 2009, 04:13
See the manpages for login(1):
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.
Also, if all you want to do is stop fortune, check both ~/.login and ~/.profile (for Bourne shells).
yoohoo2
January 13th, 2009, 04:36
nice. thank you. was driving me nuts. not really fortune, just the fact that i could'nt see where it was starting.
gnemmi
January 14th, 2009, 19:05
You might want to edit /usr/share/skel/dot.login and /usr/share/skel/dot.profile files too so your new users don't get fortunes active by default.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.