On Tue, Jun 26, 2001 at 05:40:07PM +1000, Peter Phillips wrote:
> 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?
What are the permission for /proc itself? it needs to be 755
If you have strace, you can strace uptime and see exactly what kind of
error you are getting when uptime tries to open /proc/uptime and
/proc/loadavg.
--
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]