Enable and disable user shell in Ubuntu

To disable the user’s command line, you can run the following command:

At that point, the user will no longer be able to use the command line.

To enable it, run the following command:

 

Add Comment