On Wed, 21 Jun 2006 15:32:31 +0200, Enrico Weigelt wrote:

> But this is quite inconvenient, if you have dozens of users and
> want to allow them all to edit their crontabs.

egrep ^.*?:.*?:.*?:100: /etc/passwd | cut -d: -f1 | while read u do gpasswd -a 
$u cron; done

will add all users from group GID 100 (users on this system) to the cron
group.


-- 
Neil Bothwick

"Bother," said Pooh, as he was given another bad script.

Attachment: signature.asc
Description: PGP signature

Reply via email to