LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-16-2006, 02:24 PM   #1
Tailer
Member
 
Registered: Jul 2006
Distribution: Ubuntu
Posts: 34

Rep: Reputation: 15
How to disable fortunes at login


Hello.
I'm searching the login file that contains the command "fortune" at login.
Can you help me?
Thank you!
 
Old 09-16-2006, 03:12 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
chmod -x /etc/profile.d/bsd-games-login-fortune.*
 
Old 09-17-2006, 08:48 AM   #3
Tailer
Member
 
Registered: Jul 2006
Distribution: Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
Thank you very much!
 
Old 09-17-2006, 08:56 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
You're welcome.
The code you were searching for is in /etc/profile:
Code:
# Append any additional sh scripts found in /etc/profile.d/:
for profile_script in /etc/profile.d/*.sh ; do
  if [ -x $profile_script ]; then
    . $profile_script
  fi
done
so making the script non-executable disables the fortune text at login.
 
  


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 disable *any* remote login? lmmix Linux - Security 3 03-07-2005 04:51 AM
fortunes getting annoying nny0000 Slackware 4 02-25-2004 01:55 PM
fortunes Linuxcookie & LQ Mod Tinkster General 0 05-21-2003 08:35 PM
disable login juno Linux - General 1 10-25-2002 05:50 AM
Fortunes MasterC General 14 10-06-2002 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:27 PM.

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