Page 1 of 1

Feature request: run command or script on post user create

Posted: Sat Feb 23, 2008 5:06 am
by les
It would be nice to have a feature where you could call a script post creating a user or group which could do things like....

create default junk filter rules via sxaa

send a welcome message to the new users inbox

perhaps create a samba account

or anything else you choose .....

There should be an area in sac where you can define a post script which then can optionally be run via the create user wizard as a check box or something similar.

The plugin architecture is already there, and thats probably best for this, but it would be nice to automate it at user creation.

Posted: Mon Feb 25, 2008 4:14 am
by Valerion
It may be even better to add this to omaddu, in case you are for some reason unable to use SAC, or you are in a situation where you are blocked from it but still able to SSH in. You can do it via a wrapper script, but still a nice-to-have, I think.

Posted: Mon Feb 25, 2008 4:46 am
by les
Valerion wrote:It may be even better to add this to omaddu, in case you are for some reason unable to use SAC, or you are in a situation where you are blocked from it but still able to SSH in. You can do it via a wrapper script, but still a nice-to-have, I think.


definitely.

i believe SAC would ultimately call omaddu commands, so extending it on command line and in SAC would be ideal.