Post Closed as "unclear what you're asking" by Jeff Schaller, Christopher, schily, mosvy, slm
3 added 3 characters in body
source | link

A sysadmin may want to add a new user that will have no root access (nor sudo).

I don't sell hosting services but I can bring this field as an example; an hosting company gives its customers the ability to SSH tunnel into their own shared-hosting partition on a system (in which they won't be operate as root or with sudo, but just as a regular user, likely with many predefined technical disabilities like the absence of some common utilities).

How to create such a user a user with at least the basic inabilityno sudo and not any other way to login asuse root?

A sysadmin may want to add a new user that will have no root access (nor sudo).

I don't sell hosting services but I can bring this field as an example; an hosting company gives its customers the ability to SSH tunnel into their own shared-hosting partition on a system (in which they won't be operate as root or with sudo, but just as a regular user, likely with many predefined technical disabilities like the absence of some common utilities).

How to create such a user with at least the basic inability to login as root?

A sysadmin may want to add a new user that will have no root access (nor sudo).

I don't sell hosting services but I can bring this field as an example; an hosting company gives its customers the ability to SSH tunnel into their own shared-hosting partition on a system (in which they won't be operate as root or with sudo, but just as a regular user, likely with many predefined technical disabilities like the absence of some common utilities).

How to create such a user a user with no sudo and not any other way to use root?

2 edited tags
| link
1
source | link

How to add a new user and disable its root login?

A sysadmin may want to add a new user that will have no root access (nor sudo).

I don't sell hosting services but I can bring this field as an example; an hosting company gives its customers the ability to SSH tunnel into their own shared-hosting partition on a system (in which they won't be operate as root or with sudo, but just as a regular user, likely with many predefined technical disabilities like the absence of some common utilities).

How to create such a user with at least the basic inability to login as root?