SFTP Access

If I add a new ftp user user under a domain, then change the shell for that user to bin/sh to allow sftp access, that user gets permission to access modify files for that domain.

How can I add a user similar to root that can act as an admin and oversee all domains?

Status: 
Closed (fixed)

Comments

There's a couple of ways of doing this, depending on what kind of access you want to allow.

If you want to create a Virtualmin login that is equivalent to root, do this :

  1. Go to Webmin -> Webmin -> Webmin Users
  2. Click on the root user, scroll down to the bottom of the page, then click Clone
  3. Enter a new username and password, and click Create

To create an SFTP / SSH user with root permissions, do this :

  1. Go to Webmin -> System -> Users and Groups
  2. Click * Create a new user* and enter a username, password and other details. However, make sure the User ID field is set to 0
  3. Click the Create button.

This has worked but I still have to create 2 user accounts for the same person. If there is a way to create just one that would be better which will have those permissions, that would be better!

If is not possible or wise then two would fine however there could be many account creations for the same user which could get very complicated at the time the user forgets a password or something.

For instance now I want to create a subversion server for a few of the domains...

Is there a way to get one of the users, either the virtualmin or sftp login to automatically show up as a user of any domain when it is created?

Thanks for you help!

Well, to do what you were looking for above, Jamie described how to create a second user with root privileges.

That user has a lot of capabilities, so you wouldn't want to use them unless you needed to.

In that regard, you probably want to have two users... one user for performing administrative tasks, and the other for doing normal user things.

Is there a way to get one of the users, either the virtualmin or sftp login to automatically show up as a user of any domain when it is created?

Just like the "root" user, the user you're creating above doesn't belong to a given Virtual Server. It has permissions across the entire server, it's not limited to one domain.

However, you can use Virtualmin's GUI to change the password... you can go into Webmin -> System -> Change Password, and change your user's password from there.

Automatically closed -- issue fixed for 2 weeks with no activity.