- To add user, run the following command which will create user directory in /home.
sudo useradd ftpuser
- To set password, execute the following command and then key in the password,
sudo passwd ftpuser
- To view the user who is connected to server, execute 'who' (or w) or 'users'.
- To view the user groups of the current session in the OS => groups
- To add create user group: sudo groupadd public
- To add user to a group: sudo usermod -G public -a ftpuser
- To view all groups: cat /etc/group
- To check the ‘ftpuser’ (user ID) belongs to which group:
id ftpuser
No comments:
Post a Comment