1752675 Members
6278 Online
108789 Solutions
New Discussion

/bin Link Missing

 
SOLVED
Go to solution
cjhsa
Occasional Advisor

/bin Link Missing

Had an 11.31 server show up with a missing /bin -> /usr/bin link.  I recreated the link, and the system is much happier now, however, I am unable to change the permissions of the link correctly.  What am I doing wrong?

# ln -s /usr/bin /bin

# ls -la /bin
lrwxr-xr-x 1 root sys 8 Aug 1 17:36 /bin -> /usr/bin
# chown bin:bin /bin
# ls -la /bin
lrwxr-xr-x 1 root sys 8 Aug 1 17:36 /bin -> /usr/bin

 

4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: /bin Link Missing

Add '-h' to your 'chown' command.

For example:

root /root # ll -d /bin
lr-xr-xr-t   1 root       sys              8 Oct 29  2009 /bin -> /usr/bin

root /root # chown -h bin:bin /bin

root /root # ll -d /bin
lr-xr-xr-t   1 bin        bin              8 Oct 29  2009 /bin -> /usr/bin
cjhsa
Occasional Advisor

Re: /bin Link Missing

Perfect - thanks Patrick!

Dennis Handly
Acclaimed Contributor

Re: /bin Link missing

FYI: The permissions on a symlink are just an illusion.

cjhsa
Occasional Advisor

Re: /bin Link missing

:D