Posts

Showing posts with the label linux notes

linux notes

Image
Linux Administration (Elective) UNIT-I System Administration Managing User Accounts:- All users must have accounts on the system. Fedora uses the /etc/passwd file to hold information on user accounts. Each user, regardless of type, has a one-line entry of account information stored in the /etc/passwd text file.   Each account entry contains a username and password field containing an x. Adding New Users The command-line approach to adding any user is actually quite simple and can be accomplished on a single line. In the example shown here, the sysadmin uses the useradd command to add the new user “ king ” . The command adduser is a symbolic link to useradd, so both commands work the same. #adduser king or # useradd – c “ bcs3 students ” -d/home/bcs3 king The – c option is the full name of the person, -d option is the home directory that we would want to create for new user.   The sysadmin can also use the graphical interface that Fedora provides, a