🧠 SynapseNotes

Search

Search IconIcon to open search

Remove access to the terminal to certain user (Ubuntu 22.04)

Last updated Jul 29, 2023

Ubuntu is a Linux distribution.

# Use the command

1
sudo usermod --shell /bin/false username

# Explanation

# Log in and out

This step makes the changes take effect for the user.

# Important!

If you want to remove access via shortcuts as well, read Remove or edit access to the terminal via ctrl+alt+t command (GNOME).

# Source:

Chat GPT v-3.5