[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] AWStats



> > Can you please tell the difference between "su" and /bin/su" please.
I
> have
> > always been doing "su".
> 
> One is relative and one is absolute. Both are the same, it's just one
> will work if /bin is not in your PATH env var. So you can almost
always
> use su, but some shell scripts or programs may require /bin/su. Once
> again depending on the PATH env var for the user.
> 
That is not a very compelling reason to use /bin/su instead of su.  A
better reason is this:
If a hacker get's limited access to your system, they will try to get
elevated access by placing a trojan binary on your system and trick you
into using it.

It should be difficult for a non-root user to mess with the /bin
directory so if you use the full path '/bin/su' you can be reasonably
confident you're not getting tricked into exposing your system password
with a trojan version.
 
--
Matthew Nuzum
www.bearfruit.org
cobalt@xxxxxxxxxxxxx