29-06-2012, 05:11 PM
LINUX SYSTEM ADMINISTRATION
LINUX SYSTEM.ppt (Size: 473 KB / Downloads: 79)
Init Runlevels
The following runlevels are defined in Linux:
0 - halt (Do NOT set initdefault to this)
1 - Single user mode
2 - Multiuser, without Network (The same as 3, if
you do not have networking)
3 – Text Mode
4 - unused
5 – Graphical Mode
6 - reboot (Do NOT set initdefault to this)
The default runlevel for a system to boot to is configured in /etc/inittab.
id:5:initdefault:
In GUI: Applications System Settings Server Settings Services
Generally, Linux operates in runlevel 3 or 5.
Creating a new User Account
Add an entry in /etc/passwd and /etc/shadow file (use next uid and suitable gid). You will have to create the user directory and assign a password to the user
Use useradd or adduser command to create a new user (useradd –g <group> -d <home directory> -c <comment> -s <shell> login-name) and groupadd to create a new group (groupadd group-name). You will have to assign a password (passwd login-name)
In GUI: Applications System Settings Users and Groups