I'm trying to allow regular user A to execute chown command to a list of user B,C,D having as object any files located into its home directory. In other words, I would try to limit the chown "root power" for some users, in term of users to change the file ownership and in term of the location of the files to be changed.
1> User A should only change the ownership of all the files located into its home directory (/export/home/userA) 2> User A should only change the ownership to userB, UserC and UserD (userB-C-D are part of the same group, user A has different one ... not a problem, at least, to add the same group as a supplementary for user A)
The objective 1 is the most important; the second, is a plus
I tried to use ACL in different ways, no success I tried to use sudo entry in different ways, no success
If I set rstchown=0 in the /etc/system, I will permit to use chown everywhere, not so good.
OS is Solaris 11.3
Any idea?