Jiepu class notes (1)

Source: Internet
Author: User
Tags qmail
Basic AAA knowledge-========================== who command is to display the current user boss @ boss: ~ $ CAT/etc/passwd root: X: 0: 0: Root:/root:/bin/bash daemon: X: 1: 1: daemon:/usr/sbin: /bin/sh bin: X: 2: 2: Bin:/bin/sh SYS: X: 3: SYS:/dev:/bin/sh Sync: x: 4: 65534: Sync:/bin/Sync games: X: 5: 60: games:/usr/games:/bin/sh man: X: 6: 12: Man:/var/Cache/MAN:/bin/sh LP: X: 7: 7: LP:/var/spool/lpd:/bin/sh mail: X: 8: 8: Mail:/var/mail:/bin/sh news: X: 9: 9: News:/var/spool/news:/bin/sh uucp: X: 10: 10: uucp:/var/spool/uucp:/bin/ Sh Proxy: X: 13: 13: proxy:/bin/sh www-data: X: 33: 33: www-data:/var/www: /bin/sh backup: X: 34: 34: Backup:/var/backups:/bin/sh list: X: 38: 38: Mailing List Manager:/var/List: /bin/sh IRC: X: 39: 39: IRCd:/var/run/IRCd:/bin/sh gnats: X: 41: 41: gnats bug-Reporting System (Admin):/var/lib/gnats:/bin/sh nobody: X: 65534: 65534: Nobody:/nonexistent:/bin/sh MYSQL: x: 60008: 60008:/home/MySQL:/bin/sh alias: X: 60000: 60000:/var /Qmail/alias:/bin/sh qmaild: X: 60001: 60000:/var/Qmail:/bin/sh qmaill: X: 60002: 60000 :: /var/Qmail:/bin/sh qmailp: X: 60003: 60000:/var/Qmail:/bin/sh qmailq: X: 60004: 60001 :: /var/Qmail:/bin/sh qmailr: X: 60005: 60001:/var/Qmail:/bin/sh qmails: X: 60006: 60001 :: /var/Qmail:/bin/sh CVS: X: 6009: 6009:/home/CVS:/bin/sh Vpopmail: X: 60007: 60002 :: /home/Vpopmail:/bin/sh sshd: X: 100: 65534:/var/run/sshd:/usr/sbin/nologin t Elnetd: X: 101: 103:/nonexistent:/bin/false BOSS: X: 1000: 104:/home/Boss:/bin/bash chengx: X: 1001: 104:/home/chengx:/bin/bash DOC: X: 1002: 1:/usr/local/boss/Apache/htdocs/DOC:/bin/sh duanxm: x: 1003: 104:/home/duanxm:/bin/bash liangxn: X: 1004: 104:/home/liangxn:/bin/bash zhangzz: X: 1005: 104:/home/zhangzz:/bin/bash yanqm: X: 1006: 104:/home/yanqm:/bin/bash zhanaa: X: 1007: 104 :: /home/zhanaa:/bin/bash zhangbo: X: 1008: 104:/home/zhangbo:/bin/bash lizq: X: 1009: 104:/home/lizq:/bin/bash guojia: X: 1010: 104: :/home/guojia:/bin/bash zhangbq: X: 1011: 104:/home/zhangbq:/bin/bash yujj: X: 1012: 104 :: /home/yujj:/bin/bash fanwe: X: 1013:/home/fanwe:/bin/bash fubl: X: 104: 1014 :: /home/fubl:/bin/bash wanyuan: X: 1015: 104:/home/wanyuan:/bin/bash Guoqi: X: 1016: 104 :: /home/Guoqi:/bin/bash Zhaofeng: X: 1017: 104:/home/Zhaofeng:/bin/B Ash wenyn: X: 1018: 104:/home/wenyn:/bin/bash wukh: X: 1019: 104:/home/wukh:/bin/bash huanggh: x: 1020: 104:/home/huanggh:/bin/bash yanglh: X: 1021:/home/yanglh:/bin/bash xiaoliang: X: 104: 104:/home/xiaoliang:/bin/bash jirong: X: 1023: 104:/home/jirong:/bin/bash chenlz: X: 1024: 104 :: /home/chenlz:/bin/bash hush: X: 1025: 104:/home/hush:/bin/bash luzb: X: 1026: 104 :: /home/luzb:/bin/bash liujun: X: 1027: 104:/home /Liujun:/bin/bash boxue: X: 1028: 104:/home/boxue:/bin/bash liucz: X: 1029: 104:/home/liucz: /bin/bash boss @ BOSS :~ $ BOSS:/home/boss # ID // check the current user ID uid = 0 (Root) gid = 0 (Root) groups = 0 (Root) Boss: /home/boss # echo $ home // view the user's home directory/root BOSS:/home/boss # PWD // view the current directory/home/boss: /home/boss # log onto Telnet 210.43.202.96 login: zhangsan (zhangsan) zhangsf (zhangsanfeng) zhangsf (zhangshanfeng) passwd: Boss (not displayed) Boss @ BOSS :~ $ CAT/etc/passwd | grep chengx: X: 1001: 104:/home/chengx:/bin/bash boss @ BOSS :~ $ All usernames of the AAA Server are stored in/etc/passwd, and passwords are stored in/etc/shadow. Boss @ BOSS :~ $ CD/usr/local/boss @ BOSS:/usr/local/boss $ PWD/usr/local/boss @ boss: /usr/local/boss $ CD/usr/bin boss @ BOSS:/usr/bin $ PWD/usr/bin boss @ BOSS:/usr/bin $ CD boss @ boss: ~ $ PWD/home/boss @ BOSS :~ $ Boss @ BOSS :~ $ Cd./boss @ BOSS :~ $ PWD/home/boss @ BOSS :~ $ CD .. boss @ BOSS:/home $ PWD/home boss @ BOSS:/home $ CD .. /.. /.. /. /. /.. /boss @ BOSS:/$ PWD/boss @ BOSS:/$ boss @ BOSS :~ $ LS-r/chengx @ BOSS :~ $ Touch Apple chengx @ BOSS :~ $ View the detailed attributes of the radwtmp file in the/var/AAA directory of the ADSL dialing data list. 1: CD/var/aaa ls-L/radwtmp 2: ls-L/var/AAA/radwtmp 3: ls-L/var/AAA View Details of all files in the entire directory
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.