SUMMARY: chgrp a file to a group i am not a member of?
2007-12-25 0:14:00
Thanks to all the replied.
On Wed, Dec 11, 2002 at 10:18:42AM +0000, Martin Buchan wrote:
>
> Could anyone tell me if it is possible to chgrp a file to a group
> that i am not a member of on Solaris 5.8 using NIS to authenticate
> and NFS to mount home areas.
Various solutions were provided such as:
1.
set rstchown = 0
in /etc/system
I dont want to do this as then my users will be giving away all
their files and sneaking out of their quota restrictions.
2.
Making the directory that this should be applicable to (i only want
it to apply to 1 dir and all its sub dirs/files) setgid - the perms
will then cascade down.
This was my preferred option but it requires having 2 different
umasks - one for normal operation [077] and one for 'stuff' in the
setgid directory [027] - as, with the default umask, directories
created inside the setgid dir, do not have the group executable
perms and thus get created with the [l]ocking bit set.
3.
Allowing root access to NFS mounted shares.
I think i will eventually have to enable this option and get my
setuid C program working as i cannot figure out how to have 2
different umasks. (ACL's are not an option :( )
Thanks again to all that replied.
Martin
Comments
Got something to say?
You must be logged in to post a comment.

