Click to See Complete Forum and Search --> : issue.net reverting to previous message


satman39
10-03-2000, 02:12 PM
I keep editing the issue.net file to display a logon banner however it reverts back to the original after a period of time. How do I keep my logon message without it reverting back to the original?

sevyn
10-03-2000, 02:17 PM
what are you trying to get it to say , have you just tried to edit message of the day file instead?

sirrab
10-03-2000, 07:07 PM
a file called rc.local recreates the issue files on every reboot. Maybe even more often

Have a look at it, should be in /etc/rc.d

sirrab

Craig McPherson
10-03-2000, 07:58 PM
Everybody do this right now

Later, you'll be glad you did.

chattr +i /etc/issue
chattr +i /etc/issue.net
chattr +i /etc/motd
chattr +i /etc/resolv.conf
chattr +i /etc/hosts

Those are the 5 files most commonly overwritten without your permission. Setting the Immutable flag will prevent them from being changed in any way whatsoever. If you ever need to edit it them latter, run "chattr -i" on them, but remember to set it back again when you're done!

Having those files overwritten is not fun. Protect them.

Note: if your root partition is ReiserFS, you won't be able to do this. Keep backups of the above files to replace them with if they ever get overwritten.

Harvey
10-07-2000, 03:13 PM
what the heck does immutable mean?
checked the man page for chattr +i

Craig McPherson
10-08-2000, 01:10 AM
http://www.m-w.com/


Main Entry: im·mu·ta·ble
Pronunciation: (")i(m)-'myü-t&-b&l
Function: adjective
Etymology: Middle English, from Latin immutabilis, from in- + mutabilis mutable
Date: 15th century

1. Not capable of or susceptible to change


An immutable file can't be changed until the immutable flag is removed. Make a file immutable if you don't want to risk it being changed without your permission.