Looks like I was missing a comma after the ssh command and before the id 
command.

Jonathan


"Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I have put this in my sudoers file using visudo to edit it:
>
> www   ALL = NOPASSWD: /usr/local/bin/sudo puser, (puser) NOPASSWD: 
> /usr/bin/ssh /usr/bin/id
>
> However the www user is still being asked for a password.
>
> Is this too off topic for this list?
>
> Jonathan
>
> "Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
>> Perhaps this gets more into server administration, but it is mixed so 
>> much into the php script, which is why I am asking it here.
>>
>> Yes, sudo was one of my first thoughts.  As far as the implementation 
>> goes though.  How do you work the remote access bit?  Using ssh do you 
>> use the ssl cert switch so that the www user can shell into a remote 
>> machine?  Or does the sudo process actually make www the root user for a 
>> certain command and can then shell into a remote machine using the root 
>> ssl cert? Or can sudo make www into a user that can shell into a remote 
>> machine?  I am still becoming familiar with sudo.
>>
>> Thanks,
>> Jonathan
>>
>>
>> "Greg Donald" <[EMAIL PROTECTED]> wrote in message 
>> news:[EMAIL PROTECTED]
>>> On Wed, 1 Dec 2004 17:57:28 -0700, news.php.net <[EMAIL PROTECTED]> 
>>> wrote:
>>>> Anyone else doing or done something like this?
>>>
>>> I use sudo when my web server needs temporary elevated permissions.
>>>
>>>
>>> -- 
>>> Greg Donald
>>> Zend Certified Engineer
>>> http://gdconsultants.com/
>>> http://destiney.com/ 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to