Switching users

Changing identities.

Rootli differentiates between the following types of users:

  1. Personal user accounts of team members, prefixed with rootli_usr_
  2. Functional accounts, prefixed with rootli_fnc_
  3. Site isolation users, prefixed with rootli_site_
  4. Internal management users, prefixed with rootli_mng_
Isolation users cannot log in via SSH and do not allow changing user context with password.

Switching context

Of course, as you might want to use tools like composer, wp or npx, you can switch user context using sudo or rootli-cli.

rootli switch foobar.com

While technically, both commands do the same, rootli-cli accepts the domain name that is managed by the site-isolation user, whereas sudo su - accepts the username of the user you want to impersonate.

You can quit an impersonated user session using the exit command.