/l3/users/26-03-2012/NT-BSDnet/freebsd3.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 |
|
#exit
![]() exit |
#exit
![]() exit |
#exit
![]() exit |
#man pw
|
#man pw^C
![]() |
#man pw^C
![]() |
#man pw^C
![]() |
#man pw^C
![]() |
#vim /etc/shadow
![]() |
#vim /etc/shadow
![]() |
#~
![]() |
#~
![]() |
#~
![]() # $FreeBSD: src/etc/master.passwd,v 1.40.26.1 2010/12/21 17:10:29 kensmith Exp $ # sh root:$1$eExfkyn/$LpFRLwcyME9Xk7A.DyisE/:0:0::0:0:Charlie &:/root:/usr/local/bin/baa toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin ginm:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin ... proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin ucico _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologinmqueue:/usr/sbin/noloo www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin l/bin/bash66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uu nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin user:$1$nPU0IgL2$AT2opEx2xVJqqeiaOE1Vs/:1001:1001::0:0:User &:/home/user:/usr/locaa "/etc/master.passwd" 24 lines, 1567 characters |
#~
![]() # $FreeBSD: src/etc/master.passwd,v 1.40.26.1 2010/12/21 17:10:29 kensmith Exp $ # sh root:$1$eExfkyn/$LpFRLwcyME9Xk7A.DyisE/:0:0::0:0:Charlie &:/root:/usr/local/bin/baa toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin ginm:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin ... proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin ucico _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologinmqueue:/usr/sbin/noloo www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin l/bin/bash66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uu nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin user:$1$nPU0IgL2$AT2opEx2xVJqqeiaOE1Vs/:1001:1001::0:0:User &:/home/user:/usr/locaa "/etc/master.passwd" 24 lines, 1567 characters |
#~
![]() # $FreeBSD: src/etc/master.passwd,v 1.40.26.1 2010/12/21 17:10:29 kensmith Exp $ # sh root:$1$eExfkyn/$LpFRLwcyME9Xk7A.DyisE/:0:0::0:0:Charlie &:/root:/usr/local/bin/baa toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin ginm:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin ... proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin ucico _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologinmqueue:/usr/sbin/noloo www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin l/bin/bash66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uu nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin user:$1$nPU0IgL2$AT2opEx2xVJqqeiaOE1Vs/:1001:1001::0:0:User &:/home/user:/usr/locaa "/etc/master.passwd" 24 lines, 1567 characters |
#~
# $FreeBSD: src/etc/master.passwd,v 1.40.26.1 2010/12/21 17:10:29 kensmith Exp $ # sh root:$1$eExfkyn/$LpFRLwcyME9Xk7A.DyisE/:0:0::0:0:Charlie &:/root:/usr/local/bin/baa toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin ginm:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin ... proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin ucico _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin _dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologinmqueue:/usr/sbin/noloo www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin l/bin/bash66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uu nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin user:$1$nPU0IgL2$AT2opEx2xVJqqeiaOE1Vs/:1001:1001::0:0:User &:/home/user:/usr/locaa "/etc/master.passwd" 24 lines, 1567 characters |
#~
![]() usage: vipw [-d directory] |
#~
![]() usage: vipw [-d directory] |
#vipw /etc/passwd
![]() usage: vipw [-d directory] |
#vipw /etc/passwd
![]() usage: vipw [-d directory] |
#man vipw
![]() |
#man vipw
|
#vipw -d c/master.passwd
![]() vipw: /etc/master.passwd/master.passwd: Not a directory |
#vipw -d c/master.passwd
![]() vipw: /etc/master.passwd/master.passwd: Not a directory |
#man adduser
![]() |
#man adduser
|
#man useradd
![]() |
#man useradd
![]() |
#adduser user1
![]() Username: user1 Full name: user1 Uid (Leave empty for default): Login group [user1]: Login group is user1. Invite user1 into other groups? []: Login class [default]: Shell (sh csh tcsh bash rbash nologin) [sh]: Home directory [/home/user1]: Home directory permissions (Leave empty for default): Use password-based authentication? [yes]: ... Class : Groups : user1 Home : /home/user1 Home Mode : Shell : /bin/sh Locked : no OK? (yes/no): yes adduser: INFO: Successfully added (user1) to the user database. Add another user? (yes/no): no Goodbye! |
#adduser user1
Username: user1 Full name: user1 Uid (Leave empty for default): Login group [user1]: Login group is user1. Invite user1 into other groups? []: Login class [default]: Shell (sh csh tcsh bash rbash nologin) [sh]: Home directory [/home/user1]: Home directory permissions (Leave empty for default): Use password-based authentication? [yes]: ... Class : Groups : user1 Home : /home/user1 Home Mode : Shell : /bin/sh Locked : no OK? (yes/no): yes adduser: INFO: Successfully added (user1) to the user database. Add another user? (yes/no): no Goodbye! |
#id user1
![]() uid=1002(user1) gid=1002(user1) groups=1002(user1) |
#id user1
uid=1002(user1) gid=1002(user1) groups=1002(user1) |
#vipw
![]() toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin ... ~ ~ ~ ~ ~ ~ ~ ~ :q vipw: no changes made |
#vipw
toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin ... ~ ~ ~ ~ ~ ~ ~ ~ :q vipw: no changes made |
#fg
![]() bash: fg: current: no such job |
#fg
![]() bash: fg: current: no such job |
#fg
![]() bash: fg: current: no such job |
#fg
![]() bash: fg: current: no such job |
#jobs
![]() |
#jobs
|
#pw useradd
![]() pw: user name or id required |
#pw useradd
![]() pw: user name or id required |
#pw useradd
![]() pw: user name or id required |
#pw useradd
![]() pw: user name or id required |
#pw useradd user2
![]() |
#pw useradd user2
![]() |
#pw useradd user2
![]() |
#pw useradd user2
|
#^C useradd user2
![]() |
#^C useradd user2
![]() |
#man pw
![]() |
#man pw
|
#userdel
![]() bash: userdel: command not found |
#userdel
![]() bash: userdel: command not found |
#userdel
![]() bash: userdel: command not found |
#userdel
![]() bash: userdel: command not found |
#deluser
![]() bash: deluser: command not found |
#deluser
![]() bash: deluser: command not found |
#pw userdel
![]() pw: user name or id required |
#pw userdel
![]() pw: user name or id required |
#pw userdel
![]() pw: user name or id required |
#pw userdel
![]() pw: user name or id required |
#vipw
![]() toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin ... ~ ~ ~ ~ ~ ~ ~ ~ :q vipw: no changes made |
#vipw
toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin ... ~ ~ ~ ~ ~ ~ ~ ~ :q vipw: no changes made |
#rmuser
![]() Please enter one or more usernames: user1 Matching password entry: user1:*:1002:1002::0:0:user1:/home/user1:/bin/sh Is this the entry you wish to remove? y Remove user's home directory (/home/user1)? y Removing user (user1): mailspool home passwd. |
#rmuser
Please enter one or more usernames: user1 Matching password entry: user1:*:1002:1002::0:0:user1:/home/user1:/bin/sh Is this the entry you wish to remove? y Remove user's home directory (/home/user1)? y Removing user (user1): mailspool home passwd. |
#rmuser
![]() Please enter one or more usernames: user2 Matching password entry: user2:*:1003:1003::0:0:User &:/home/user2:/bin/sh Is this the entry you wish to remove? y Remove user's home directory (/home/user2)? y Removing user (user2): mailspool home passwd. |
#rmuser
![]() Please enter one or more usernames: user2 Matching password entry: user2:*:1003:1003::0:0:User &:/home/user2:/bin/sh Is this the entry you wish to remove? y Remove user's home directory (/home/user2)? y Removing user (user2): mailspool home passwd. |
#rmuser
![]() Please enter one or more usernames: user2 Matching password entry: user2:*:1003:1003::0:0:User &:/home/user2:/bin/sh Is this the entry you wish to remove? y Remove user's home directory (/home/user2)? y Removing user (user2): mailspool home passwd. |
#rmuser
Please enter one or more usernames: user2 Matching password entry: user2:*:1003:1003::0:0:User &:/home/user2:/bin/sh Is this the entry you wish to remove? y Remove user's home directory (/home/user2)? y Removing user (user2): mailspool home passwd. |
#man
![]() |
#man
![]() |
#sudo
![]() bash: sudo: command not found |
#sudo
![]() bash: sudo: command not found |
#sudo
![]() bash: sudo: command not found |
#sudo
![]() bash: sudo: command not found |
#locate sudo
![]() /usr/local/share/vim/vim73/ftplugin/sudoers.vim /usr/local/share/vim/vim73/syntax/sudoers.vim /usr/ports/games/fxsudoku /usr/ports/games/fxsudoku/Makefile /usr/ports/games/fxsudoku/distinfo /usr/ports/games/fxsudoku/files /usr/ports/games/fxsudoku/files/config.freebsd /usr/ports/games/fxsudoku/files/patch-build__configdetect /usr/ports/games/fxsudoku/files/patch-build__foxdetect /usr/ports/games/fxsudoku/files/patch-gb ... /usr/ports/security/sudosh3 /usr/ports/security/sudosh3/Makefile /usr/ports/security/sudosh3/distinfo /usr/ports/security/sudosh3/files /usr/ports/security/sudosh3/files/patch-src-Makefile.am /usr/ports/security/sudosh3/files/patch-src-getopt.c /usr/ports/security/sudosh3/files/patch-src::Makefile.in /usr/ports/security/sudosh3/files/patch-src::sudosh.c /usr/ports/security/sudosh3/pkg-descr /usr/ports/security/sudosh3/pkg-plist |
#locate sudo
![]() /usr/local/share/vim/vim73/ftplugin/sudoers.vim /usr/local/share/vim/vim73/syntax/sudoers.vim /usr/ports/games/fxsudoku /usr/ports/games/fxsudoku/Makefile /usr/ports/games/fxsudoku/distinfo /usr/ports/games/fxsudoku/files /usr/ports/games/fxsudoku/files/config.freebsd /usr/ports/games/fxsudoku/files/patch-build__configdetect /usr/ports/games/fxsudoku/files/patch-build__foxdetect /usr/ports/games/fxsudoku/files/patch-gb ... /usr/ports/security/sudosh3 /usr/ports/security/sudosh3/Makefile /usr/ports/security/sudosh3/distinfo /usr/ports/security/sudosh3/files /usr/ports/security/sudosh3/files/patch-src-Makefile.am /usr/ports/security/sudosh3/files/patch-src-getopt.c /usr/ports/security/sudosh3/files/patch-src::Makefile.in /usr/ports/security/sudosh3/files/patch-src::sudosh.c /usr/ports/security/sudosh3/pkg-descr /usr/ports/security/sudosh3/pkg-plist |
#locate sudo
![]() /usr/local/share/vim/vim73/ftplugin/sudoers.vim /usr/local/share/vim/vim73/syntax/sudoers.vim /usr/ports/games/fxsudoku /usr/ports/games/fxsudoku/Makefile /usr/ports/games/fxsudoku/distinfo /usr/ports/games/fxsudoku/files /usr/ports/games/fxsudoku/files/config.freebsd /usr/ports/games/fxsudoku/files/patch-build__configdetect /usr/ports/games/fxsudoku/files/patch-build__foxdetect /usr/ports/games/fxsudoku/files/patch-gb ... /usr/ports/security/sudosh3 /usr/ports/security/sudosh3/Makefile /usr/ports/security/sudosh3/distinfo /usr/ports/security/sudosh3/files /usr/ports/security/sudosh3/files/patch-src-Makefile.am /usr/ports/security/sudosh3/files/patch-src-getopt.c /usr/ports/security/sudosh3/files/patch-src::Makefile.in /usr/ports/security/sudosh3/files/patch-src::sudosh.c /usr/ports/security/sudosh3/pkg-descr /usr/ports/security/sudosh3/pkg-plist |
#locate sudo
/usr/local/share/vim/vim73/ftplugin/sudoers.vim /usr/local/share/vim/vim73/syntax/sudoers.vim /usr/ports/games/fxsudoku /usr/ports/games/fxsudoku/Makefile /usr/ports/games/fxsudoku/distinfo /usr/ports/games/fxsudoku/files /usr/ports/games/fxsudoku/files/config.freebsd /usr/ports/games/fxsudoku/files/patch-build__configdetect /usr/ports/games/fxsudoku/files/patch-build__foxdetect /usr/ports/games/fxsudoku/files/patch-gb ... /usr/ports/security/sudosh3 /usr/ports/security/sudosh3/Makefile /usr/ports/security/sudosh3/distinfo /usr/ports/security/sudosh3/files /usr/ports/security/sudosh3/files/patch-src-Makefile.am /usr/ports/security/sudosh3/files/patch-src-getopt.c /usr/ports/security/sudosh3/files/patch-src::Makefile.in /usr/ports/security/sudosh3/files/patch-src::sudosh.c /usr/ports/security/sudosh3/pkg-descr /usr/ports/security/sudosh3/pkg-plist |
#cd /usr/ports/security/sudo
![]() |
#cd /usr/ports/security/sudo
![]() |
#cd /usr/ports/security/sudo
|
#make install clean
![]() checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether to use a two line prompt for OTP authentication... yes checking whether to lecture users the first time they run sudo... yes ... /usr/local/bin/sudo /usr/local/bin/sudoedit If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.courtesan.com/sudo/ ===> Cleaning for sudo-1.8.3_2 |
#make install clean
![]() checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether to use a two line prompt for OTP authentication... yes checking whether to lecture users the first time they run sudo... yes ... /usr/local/bin/sudo /usr/local/bin/sudoedit If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.courtesan.com/sudo/ ===> Cleaning for sudo-1.8.3_2 |
#make install clean
![]() checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether to use a two line prompt for OTP authentication... yes checking whether to lecture users the first time they run sudo... yes ... /usr/local/bin/sudo /usr/local/bin/sudoedit If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.courtesan.com/sudo/ ===> Cleaning for sudo-1.8.3_2 |
#make install clean
![]() checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether to use a two line prompt for OTP authentication... yes checking whether to lecture users the first time they run sudo... yes ... /usr/local/bin/sudo /usr/local/bin/sudoedit If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.courtesan.com/sudo/ ===> Cleaning for sudo-1.8.3_2 |
#make install clean
![]() checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether to use a two line prompt for OTP authentication... yes checking whether to lecture users the first time they run sudo... yes ... /usr/local/bin/sudo /usr/local/bin/sudoedit If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.courtesan.com/sudo/ ===> Cleaning for sudo-1.8.3_2 |
#make install clean
![]() checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether to use a two line prompt for OTP authentication... yes checking whether to lecture users the first time they run sudo... yes ... /usr/local/bin/sudo /usr/local/bin/sudoedit If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.courtesan.com/sudo/ ===> Cleaning for sudo-1.8.3_2 |
#make install clean
x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu ... /usr/local/bin/sudo /usr/local/bin/sudoedit If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.courtesan.com/sudo/ ===> Cleaning for sudo-1.8.3_2 |
#sudo
![]() usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user name|#uid] usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command] usage: sudo [-AbEHknPS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ... |
#sudo
![]() usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user name|#uid] usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command] usage: sudo [-AbEHknPS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ... |
#sudo
![]() usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user name|#uid] usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command] usage: sudo [-AbEHknPS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ... |
#sudo
![]() usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user name|#uid] usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command] usage: sudo [-AbEHknPS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ... |
Время первой команды журнала | 19:22:42 2012- 3-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 20:01:50 2012- 3-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 29.70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.65 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.58 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008