PDA

View Full Version : Default user addition settings


unksi
12-21-2009, 11:47 AM
ISPManager doesn't seem to use useradd to add new users to the system. Is there a viable way of editing the new users' default settings, like user groups etc?

There doesn't seem to be any settings for it in either the control panel or the config files.

slava
12-21-2009, 07:54 PM
You can't manage user groups via ISPmanager.

unksi
12-21-2009, 08:52 PM
Yes, but what I am asking about are the default settings.. like currently, when you create a new user, it will be in a group with a same name as his username is. Any way to change that? If not, it would be a good feature addition so they do not need to be changed manually each time a user has been added.

slava
12-21-2009, 09:07 PM
Why do you need to change it? Default settings are optimial and secure for users of webhosting server.

unksi
12-21-2009, 09:16 PM
SFTP chroot uses usergroups to define which users are treated in a specific way.

slava
12-23-2009, 10:05 PM
By default you can't change it, but you can write script for Events (see documentation (http://en.ispdoc.com/index.php/Events_(ISPmanager)))

When you add a user through ISPmanager it will automatically run a script on this event, which will using the pw command to modify user group (for example).

unksi
12-23-2009, 10:16 PM
Great, thank you :) This seems like something I was looking for.