bash: /dev/null: Is a directory
I have most probably messed something up in /etc. When ever one logs in from console, ssh, anything, following gets printed after /etc/issue message: bash: /dev/null: Is a directory bash: /dev/null: Is a directory bash: /dev/null: Is a directory The same goes when any /etc/ini.d/xxx script file is executed. Any pointers to sort out whats wrong? I am running Suse 7.3 i386 on Compaq Proliant. Cheers, -- --Jyry :-( C:-/ C========8-O C8-/ C:-(
--- Jyry Kuukkanen
When ever one logs in from console, ssh, anything, following gets printed after /etc/issue message:
bash: /dev/null: Is a directory bash: /dev/null: Is a directory bash: /dev/null: Is a directory
The same goes when any /etc/ini.d/xxx script file is executed.
Any pointers to sort out whats wrong?
What's the result of running the command "file /dev/null"? __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
On Wed, 8 Oct 2003, James J. Ramsey wrote:
--- Jyry Kuukkanen
wrote: When ever one logs in from console, ssh, anything, following gets printed after /etc/issue message:
bash: /dev/null: Is a directory bash: /dev/null: Is a directory bash: /dev/null: Is a directory
The same goes when any /etc/ini.d/xxx script file is executed.
Any pointers to sort out whats wrong?
What's the result of running the command "file /dev/null"?
Thanks for you quick reply - and a very good piece of advice :-) Here's grep of dirring dev: vdir /dev/|grep null lrwxrwxrwx 1 root root 4 Dec 9 2001 X0R -> null drwxr-xr-x 7 560 users 888 Oct 8 13:38 null Ok. Is there any catches fixing the null device? I managed to delete the silly null directory, got rid of XOR link, but how to create node for null? Cheers, -- --Jyry :-( C:-/ C========8-O C8-/ C:-(
On Wed, Oct 08, 2003 at 03:32:16PM +0300, jyry@neutech.fi wrote:
Thanks for you quick reply - and a very good piece of advice :-) Here's grep of dirring dev:
vdir /dev/|grep null
lrwxrwxrwx 1 root root 4 Dec 9 2001 X0R -> null drwxr-xr-x 7 560 users 888 Oct 8 13:38 null
Ok. Is there any catches fixing the null device? I managed to delete the silly null directory, got rid of XOR link, but how to create node for null?
Doh! mknod will create the node. See my other post for major and minor numbers. Check the manpage (or mknod --help) for syntax; it's pretty easy. Come back if you have further problems. You might still need 'XOR' for something - it's been there for a while, so I see no reason to delete it. HTH... -- David Smith Work Email: Dave.Smith@st.com STMicroelectronics Home Email: David.Smith@ds-electronics.co.uk Bristol, England GPG Key: 0xF13192F2
* Dave Smith
On Wed, Oct 08, 2003 at 03:32:16PM +0300, jyry@neutech.fi wrote:
Thanks for you quick reply - and a very good piece of advice :-) Here's grep of dirring dev:
vdir /dev/|grep null
lrwxrwxrwx 1 root root 4 Dec 9 2001 X0R -> null drwxr-xr-x 7 560 users 888 Oct 8 13:38 null
Ok. Is there any catches fixing the null device? I managed to delete the silly null directory, got rid of XOR link, but how to create node for null?
Doh!
mknod will create the node. See my other post for major and minor numbers. Check the manpage (or mknod --help) for syntax; it's pretty easy. Come back if you have further problems.
You might still need 'XOR' for something - it's been there for a while, so I see no reason to delete it.
it's part of the SCO/iBCS2 emulator /... Kind regards, -- Gerhard den Hollander Phone :+31-10.280.1515 ICT manager Direct:+31-10.280.1539 Jason Geosystems BV Fax :+31-10.280.1511 gdenhollander@Fugro-Jason.com POBox 1573 visit us at http://www.Fugro-Jason.com 3000 BN Rotterdam JASON.......#1 in Reservoir Characterization The Netherlands This e-mail and any attachment is/are intended solely for the named addressee(s) and may contain information that is confidential and privileged.
On Wed, Oct 08, 2003 at 03:07:41PM +0300, jyry@neutech.fi wrote:
I have most probably messed something up in /etc.
When ever one logs in from console, ssh, anything, following gets printed after /etc/issue message:
bash: /dev/null: Is a directory bash: /dev/null: Is a directory bash: /dev/null: Is a directory
The same goes when any /etc/ini.d/xxx script file is executed.
Any pointers to sort out whats wrong?
Have you messed up the /dev/null device handle? Can you do ls -l /dev/null And post the results? I don't have access to a SuSE 7.3 machine here, but the RH7.2 machine returns: crw-rw-rw- 1 root root 1, 3 Aug 30 2001 /dev/null -- David Smith Work Email: Dave.Smith@st.com STMicroelectronics Home Email: David.Smith@ds-electronics.co.uk Bristol, England GPG Key: 0xF13192F2
On Wed, 2003-10-08 at 08:07, Jyry Kuukkanen wrote:
I have most probably messed something up in /etc.
When ever one logs in from console, ssh, anything, following gets printed after /etc/issue message:
bash: /dev/null: Is a directory bash: /dev/null: Is a directory bash: /dev/null: Is a directory
The same goes when any /etc/ini.d/xxx script file is executed.
Any pointers to sort out whats wrong?
I am running Suse 7.3 i386 on Compaq Proliant.
Cheers, -- --Jyry :-( C:-/ C========8-O C8-/ C:-( -- Ken Schneider unix user since 1989
ll /dev/null should report that it is crw-rw-rw- 1 root root 1, 3 2003-03-14 08:07 /dev/null which is a character device. If not you will need to recreate it as one. info mknod might help. You will need the major,minor numbers to create it. I do not know the numbers, perhaps someone else on the list can help there. linux user since 1994 SuSE user since 1998 (5.2)
On Wed, Oct 08, 2003 at 08:25:36AM -0400, kschneider@rtsx.com wrote:
which is a character device. If not you will need to recreate it as one. info mknod might help. You will need the major,minor numbers to create it. I do not know the numbers, perhaps someone else on the list can help there.
AIUI...
crw-rw-rw- 1 root root 1, 3 2003-03-14 08:07 /dev/null ^ ^ | | major-+ +-minor
HTH... -- David Smith Work Email: Dave.Smith@st.com STMicroelectronics Home Email: David.Smith@ds-electronics.co.uk Bristol, England GPG Key: 0xF13192F2
On Wed, 8 Oct 2003, Dave Smith wrote:
On Wed, Oct 08, 2003 at 08:25:36AM -0400, kschneider@rtsx.com wrote:
which is a character device. If not you will need to recreate it as one. info mknod might help. You will need the major,minor numbers to create it. I do not know the numbers, perhaps someone else on the list can help there.
AIUI...
crw-rw-rw- 1 root root 1, 3 2003-03-14 08:07 /dev/null ^ ^ | | major-+ +-minor
Magic! All sorted. Honky dory! Thank you all who showed the way :-) -- --Jyry :-( C:-/ C========8-O C8-/ C:-(
On Wed, Oct 08, 2003 at 03:36:19PM +0300, jyry@neutech.fi wrote:
All sorted. Honky dory!
Thank you all who showed the way :-)
No probs. Now, repeat after me: "I will not do stupid things whilst logged on as 'root'"... <g> -- David Smith Work Email: Dave.Smith@st.com STMicroelectronics Home Email: David.Smith@ds-electronics.co.uk Bristol, England GPG Key: 0xF13192F2
Now, repeat after me:
"I will not do stupid things whilst logged on as 'root'"...
"I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" :-))) -- --Jyry :-( C:-/ C========8-O C8-/ C:-(
On Wednesday 08 October 2003 08:49 am, Jyry Kuukkanen wrote:
Now, repeat after me:
"I will not do stupid things whilst logged on as 'root'"...
"I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'"
:-)))
-- --Jyry
:-( C:-/ C========8-O C8-/ C:-( ===========================
How about this instead?
#include
--- BandiPat
How about this instead?
#include
int main(void) { int count; for(count=1;count<=500;count++) printf("I will not do stupid things whilst logged on as root.") return 0; }
Hmm, that looks familiar: http://www.ucomics.com/foxtrot/2003/10/03/ BTW, shouldn't there be a "\n" in that printf argument? __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
On Wednesday 08 October 2003 11:52 am, James J. Ramsey wrote:
--- BandiPat
wrote: How about this instead?
#include
int main(void) { int count; for(count=1;count<=500;count++) printf("I will not do stupid things whilst logged on as root.") return 0; }
Hmm, that looks familiar:
http://www.ucomics.com/foxtrot/2003/10/03/
BTW, shouldn't there be a "\n" in that printf argument? ==========
Don't think so, but there should be a semicolon at the end of the line with: root."); Jason of Foxtrot has many answers for common everyday problems! ;o) Lee -- --- KMail v1.5.4 --- SuSE Linux Pro v8.2 --- Registered Linux User #225206 On any other day, that might seem strange...
On Wed, 8 Oct 2003, BandiPat wrote:
On Wednesday 08 October 2003 08:49 am, Jyry Kuukkanen wrote:
Now, repeat after me:
"I will not do stupid things whilst logged on as 'root'"...
"I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'" "I will not do stupid things whilst logged on as 'root'"
:-)))
-- --Jyry
:-( C:-/ C========8-O C8-/ C:-( ===========================
How about this instead?
#include
int main(void) { int count; for(count=1;count<=500;count++) printf("I will not do stupid things whilst logged on as root.") return 0; }
------------- Lee :o)
I believe five times repeating that does the trick for me. Not that thick. I hope. :-)))))))))) -- --Jyry :-( C:-/ C========8-O C8-/ C:-(
participants (6)
-
BandiPat
-
Dave Smith
-
Gerhard den Hollander
-
James J. Ramsey
-
Jyry Kuukkanen
-
Ken Schneider