Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What to do if /bin is deleted? 1

Status
Not open for further replies.

solid7

Technical User
Apr 17, 2005
70
US
It seems that I accidentally moved /bin when trying to move a file. When I attempted to replace /bin, originally, it was there. Now, it's not.

What do I do to get /bin back where it belongs? Do I need to do a preservation install?

Thanks in advance.


-------
CAD Design Services by 2H Technical and Translation Services
 
if you have made an mksysb recently, then you can do a install from mksysb.

greetz

R.
 
/bin is a symlink to /usr/bin on AIX

# ls -ld bin
lrwxrwxrwx 1 bin bin 8 Mar 18 2004 bin -> /usr/bin

ln -s /usr/bin /bin


(assuming /usr/bin is still there...)

HTH,

p5wizard
 
OK, so I got /bin back, but it belongs to root system. Shouldn't it belong to bin bin?

chown bin.bin /bin does not change the ownership.

Does this matter?


-------
CAD Design Services by 2H Technical and Translation Services
 
no - it is a symlink, permissions are lrwxrwxrwx

permissions on /usr/bin are used instead

if you really want it to say bin bin

then (as root)

unlink /bin
su bin
ln -s /usr/bin /bin
exit

I would also reboot the box if that is possible

HTH,

p5wizard
 
OOPs!

su bin results in a message that states: "3004-505 Cannot set process environment"

Doesn't that make sense, if you unlink /bin?


-------
CAD Design Services by 2H Technical and Translation Services
 
well then

make the link (as root)
su bin (subshell 1: bin)
su (subshell 2: root)
unlink
exit (back to subshell 1:bin)
make the link again
exit (back to original shell: root)

but it is only cosmetic. ownership/perms of a symlink have no value whatsoever.

HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top