Koozali.org: home of the SME Server

new users via adduser not via web

sam russo

new users via adduser not via web
« on: April 14, 2001, 02:05:11 PM »
I know the adding user  account works well in the web interface, but when your administering a box and making many users its too slow. Is there any way I can make users via the console or telneting. Similar to the traditional adduser <...> and passwd <...> in a standard red hat install. BTW I know you can do this on a e-smith box but would like the details to also come up on web manager once the adduser command has made a new user. I think presently it does not do this.
regards sam

Fran Boon

Re: new users via adduser not via web
« Reply #1 on: April 16, 2001, 02:11:28 PM »
>Is there any way I can make users via the console or telneting. Similar to the >traditional adduser

Yes

>I know you can do this on a e-smith box but would like the details to also come >up on web manager once the adduser command has made a new user. I think >presently it does not do this.

Correct - the list of actions performed when a user is added via the web can be found in:
/etc/e-smith/events/user-create
'useradd' is essentially just 'S15user-create-unix' in that folder

The web-manager calls these from:
/etc/e-smith/web/functions/useraccounts

It must be possible to write a small routine to do the necessary via the console & it has been requested on the Wish-List, especially as a way of adding multiple accounts at once.
I'm afraid that I don't currently have time to develop this, though - Good Luck!
Fran.