0% found this document useful (0 votes)
8 views1 page

Week 10

Uploaded by

hirakeshkashyap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Week 10

Uploaded by

hirakeshkashyap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Operating System and Administration VVPCS

Managing User Accounts in Linux


Linux provides several commands for managing user accounts, including useradd, passwd, usermod, and userdel. Here's how to
use these commands:
1. Creating a New User Account
• Command: useradd
• Syntax: useradd [options] username
• Example: To create a new user named "Student1", use:
useradd Student1
• Assigning a Password: Use the passwd command to set a password for the new user.
passwd Student1
2. Modifying an Existing User Account
• Command: usermod
• Syntax: usermod [options] username
• Example: To change the username "Student1" to "student1", use:
usermod -l Student1 student1
3. Deleting a User Account
• Command: userdel
• Syntax: userdel [options] username
• Example: To delete the user " student1", use:
userdel johndoe
4. Viewing Created Users
To view all users on a Linux system, you can use the following methods:
• Using cat Command:
cat /etc/passwd

System Configuration Commands in Linux


Linux system configuration involves managing various files and commands. Here are some key system configuration files and
commands:
System Configuration Files
• /etc/login.defs: Contains default values for user account creation.
• /etc/passwd: Stores user account information.
• /etc/group: Stores group information.
• /etc/issue and /etc/issue.net: Display system information and greetings during login.
• /etc/inittab: Specifies system runlevels and initialization processes.

Rakesh Kashyap 1

You might also like