On Fri, 2003-03-07 at 15:14, Ashley M. Kirchner wrote:
> [EMAIL PROTECTED] wrote:
> 
> >Until recently I had ssh'd to my Redhat 7.3 machine with the root username. I have 
> >removed the login rights now and access the machine with a local user account, then 
> >su to root. Now there are a lot of commands I can no longer run from anywhere like 
> >I have in the past. The main one being the "service" command used to start, stop, 
> >and restart services. Anyone have a clue how to get those features back?
> >
>     /sbin is no longer in your path as a regular user (even when you su 
> to root).  I can offer these suggestions:
> 
>     a) get used to typing /sbin/service
>     b) add /sbin/ to your PATH (I wouldn't)
> 
>     Also instead of su-ing to root, adjust your /etc/sudoers file to 
> allow your regular user account to run certain commands under sudo.
> 


All of the above but keep in mind that su - (dash included) will setup
root's environment including path.  

Bret



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to