• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Linux user mgnt
 

Linux user mgnt

on

  • 532 views

About

About

Statistics

Views

Total Views
532
Views on SlideShare
530
Embed Views
2

Actions

Likes
0
Downloads
1
Comments
0

2 Embeds 2

http://www.slideshare.net 1
https://csuglobal.blackboard.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Linux user mgnt Linux user mgnt Presentation Transcript

    • Linux User Management
    • 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
    • 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
    • logname Command Syntax: logname logname - would return the name of the user currently logged in. Examples: fp060@pbs060:~$ logname fp060
    • 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:
    • 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)
    • 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)
    •