Re: Page that checks if a user exists on a remote system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Jonathan


"Jonathan Duncan" <jonathan@xxxxxxxxxx> wrote in message 
news:20041202062307.33117.qmail@xxxxxxxxxxxxxxx
>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" <jonathan@xxxxxxxxxx> wrote in message 
> news:20041202043903.82554.qmail@xxxxxxxxxxxxxxx
>> 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" <destiney@xxxxxxxxx> wrote in message 
>> news:ea9da26c0412011815330eec2@xxxxxxxxxxxxxxxxx
>>> On Wed, 1 Dec 2004 17:57:28 -0700, news.php.net <jonathan@xxxxxxxxxx> 
>>> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux