2011/11/1 Pacho Ramos <pa...@gentoo.org>: > El mar, 01-11-2011 a las 13:59 +0100, Francesco Riosa escribió: >> 2011/11/1 Pacho Ramos <pa...@gentoo.org>: >> > I have user "pacho" under "portage" group to be able to make some tasks >> > without becoming root, but, sadly, I am unable to make portage >> > create /var/log/portage files/dirs with portage:portage owners instead >> > of portage:root, preventing me from removing old files without becoming >> > root. >> > Is there anyway to configure this? >> > >> > Thanks a lot >> > >> >> chown -R portage:portage /var/log/portage > > I have tried this but each time files are recreated by portage, changes > are reset :( > >> chmod g+s /var/log/portage >> + add your user to group portage >> >> do the trick?
chmod g+s /var/log/portage should take care of keeping newly created files in the portage group, maybe `find /var/log/portage -type d -exec chmod g+s {} +` work better