🤖
Machine Learning Workstation
  • Main page
  • Connection
    • Connection through VPN
  • Usage
    • Python/Conda
    • Edge Impulse
    • Common packages
    • Tmux (persistent sessions)
    • Sharing code base
    • GPU usage
  • Data transfer
    • To or from the host machine
    • To or from the Internet
  • Useful links
    • Linux
    • Python
    • Machine Learning
      • Classifiers
      • Natural Language Processing
      • Unsupervised Learning
      • Data Generation
      • Autoencoders
    • Evaluating Neural Networks
    • Recurrent Neural Network
  • Administration
    • Introduction
      • TLJH mamba/pip installations for ALL users
      • TLJH: IDLE-CULLER - Disabled TODO need a sane value
      • Allowing user to log in to your JupyterHub without server user name
    • Connect to the machine via SSH
      • Add SSH Keys
      • Port forwarding
      • X forwarding (running software with GUI)
      • Run Jupyter remotely
    • Managing users
    • System maintenance
    • Other tasks
Powered by GitBook
On this page
  • List all users
  • List connected users
  • Create user
  • Grant administrative rights

Was this helpful?

  1. Administration

Managing users

PreviousRun Jupyter remotelyNextSystem maintenance

Last updated 3 years ago

Was this helpful?

This page covers common user management tasks. For more information, please refer to the following .

List all users

The following command can be used to list all existing users:

less /etc/passwd

The first column of the output represents the users. Please note that this list also contains special users which are used by system services and processes.

List connected users

To list all currently connected users:

w

This will show the user names along with their IP address, login time, and other information.

Create user

The following command can be used to create a user named <USER>:

sudo adduser <USER>

Upon executing the command, you will be asked to enter a few pieces of information:

  • User password (this is only going to be temporary)

  • User full name

  • Other information (Room number, phones, etc)

    Except for the password, all other fields are optional.

Once the user has been added, you can check its presence by trying and logging as them:

sudo su <USER>

This should cause your command prompt to change into <USER>@mlworkstation... . You can log out of the new user by pressing ctrl+D or typing exit.

It is not advisable that the users keep adopting the temporary password specified above. In order to force a user to set a new password (for instance, before their first login), issue the following command:

sudo passwd --expire <USER>

Grant administrative rights

Administrative (sudo) rights in Linux are necessary to install new software, update the system, edit system directories, and handling some of the internal services.

In order for existing users to be granted these privileges, they must be part of the sudo group, which can be done by:

sudo usermod -a -G sudo <USER>

The changes will take place starting from their following login. From there on, they can run commands with admin rights by prepending the command with sudo.

tutorial