Coding Knowledge Center
Linux
Administration (disable console mouse cursor) |
> chkconfig --levels 123456 gpm off
This command will turn off the "gpm" service in all runlevels, in affect turning off the mouse cursor.
I did this on my laptop because the mouse pad had a mind of its own and was going all over the screen.
Administration (group accounts - commands) |
1) groupadd [group_name]
2) groupmod [group_name]
3) groupdel [group_name]
4) gpasswd [group_name]
5) grpconv
6) grpunconv
7) grpck
1) Add group.
2) Modify group.
3) Delete group.
4) Change group's password.
5) Converts regular group passwords to shadow passwords.
6) Converts shadow group passwords back to regular group passwords.
7) Checks integrity of /etc/group and /etc/gshadow files.
Administration (group accounts - files) |
/etc/group - Group file
/etc/gshadow - Shadow group file
Files related to group accounts.
Administration (set timezone) |
> ls -l /etc/localtime lrwxrwxrwx 1 root root 36 Oct 31 2007 /etc/localtime -> /usr/share/zoneinfo/America/New_York
> rm /etc/localtime
> ln -s /usr/share/zoneinfo/US/eastern localtime
Look to see where the current localtime is pointing to.
Remove it and then create a new link to the correct timezone file.
Administration (user accounts - commands) |
1) useradd -d /home/[user_name] -m /etc/skel [user_name]
2) usermod [user_name]
3) userdel [user_name]
4) passwd [user_name]
5) chage [user_name]
6) pwconv
7) pwunconv
8) pwck
Account management related commands.
1) Add a user, creating his home directory and using the specified skel template.
2) Modify existing user account.
3) Delete user account.
4) Change user's password.
5) Set user account expiration policy.
6) Converts regular passwords to shadow passwords.
7) Converts shadow passwords back to regular passwords.
8) Checks integrity of /etc/passwd and /etc/shadow files.
Administration (user accounts - files) |
/etc/passwd - Password file
/etc/shadow - Shadow password file
/etc/skel - Skeleton home directory templates
/etc/profile, /etc/profile.d - global, login settings
/etc/bashrc, /etc/bash.bashrc - global, non-login settings
~/.bash_login, ~/.profile, ~/.bash_profile - user, login settings
~/.bash_logout - user, logout settings
~/.bashrc - user, non-login settings
~/.inputrc - user, keyboard settings
Various user account related files
X-Windows (Restart) |
Ctrl-Alt-Backspace
Kill and restart X-Windows