tuxmartin

OS2 test

Dec 11th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.56 KB | None | 0 0
  1. [student@localhost ~]$ su
  2. Password:
  3. [root@localhost student]# groupadd Pedagog
  4. [root@localhost student]# groupadd Student
  5. [root@localhost student]# useradd Ucitel01 -g Pedagog -d /home/Ucitel01 -s /bin/bash
  6. [root@localhost student]# passwd Ucitel01
  7. Changing password for user Ucitel01.
  8. New password:
  9. BAD PASSWORD: it is based on a dictionary word
  10. BAD PASSWORD: is too simple
  11. Retype new password:
  12. passwd: all authentication tokens updated successfully.
  13. [root@localhost student]# useradd Ucitel02 -g Pedagog -d /home/Ucitel02 -s /bin/bash
  14. [root@localhost student]# passwd Ucitel02
  15. Changing password for user Ucitel02.
  16. New password:
  17. BAD PASSWORD: it is based on a dictionary word
  18. BAD PASSWORD: is too simple
  19. Retype new password:
  20. passwd: all authentication tokens updated successfully.
  21. [root@localhost student]#
  22. [root@localhost student]# mkdir /zapocet
  23. [root@localhost student]# vim /zapocet/test.txt
  24. [root@localhost student]# chown Ucitel01:Pedagog /zapocet/test.txt
  25. [root@localhost student]# chmod 674 /zapocet/test.txt
  26. [root@localhost student]# vim /zapocet/odpovedi1.txt
  27. [root@localhost student]# useradd st001 -g Student -d /home/st001 -s /bin/bash
  28. [root@localhost student]# passwd st001
  29. Changing password for user st001.
  30. New password:
  31. BAD PASSWORD: it is based on a dictionary word
  32. BAD PASSWORD: is too simple
  33. Retype new password:
  34. passwd: all authentication tokens updated successfully.
  35. [root@localhost student]# chown st001:Pedagog /zapocet/odpovedi1.txt
  36. [root@localhost student]# useradd st002 -g Student -d /home/st002 -s /bin/bash
  37. [root@localhost student]# passwd st002
  38. Changing password for user st002.
  39. New password:
  40. BAD PASSWORD: it is based on a dictionary word
  41. BAD PASSWORD: is too simple
  42. Retype new password:
  43. passwd: all authentication tokens updated successfully.
  44. [root@localhost student]#
  45. [root@localhost student]# ls /usr/share/man/man1 | grep less
  46. bzless.1.gz
  47. less.1.gz
  48. lessecho.1.gz
  49. lesskey.1.gz
  50. lzless.1.gz
  51. xzless.1.gz
  52. zless.1.gz
  53. [root@localhost student]# time find / *.txt | grep OS2
  54. /usr/share/man/man3/File::Spec::OS2.3pm.gz
  55. /usr/share/man/man3/ExtUtils::MM_OS2.3pm.gz
  56. /usr/share/perl5/ExtUtils/MM_OS2.pm
  57. /usr/share/perl5/File/Spec/OS2.pm
  58. find: `*.txt': No such file or directory
  59.  
  60. real    0m0.330s
  61. user    0m0.110s
  62. sys 0m0.176s
  63. [root@localhost student]#
  64. [root@localhost student]# wget ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/openmotif-2.3.3-4.el6.i686.rpm
  65. --2012-12-11 13:59:36--  ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/openmotif-2.3.3-4.el6.i686.rpm
  66.           => “openmotif-2.3.3-4.el6.i686.rpm”
  67. Resolving ftp.muug.mb.ca... 130.179.31.46
  68. Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
  69. Logging in as anonymous ... Logged in!
  70. ==> SYST ... done.    ==> PWD ... done.
  71. ==> TYPE I ... done.  ==> CWD (1) /mirror/centos/6.3/os/x86_64/Packages ... done.
  72. ==> SIZE openmotif-2.3.3-4.el6.i686.rpm ... 1415624
  73. ==> PASV ... done.    ==> RETR openmotif-2.3.3-4.el6.i686.rpm ... done.
  74. Length: 1415624 (1.3M) (unauthoritative)
  75.  
  76. 100%[===================================================================>] 1,415,624    304K/s   in 4.5s    
  77.  
  78. 2012-12-11 13:59:42 (304 KB/s) - “openmotif-2.3.3-4.el6.i686.rpm” saved [1415624]
  79.  
  80. [root@localhost student]# rpm -i -v -h --percent openmotif-2.3.3-4.el6.i686.rpm
  81. error: Failed dependencies:
  82.     libXp.so.6 is needed by openmotif-2.3.3-4.el6.i686
  83. [root@localhost student]# wget ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/libXp-1.0.0-15.1.el6.i686.rpm
  84. --2012-12-11 14:01:29--  ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/libXp-1.0.0-15.1.el6.i686.rpm
  85.           => “libXp-1.0.0-15.1.el6.i686.rpm”
  86. Resolving ftp.muug.mb.ca... 130.179.31.46
  87. Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
  88. Logging in as anonymous ...
  89. Error in server greeting.
  90. Retrying.
  91.  
  92. --2012-12-11 14:01:30--  ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/libXp-1.0.0-15.1.el6.i686.rpm
  93.  (try: 2) => “libXp-1.0.0-15.1.el6.i686.rpm”
  94. Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
  95. Logging in as anonymous ...
  96. Error in server greeting.
  97. Retrying.
  98.  
  99. --2012-12-11 14:01:33--  ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/libXp-1.0.0-15.1.el6.i686.rpm
  100.  (try: 3) => “libXp-1.0.0-15.1.el6.i686.rpm”
  101. Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
  102. Logging in as anonymous ...
  103. Error in server greeting.
  104. Retrying.
  105.  
  106. ^C
  107. [root@localhost student]# wget ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/libXp-1.0.0-15.1.el6.i686.rpm
  108. --2012-12-11 14:01:41--  ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/libXp-1.0.0-15.1.el6.i686.rpm
  109.           => “libXp-1.0.0-15.1.el6.i686.rpm”
  110. Resolving ftp.muug.mb.ca... 130.179.31.46
  111. Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
  112. Logging in as anonymous ...
  113. Error in server greeting.
  114. Retrying.
  115.  
  116. --2012-12-11 14:01:43--  ftp://ftp.muug.mb.ca/mirror/centos/6.3/os/x86_64/Packages/libXp-1.0.0-15.1.el6.i686.rpm
  117.  (try: 2) => “libXp-1.0.0-15.1.el6.i686.rpm”
  118. Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
  119. Logging in as anonymous ...
  120. Error in server greeting.
  121. Retrying.
  122.  
  123. ^C
  124. [root@localhost student]# rpm -i -v -h --percent libXp-1.0.0-15.1.el6.i686.rpm
  125. Preparing...                %% 0.000000
  126. ########################################### [100%]
  127.   1:libXp                  %% 0.413504
  128. %% 87.923417
  129. %% 88.319927
  130. %% 88.826895
  131. %% 92.531438
  132. %% 98.742495
  133. %% 99.645973
  134. %% 100.000000
  135. [root@localhost student]# rpm -i -v -h --percent openmotif-2.3.3-4.el6.i686.rpm Preparing...                %% 0.000000
  136. ########################################### [100%]
  137.   1:openmotif              %% 0.119742
  138. %% 0.125572
  139. %% 1.873596
  140. %% 3.618240
  141. %% 5.362884
  142. %% 7.107527
  143. %% 8.290677
  144. %% 8.424103
  145. %% 8.489165
  146. %% 8.550686
  147. %% 8.611116
  148. %% 8.688743
  149. %% 8.765199
  150. %% 8.829090
  151. %% 8.891277
  152. %% 8.952186
  153. %% 9.030399
  154. %% 9.107228
  155. %% 9.173727
  156. %% 9.236367
  157. %% 9.303160
  158. %% 9.307153
  159. %% 11.055443
  160. %% 12.800087
  161. %% 13.216229
  162. %% 13.220142
  163. %% 14.968433
  164. %% 16.713076
  165. %% 18.457720
  166. %% 20.202363
  167. %% 21.947007
  168. %% 23.691650
  169. %% 23.945723
  170. %% 23.949609
  171. %% 25.697927
  172. %% 27.442570
  173. %% 29.187214
  174. %% 30.931857
  175. %% 32.676501
  176. %% 34.421144
  177. %% 36.165788
  178. %% 37.910432
  179. %% 39.655075
  180. %% 41.399719
  181. %% 43.144362
  182. %% 44.889006
  183. %% 46.633649
  184. %% 48.378293
  185. %% 50.122936
  186. %% 51.867580
  187. %% 53.612224
  188. %% 55.356867
  189. %% 57.101511
  190. %% 58.846154
  191. %% 60.590798
  192. %% 62.335441
  193. %% 64.080085
  194. %% 65.824728
  195. %% 67.569372
  196. %% 69.314016
  197. %% 71.058659
  198. %% 72.803303
  199. %% 74.547946
  200. %% 76.292590
  201. %% 78.037233
  202. %% 79.781877
  203. %% 81.526521
  204. %% 83.271164
  205. %% 85.015808
  206. %% 86.760451
  207. %% 88.505095
  208. %% 90.249738
  209. %% 91.994382
  210. %% 93.739025
  211. %% 95.483669
  212. %% 97.106707
  213. %% 97.110328
  214. %% 97.176321
  215. %% 97.242874
  216. %% 97.307883
  217. %% 97.370416
  218. %% 97.434334
  219. %% 97.497852
  220. %% 97.559879
  221. %% 97.624568
  222. %% 97.687368
  223. %% 97.750034
  224. %% 97.813419
  225. %% 97.877922
  226. %% 97.946445
  227. %% 98.009377
  228. %% 98.074013
  229. %% 98.142004
  230. %% 98.204430
  231. %% 98.267815
  232. %% 98.332691
  233. %% 98.395517
  234. %% 98.459993
  235. %% 98.523165
  236. %% 98.543025
  237. %% 98.568474
  238. %% 98.629969
  239. %% 98.715104
  240. %% 98.718990
  241. %% 98.842619
  242. %% 98.855450
  243. %% 98.860881
  244. %% 99.259719
  245. %% 99.743372
  246. %% 99.771537
  247. %% 99.996646
  248. %% 100.000000
  249. [root@localhost student]#
  250.  
  251.  
  252.  
  253.  
  254. [student@localhost ~]$ ps -u Ucitel01
  255.  PID TTY          TIME CMD
  256. 2832 pts/4    00:00:00 bash
  257. 2845 pts/4    00:00:00 top
  258. [student@localhost ~]$
  259.  
  260.  
  261. [student@localhost ~]$ firefox &
  262. [1] 2878
  263. [student@localhost ~]$ jobs
  264. [1]+  Running                 firefox &
  265. [student@localhost ~]$ ps -u student | grep firefox
  266. 2878 pts/6    00:00:03 firefox
  267. [student@localhost ~]$
Advertisement
Add Comment
Please, Sign In to add comment