How to obtain userīs disk quota using a non-privileged user?

From: Luiz Alfredo Baggiotto (luiz@pucrs.br)
Date: Mon Jul 04 2005 - 10:20:49 EDT


Hello admins

I4m running a Solaris 9 box with one PHP script that needs to read the quota
info about the system users.
The script don4t work and, after a long test time, I discovered that the
problem is in the system permissions:

# su - apache -c "/usr/sbin/quota -v testuser"
quota: testuser (uid 1206): permission denied
#

I read about Solaris 9 permissions and then tried to set a role (RBAC), but it
doesn4t work:

# roleadd -u 201 -d /dev/null -P "File System Management" r_quota
# usermod -R r_quota apache
# su - apache -c "/usr/sbin/quota -v testuser"
quota: testuser (uid 1206): permission denied
#

I don4t know if the problem is the role setting or the methodology. :-( Is it
a good way to use RBAC to make this operation (get the user4s disk quota)? Can
someone suggest another thing or help me to set the correct policy?
Thanks in advance

Luiz
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:02 EDT