- Joined
- Feb 27, 2003
- Messages
- 8,139
so modifying the user through DA isn't setting up the quotas correctly, but doing it manually is?
John
John
DirectAdmin Support said:so modifying the user through DA isn't setting up the quotas correctly, but doing it manually is?
John
[root@user]# quota -v steve
Disk quotas for user steve (uid 514):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda6 0 0 0 0 0 0
/dev/hda3 1520 10240 10240 27 0 0
[root@user]# quota -v steve
Disk quotas for user steve (uid 514):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda6 0 0 0 0 0 0
/dev/hda3 1520 12288 12288 27 0 0
[root@~ webcart]# quota -v redguitars
Disk quotas for user redguitars (uid 1009):
Filesystem usage quota limit grace files quota limit grace
/ 0 0 0 0 0 0
/usr 146 0 0 36 0 0
[root@~ webcart]# quota -v redguitars
Disk quotas for user redguitars (uid 1009):
Filesystem usage quota limit grace files quota limit grace
/ 0 0 0 0 0 0
/usr 146 0 0 36 0 0
[root@~ webcart]#
[root@~ webcart]# /usr/local/directadmin/directadmin c | grep quota
quota_partition=/usr
[root@~ webcart]#
[root@/home webcart]# /usr/sbin/edquota
usage: edquota [-u] [-f fspath] [-p username] username ...
edquota [-u] -e fspath[:bslim[:bhlim[:islim[:ihlim]]]] [-e ...]
username ...
edquota -g [-f fspath] [-p groupname] groupname ...
edquota -g -e fspath[:bslim[:bhlim[:islim[:ihlim]]]] [-e ...]
groupname ...
edquota [-u] -t [-f fspath]
edquota -g -t [-f fspath]
[root@/home webcart]#
mv /usr/sbin/edquota /usr/sbin/edquota.orig
vi /usr/sbin/edquota
#!/bin/sh
echo "$1 $2" >> /tmp/edquota.txt
exit 0;
#!/bin/sh
#echo "$1 $2" >> /tmp/edquota.txt
echo "$*" > /tmp/edquota.txt
exit 0;
[root@/home webcart]# cat /tmp/edquota.txt
-e /usr:103424:103424:0:0 redguitars
[root@/home webcart]#
[root@/home webcart]# ls -la /tmp/edquota.txt
-rw-r--r-- 1 nobody wheel 37 Feb 13 12:16 /tmp/edquota.txt
[root@/home webcart]#
deltaned said:Disk quotas for user psgfotos (uid 575):
Filesystem blocks quota limit grace files quota limit grace
/dev/hdc1 3672 30720 30720 536 0 0
but DA told 3.52 MB in use![]()
any tips?
DirectAdmin Support said:Hello,
Alright. I'll have a look in the code. I think it's some differences between the systems.. It shouldn't be working anywhere as "nobody", but it is, possibly due to the actual user ID vs. the effective user ID.. freebsd probably uses the effective (which is nobody), while RedHat might use the actual (just the method DA uses to flip privileges for some functions). weird. Oh well. Should be available for the next release then (I'll probably get it out soon).
John