Linux user mgnt

403 views

Published on

About

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
403
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Linux user mgnt

  1. 1. Linux User Management
  2. 2. ac Command Print statistics about users' connect time. Syntax: ac [ -d | --daily-totals ] [ -y | --print-year ] [ -p | --individual-totals ] [ people ] [ -f | --file filename ] [ -a | --all-days ] [ --complain ] [ --reboots ] [ --supplants ] [ --timewarps ] [ --compatibility ] [ --tw-leniency num ] [ --tw-suspicious num ] [ -z | --print-zeros ] [ --debug ] [ -V | --version ] [ -h | --help ] Example: ac -d -y - Would display results similar to: May 2 2010 total 0.21 May 3 2010 total 3.04 May 4 2010 total 10.95 May 5 2010 total 10.49 May 6 2010 total 13.86 May 7 2010 total 6.79 May 9 2010 total 2.22 May 10 2010 total 11.90 May 11 2010 total 9.31 May 12 2010 total 0.82 May 13 2010 total 10.00 May 14 2010 total 29.13 May 15 2010 total 9.47 May 23 2010 total 0.11 Today total 3.37
  3. 3. chage Command Syntax: chage [options] user The chage command changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her password. Example: chage /etc/passwd
  4. 4. logname Command Syntax: logname logname - would return the name of the user currently logged in. Examples: fp060@pbs060:~$ logname fp060
  5. 5. passwd Command Syntax: passwd Allows you to change your password. Examples: fp060@pbs060:~$ passwd fp060 Changing password for fp060. (current) UNIX password: Enter new UNIX password: Retype new UNIX password:
  6. 6. id Command Syntax: id [Option] Shows you the numeric user and group ID on BSD(Berkeley Software Distribution). Examples: fp060@pbs060:~$ id uid=1000(fp060) gid=1000(fp060) groups=4(adm),20(dialout),24(cdrom),46(plugdev),104(lpadmin),115(admin),120(sambashare),1000(fp060)
  7. 7. last Command Syntax: last Show listing of last logged in users. Example: fp060@pbs060:~$ last fp060 pts/1 :0.0 Mon May 24 02:08 - 02:08 (00:00) fp060 pts/0 :0.0 Sun May 23 23:59 still logged in fp060 tty7 :0 Sun May 23 23:53 still logged in reboot system boot 2.6.31-14-generi Sun May 23 23:52 - 02:14 (02:22) fp060 pts/0 :0.0 Sat May 15 02:26 - 02:36 (00:09) fp060 pts/5 :0.0 Sat May 15 00:00 - 00:22 (00:22) fp060 pts/5 :0.0 Fri May 14 23:53 - 23:54 (00:00) fp060 pts/5 :0.0 Fri May 14 23:50 - 23:51 (00:00) fp060 pts/6 :0.0 Fri May 14 23:26 - 23:44 (00:17) fp060 pts/5 :0.0 Fri May 14 23:21 - 23:44 (00:22) fp060 pts/4 :0.0 Fri May 14 22:56 - 00:22 (01:26) fp060 pts/3 :0.0 Fri May 14 22:42 - 00:22 (01:40) fp060 pts/2 :0.0 Fri May 14 22:39 - 00:22 (01:43) fp060 pts/1 :0.0 Fri May 14 22:35 - 00:22 (01:47) fp060 pts/0 :0.0 Fri May 14 22:22 - 00:22 (02:00) fp060 tty7 :0 Fri May 14 22:22 - down (08:39) reboot system boot 2.6.31-14-generi Fri May 14 22:21 - 07:02 (08:40)

×