I'm administering a rented CentOS 5.6 Dedicated Machine as root
like initially setup but I'm aware it's extremely bad practise, so I created an User named administrator
, placed into groups administrator wheel sshd
and added
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
via visudo
. Everything works as far as sudoing or SSHing but $PATH
differs too much for both, causing some commands like visudo
"not existing" (for administrator
) and I don't know what like I should edit administrator
's into.
$PATH
for root
: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
$PATH
for administrator
: /usr/local/bin:/bin:/usr/bin:/home/administrator/bin
On a Debian Squeeze the mentioned are
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
and
/usr/local/bin:/usr/bin:/bin:/usr/local/games
but the latter User was added during installation, so how should I edit administrator
's on the CentOS ?