Re: PHP Uptime error

From: Date: Tue, 26 Jun 2001 14:46:36 +0000
Subject: Re: PHP Uptime error
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-55248@lists.php.net to get a copy of this message
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.

« previous php.general (#55248) next »