Koozali.org: home of the SME Server

"add user" script

vesko

"add user" script
« 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?

Offline meanpenguin

  • ***
  • 138
  • +0/-0
"add user" script
« Reply #1 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

vesko

"add user" script
« Reply #2 on: September 24, 2004, 08:03:25 AM »
Thank you for the help.
Vesko

Offline gzartman

  • *
  • 305
  • +0/-0
    • LEI Engineering & Surveying
"add user" script
« Reply #3 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
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline meanpenguin

  • ***
  • 138
  • +0/-0
"add user" script
« Reply #4 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

vesko

"add user" script
« Reply #5 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