Advertisement
Guest User

Untitled

a guest
Aug 21st, 2010
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.51 KB | None | 0 0
  1.  _________________________________________
  2. / You two ought to be more careful--your  \
  3. \ love could drag on for years and years. /
  4.  -----------------------------------------
  5.        \   ,__,
  6.         \  (oo)____
  7.            (__)    )\
  8.               ||--|| *
  9. [adam@tux ~]$ cat /etc/lsb-release
  10. DISTRIB_ID=LinuxMint
  11. DISTRIB_RELEASE=9
  12. DISTRIB_CODENAME=isadora
  13. DISTRIB_DESCRIPTION="Linux Mint 9 Isadora - Xfce"
  14. [adam@tux ~]$ w
  15.  12:27:35 up 1 day, 22:26,  2 users,  load average: 1.11, 1.30, 1.18
  16. USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
  17. adam     tty7     :0               12:19   46:26m  1:32   0.04s /bin/sh /etc/xd
  18. adam     pts/0    :0.0             12:27    0.00s  0.77s  0.01s w
  19. [adam@tux ~]$ who
  20. adam     tty7         2010-08-22 12:19 (:0)
  21. adam     pts/0        2010-08-22 12:27 (:0.0)
  22. [adam@tux ~]$ ps -U rtc -a
  23. ERROR: User name does not exist.
  24. ********* simple selection *********  ********* selection by list *********
  25. -A all processes                      -C by command name
  26. -N negate selection                   -G by real group ID (supports names)
  27. -a all w/ tty except session leaders  -U by real user ID (supports names)
  28. -d all except session leaders         -g by session OR by effective group name
  29. -e all processes                      -p by process ID
  30. T  all processes on this terminal     -s processes in the sessions given
  31. a  all w/ tty, including other users  -t by tty
  32. g  OBSOLETE -- DO NOT USE             -u by effective user ID (supports names)
  33. r  only running processes             U  processes for specified users
  34. x  processes w/o controlling ttys     t  by tty
  35. *********** output format **********  *********** long options ***********
  36. -o,o user-defined  -f full            --Group --User --pid --cols --ppid
  37. -j,j job control   s  signal          --group --user --sid --rows --info
  38. -O,O preloaded -o  v  virtual memory  --cumulative --format --deselect
  39. -l,l long          u  user-oriented   --sort --tty --forest --version
  40. -F   extra full    X  registers       --heading --no-heading --context
  41.                     ********* misc options *********
  42. -V,V  show version      L  list format codes  f  ASCII art forest
  43. -m,m,-L,-T,H  threads   S  children in sum    -y change -l format
  44. -M,Z  security data     c  true command name  -c scheduling class
  45. -w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy
  46. [adam@tux ~]$
  47. [adam@tux ~]$ cat /etc/lsb-release
  48. DISTRIB_ID=LinuxMint
  49. DISTRIB_RELEASE=9
  50. DISTRIB_CODENAME=isadora
  51. DISTRIB_DESCRIPTION="Linux Mint 9 Isadora - Xfce"
  52. [adam@tux ~]$ w
  53.  12:28:09 up 1 day, 22:26,  2 users,  load average: 1.66, 1.42, 1.23
  54. USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
  55. adam     tty7     :0               12:19   46:26m  1:38   0.04s /bin/sh /etc/xd
  56. adam     pts/0    :0.0             12:27    0.00s  0.76s  0.00s w
  57. [adam@tux ~]$ who
  58. adam     tty7         2010-08-22 12:19 (:0)
  59. adam     pts/0        2010-08-22 12:27 (:0.0)
  60. [adam@tux ~]$ ps -U kipx -a
  61.   PID TTY          TIME CMD
  62. 15558 ?        00:00:00 gnome-keyring-d
  63. 20214 ?        00:00:00 gnome-keyring-d
  64. 27818 pts/0    00:00:00 ps
  65. [adam@tux ~]$ pkill -KILL -u kipx
  66. pkill: 15558 - Operation not permitted
  67. pkill: 20214 - Operation not permitted
  68. [adam@tux ~]$ su !!
  69. su pkill -KILL -u kipx
  70. su: invalid option -- 'K'
  71. Usage: su [options] [LOGIN]
  72.  
  73. Options:
  74.   -c, --command COMMAND         pass COMMAND to the invoked shell
  75.   -h, --help                    display this help message and exit
  76.   -, -l, --login                make the shell a login shell
  77.   -m, -p,
  78.   --preserve-environment        do not reset environment variables, and
  79.                                 keep the same shell
  80.   -s, --shell SHELL             use SHELL instead of the default in passwd
  81.  
  82. [adam@tux ~]$ su pkill -kill -u kipx
  83. su: invalid option -- 'k'
  84. Usage: su [options] [LOGIN]
  85.  
  86. Options:
  87.   -c, --command COMMAND         pass COMMAND to the invoked shell
  88.   -h, --help                    display this help message and exit
  89.   -, -l, --login                make the shell a login shell
  90.   -m, -p,
  91.   --preserve-environment        do not reset environment variables, and
  92.                                 keep the same shell
  93.   -s, --shell SHELL             use SHELL instead of the default in passwd
  94.  
  95. [adam@tux ~]$ sudo deluser kipx
  96. Removing user `kipx' ...
  97. Warning: group `kipx' has no more members.
  98. userdel: user kipx is currently logged in
  99. /usr/sbin/deluser: `/usr/sbin/userdel kipx' returned error code 8. Exiting.
  100. [adam@tux ~]$
  101. [adam@tux ~]$ cat /etc/lsb-release
  102. DISTRIB_ID=LinuxMint
  103. DISTRIB_RELEASE=9
  104. DISTRIB_CODENAME=isadora
  105. DISTRIB_DESCRIPTION="Linux Mint 9 Isadora - Xfce"
  106. [adam@tux ~]$ w
  107. 12:30:15 up 1 day, 22:28,  2 users,  load average: 1.28, 1.43, 1.26
  108. USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
  109. adam     tty7     :0               12:19   46:28m  2:01   0.04s /bin/sh /etc/xd
  110. adam     pts/0    :0.0             12:27    0.00s  0.77s  0.01s w
  111. [adam@tux ~]$ who
  112. adam     tty7         2010-08-22 12:19 (:0)
  113. adam     pts/0        2010-08-22 12:27 (:0.0)
  114. [adam@tux ~]$ ps -U kipx -a
  115.  PID TTY          TIME CMD
  116. 15558 ?        00:00:00 gnome-keyring-d
  117. 20214 ?        00:00:00 gnome-keyring-d
  118. 29147 pts/0    00:00:00 ps
  119. [adam@tux ~]$ pkill -KILL -u kipx
  120. pkill: 15558 - Operation not permitted
  121. pkill: 20214 - Operation not permitted
  122. [adam@tux ~]$ sudo deluser kipx
  123. Removing user `kipx' ...
  124. Warning: group `kipx' has no more members.
  125. userdel: user kipx is currently logged in
  126. /usr/sbin/deluser: `/usr/sbin/userdel kipx' returned error code 8. Exiting.
  127. [adam@tux ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement