Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: vesko on September 23, 2004, 11:14:18 AM

Title: "add user" script
Post by: vesko on September 23, 2004, 11:14:18 AM
hi all,
here is a little tweaking i need to do to the sme server:

when you add a user through the "Server-Manager" a script to be called to execute a bash script on another linux-box

Any idea how to do this? On a "regular" linux one can use a perl script, but where to put that script inside the template system of sme server?
Title: "add user" script
Post by: meanpenguin on September 23, 2004, 11:52:19 PM
I would start here

/etc/e-smith/events/password-modify
and
/etc/e-smith/events/user-create

Ed
Title: "add user" script
Post by: vesko on September 24, 2004, 08:03:25 AM
Thank you for the help.
Vesko
Title: "add user" script
Post by: gzartman on September 25, 2004, 08:02:11 PM
You should really avoid trying to add a new user from the shell.  User account information spans several text dbase files.  It would be very easy miss something trying to add an account manually. The result could result in some breakage.

Greg
Title: "add user" script
Post by: meanpenguin on September 26, 2004, 07:28:08 AM
I'm thinking that he is going to use the server-manager to create a user, but then run a script to create a user on a second box by running a script on the second box?

Ed
Title: "add user" script
Post by: vesko on October 01, 2004, 11:50:49 AM
You are absolutely right meanpenguin
I need centralized user management for most of my servers and the SME server-manager is a great place to do it :)
I will post here the results here when it is done