1834450 Members
2321 Online
110067 Solutions
New Discussion

Re: HELP

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

HELP

File '/dev/null' got deleted by accident, so I resotred it from an fbackup tape. Before deletion the file had perm of 'crw-rw-rw-' bin bin. After restore file has perm '-rw-rw-rw-' root bin. What is the deal. How do I get this file back to original permissions?(crw-rw-rw-)

Thanks,
Bob
UNIX IS GOOD
3 REPLIES 3
S.K. Chan
Honored Contributor
Solution

Re: HELP

To re-create /dev/null

# rm /dev/null
# mknod /dev/null c 3 0x000002
# chown bin /dev/null
# chgrp bin /dev/null
# chmod 666 /dev/null
melvyn burnard
Honored Contributor

Re: HELP

do the following:

1. # rm /dev/null
2. # mknod /dev/null c 3 0x000002
3. # chown bin /dev/null
4. # chgrp bin /dev/null
5. # chmod 666 /dev/null


HTH
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Nobody's Hero
Valued Contributor

Re: HELP

Thanks,
Both of you.

Bob
UNIX IS GOOD