Re: PHP Uptime error

From: Date: Tue, 26 Jun 2001 07:40:07 +0000
Subject: Re: PHP Uptime error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55214@lists.php.net to get a copy of this message
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"" <tez@zickus.com> wrote in message 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#55214) next »