On Tue, Nov 18, 2003 at 03:25:54PM +1100, [EMAIL PROTECTED] wrote:
> I've just ssh'ed to my server, then , su, and..
> hmmm, none of my commands that I normally use work anymore:
> 
> # service
> bash: service: command not found
> 
> after I recovered from the brief hart failure, I realized that service and
> others still are there, once I prepend the full path

You probably want to use "su -", rather than just "su".

The dash makes it a "login shell", which means it executes the bashrcs and
whatnot specific to the root user, thus you'll get the enviroment you expect.

-Andrew.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to