Professional Documents
Culture Documents
SESSION2
SESSION2
SESSION2
2
Creating a user
3
Deleting a User
• userdel
• userdel [-r] username
• The userdel command deletes an existing user.
• → sudo userdel smith
4
Modifying a User
• usermod
• usermod [options] username
• The usermod command modifies the given user’s account
in
• various ways, such as changing a home directory:
• → sudo usermod -d /home/another smith
• → sudo usermod -aG sudo smith
5
Changing User’s Password
• passwd
• passwd [options] [username]
• The passwd command changes a login password,
yours by
• default:
• → passwd
• or another user’s password if run by the superuser:
• → sudo passwd smith
6
Changing User’s Information
• chfn
• chfn [options] [username]
• The chfn (change finger) command updates a few pieces ofpersonal information
maintained by the system: real name,home telephone, office telephone, and office
location, as displayedby the finger command. Invoked without a username, chfn
affects your account; invoked with a username (by root), it affects that user. With
no options, chfn will prompt you for the desired information:
• → chfn
• Password: ********
• Name [Shawn Smith]: Shawn E. Smith
• Office [100 Barton Hall]:
• Office Phone [212-555-1212]: 212-555-1234
• Home Phone []:
7
Creating and modifying Group
• Creating a group
• sudo addgroup guest
• Deleting a group
• Sudo groupdel <groupname>
8
Static IP addressing
9
Static IP addressing
• SSH (Secure Shell) is a tool for secure system administration, file transfers,
and other communication across the Internet or other untrusted network. It
encrypts identities, passwords, and transmitted data so that they cannot be
eavesdropped and stolen.
11
Installing OPENSSH
• Server:
• sudo apt install openssh-server
• Client:
• sudo apt install openssh-client
12
SSH Client on Windows and WINSCP
13
K a b u l Po l y t e c h n i c U n i v e r s i t y
Thank You!
Questions?
@Zabehullah Nasiri