[Samba] Help: dfree command
Desmond Quek
dquek at jni.com
Fri Jun 14 18:02:03 GMT 2002
Hi folks,
I'm trying to use a custom dfree command to have my Samba share reports
accurate disk usage, here my dfree script (I pretty much copied it right
off the smb.conf man page)
#!/bin/sh
/bin/df -k $1 | tail -1 | awk '{print $2" "$4}'
In smb.conf, I included this line:
dfree command = /usr/local/admin/samba-2.2.4/bin/dfree
This dfree command is root owned, root writeable only script.
Whenever I double-click on the Samba share on Windows clients, I get
these error messages in samba log:
[2002/06/14 17:26:50, 0] smbd/dfree.c:disk_free(118)
disk_free: sys_popen() failed for command
/usr/local/admin/samba-2.2.4/bin/dfree .. Error was : No child processes
[2002/06/14 17:26:50, 0] smbd/dfree.c:disk_free(118)
disk_free: sys_popen() failed for command
/usr/local/admin/samba-2.2.4/bin/dfree .. Error was : No child processes
Am I missing something? Could someone help out!
System info: Solaris 7, Samba 2.2.4, Windows 2K clients.
Thanks,
Desmond
--
JNI Corporation - ASIC Development
45365 Northport Loop West. Fremont, CA 94538-6417
Tel: (510) 360-4751 Fax: (510) 252-0123
More information about the samba
mailing list