[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] chgrp problems under Red Hat 7.2



On Wed, 2002-07-31 at 20:45, Kenneth Porter wrote:

> I just removed the setuid bits in the spec file, on the assumption that
> they'd be run as root from root's crontab. Perhaps a better approach is
> to check in initvars() (miscutil.c) first to see if the setgid and
> setuid calls are needed. This could be done in uid_ensure and
> gid_ensure, since those functions are just making sure that the ID's are
> set correctly. They should read the current value and do nothing if the
> values are in the desired state.

Crap, this fails if the thing is setuid but not setgid, as it'll attempt
to setgid and fail.


-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list