[Westwales] A couple of questions (part Deux)
Jonathan West
westwales at mailman.lug.org.uk
Sat Feb 8 20:06:01 2003
On Sat, 8 Feb 2003, Telsa Gwynne wrote:
> /sbin is in root's path, but other users aren't expected to need
> to run things from there too often, so it's not generally in
> other users' paths. Same gones for /usr/sbin.
>
> If you use "su" to turn into root, you keep your own environment
> and so you'll still need to give pathnames for things on root's
> path which aren't on users' paths.
>
> If you use "su -" to turn into root, you get root's environment
> and so you don't need to type /sbin/ in front of commands which
> live in there.
>
> "sudo ifconfig" has the same problem: you want "sudo /sbin/ifconfig"
> instead.
>
> I snipped all the rest: I know nothing about java :)
>
> Telsa
Thanks Telsa,
the "su -" is good to know,I'd never really got around to working out why
sometimes a command is in the path and sometimes not.
Jon