From dizzy to suse about Re: [SLE] Hosed file system read only!! NEED ADVISE!!:
continuing weirdness here
When the machine booted I logged in as root and diddnt have any special message.
But if I telnet to it (as a non root user) I get
bash: /dev/null: permission denied bash: /dev/null: permission denied
This however dosnt cause a problem. Ill su to root then echo hello > /dev/null no problem but this is the same behaviour I was seeing before I rebooted and the /dev/null got corrupt
I administer this machine via telnet because its in the basement in a utility room. Sometime Ill leave a telnet session open for days. Does anyone see a problem with that? You better use ssh instead of telnet. That way, your passwords don't go in clear text over the network. Of course it depends on how trusted your network is.
any ideas where or why /dev/null is getting passed to a normal logon and what I can do to fix it?
after running the mknod /dev/null c 1 3
ls -lag /dev/null
crw-r--r-- 1 root root 1, 3 jun 24 2001 /dev/null
/dev/null should be writable for everybody. chmod go+w mlehr #is the command you want
any help to fix this is greatly appreciated!
rob
dizzy wrote:
Is this correct?
No it is not correct. /dev/null should be a character special device with major number 1 and minor number 3
rm /dev/null mknod /dev/null c 1 3
BINGO!!!!
that was the problem. Thank you very much. How my /dev/null got out of line I dont know, but that fixed it. System booted, performed fscks along the way. No errors!
thank you kind sir!
-- dieter