Re: system() with 2 commands
- From: Kevin Collins <spamtotrash@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Apr 2005 18:27:00 GMT
In article <1114177533.708450.220440@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, sitnam81
wrote:
> Does that command work -- "sudo -u root"?
> The man for root says -u is for any user OTHER than root:
> -u The -u (user) option causes sudo to run the specified
> command as a user other than root. To specify a uid
> instead of a username, use "#uid".
> Thanks for the recommendation about expect, this looks like it will
> help with the passwd stuff.
It should work just fine. Typically, '-u root' is redundant because the default
user to run as *is* root...
Kevin
--
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, Perl and CGI scripting
http://www.unix-guy.com
.
- References:
- system() with 2 commands
- From: sitnam81
- Re: system() with 2 commands
- From: Axel
- Re: system() with 2 commands
- From: sitnam81
- system() with 2 commands
- Prev by Date: trouble reading line by line
- Next by Date: Re: Cgi.pm and CSS
- Previous by thread: Re: system() with 2 commands
- Next by thread: Re: system() with 2 commands
- Index(es):
Relevant Pages
|
|