Thanks for your help, this is what I get when I try a uptime while logged in
as nobody.

----------------------------------------------------------------
host:/# su nobody
host:/$ uptime
Error: /proc must be mounted
  To mount /proc at boot you need an /etc/fstab line like:
      /proc   /proc   proc    defaults
  In the meantime, mount /proc /proc -t proc
Error: /proc must be mounted
  To mount /proc at boot you need an /etc/fstab line like:
      /proc   /proc   proc    defaults
  In the meantime, mount /proc /proc -t proc
  2:38am  up 0 min,  1 user,  load average: 0.00, 0.00, 0.00
----------------------------------------------------------------

These are the permissions is /proc:
-r--r--r--   1 root     root            0 Jun 26 02:39 loadavg
-r--r--r--   1 root     root            0 Jun 26 02:33 uptime

What should they be to enable nobody to access uptime?

Thanks again.

--
"Keyboard not detected, press F1 to continue..."

""Tim Zickus"" <[EMAIL PROTECTED]> wrote in message
002901c0fd67$2c251360$0401a8c0@lan">news:002901c0fd67$2c251360$0401a8c0@lan...
>
> Check the permissions on the files in /proc, which is where uptime gets
its
> info from, most likely.
>
> You could probably even read the pseudo-file '/proc/loadavg' as 'nobody'
> directly from PHP given the appropriate file permissions.
>
> - Tim
>   http://www.phptemplates.org
>
> > Richard Lynch's advice was correct, I cannot run uptime under nobody for
> > some reason.  Does anyone know how to change this?  The permissions are
> set
> > to allow everyone to execute it.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to