t_coop
1
I'm receiving the following message when executing hostname:
/usr/bin/hostname: /bin/uname: cannot execute
This error is usuallly a permissions issue but both /usr/bin/hostname and /bin/uname are set with the correct permissions as shown:
-r-xr-xr-x 1 root bin 561 Jan 21 2005 /usr/bin/hostname
lrwxrwxrwx 1 root root 16 Jun 20 2008 /bin/uname -> ../../sbin/uname
Not sure about the sysbolic link setting for /bin/uname or if I need additional settings for root. What else do I need to execute this command.
Thanks,
Tom
vbe
2
what about /sbin/uname permission?
t_coop
3
I wanted to check it but I'm not sure how to interpret the .. in ../../sbin/uname.
Thanks,
Tom
Interesting that you don't have a dedicated "hostname" binary, which version of Linux are you running?
The ../../sbin/uname looks "odd".
Try "file /bin/hostname" and file "/bin/uname", this should confirm any links in play are actually valid.
Can you confirm whether SElinux is enabled and whether you are doing this from a user account or as "root" ?
Can you confirm the final destination for "uname" [/sbin/uname?] and can you run this directly?
t_coop
5
hostname is now running after the server was rebooted. Not sure what the original problem was.
Thanks for your help,
Tom