Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: How do I set up sudo..

From: Douglas A. Tutty <dtutty(at)porchlight.ca>
Date: Thu Dec 20 2007 - 22:21:40 EST


On Thu, Dec 20, 2007 at 11:35:32AM -0800, Alou Dialy wrote:
> I figured out that I didnt have /sbin and /usr/sbin in
> my PATH but how come when I do sudo env it does show
> those directories in my PATH ?
>
> The man page for sudo or sudoers says that sudo does
> modify PATH but it doesnt say how and it doesnt say
> how it tries to find the command that you give it.
>
> Is there a way to set up sudo so that I dont have to
> type the full path to the command.

How about an alias in your own .bash_aliases?

alias shutdown "sudo /sbin/shutdown"

Or something?

Doug.

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Dec 20 22:39:49 2007

This archive was generated by hypermail 2.1.8 : Wed Feb 27 2008 - 21:04:11 EST


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library