I want a regular user to use the chown
command.
I followed this procedure to configure pam_cap.so
in /etc/pam.c/login
and created /etc/security/capability.conf
then I assigned the capability to the chown
command as suggested here by sqweek.
# setcap cap_chown+ie /bin/chown
# setcap -v cap_chown+ie /bin/chown
/bin/chown: OK
But the user still seems to have no cap_chown
privilege:
$ chown root:root nn
chown: changing ownership of `nn': Operation not permitted
Can anybody help me?