LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Programs can't run 'df' on drive, but I can? (https://www.linuxquestions.org/questions/linux-software-2/programs-cant-run-df-on-drive-but-i-can-831542/)

djsmiley2k 09-11-2010 08:14 AM

Programs can't run 'df' on drive, but I can?
 
I'm trying to monitor one of my servers via grkellm which is working fine except for the fact I can't monitor one of the mount points.

I've also noticed after installing phpsysinfo that this also can't get the infomation from this mount point.

I dont see an error in gkrellm, it just shows the space as 0.00M of 0.00M, in phpsysadmin I get

[code]
common_functions.php 213 /bin/df /bin/df: `/home/tim/shared': Permission denied
Return value: 1
[code]

I can run df quite normally on the drive:

Code:

tim@Musha ~ $ df -h ./shared/
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1              74G  51G  20G  72% /home/tim/shared

and the mounting code is nothing special:

Code:

/dev/sdb1              /home/tim/shared ext3          noatime        0 0

Forgot the permissions:

Code:

drwxr-xr-x  6 tim  tim    4096 2010-08-30 14:11 shared
So I can't understand why they are failing to read it :(

Help?! :D

AlucardZero 09-11-2010 10:04 AM

Unmount /home/tim/shared . What then are the permissions on /home/tim/shared ?

djsmiley2k 09-12-2010 08:34 AM

Code:

drwxrwxrwx  2 tim  users  4096 2006-11-27 16:16 shared
:|

Its also shared by NFS at the same time, could this cause issues? In the above I have stopped NFS (as it otherwise reports its constantly "in use".

I started up nfs again...

Same perms:

Code:

drwxrwxrwx  2 tim  users  4096 2006-11-27 16:16 shared
Weird?


All times are GMT -5. The time now is 05:19 PM.