Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ~]$ su
- Password:
- [root@localhost student]# groupadd Pedagog
- [root@localhost student]# groupadd Student
- [root@localhost student]# useradd Ucitel01 -g Pedagog -d /home/Ucitel01 -s /bin/bash
- [root@localhost student]# passwd Ucitel01
- Changing password for user Ucitel01.
- New password:
- BAD PASSWORD: it is based on a dictionary word
- BAD PASSWORD: is too simple
- Retype new password:
- passwd: all authentication tokens updated successfully.
- [root@localhost student]# useradd Ucitel02 -g Pedagog -d /home/Ucitel02 -s /bin/bash
- [root@localhost student]# passwd Ucitel02
- Changing password for user Ucitel02.
- New password:
- BAD PASSWORD: it is based on a dictionary word
- BAD PASSWORD: is too simple
- Retype new password:
- passwd: all authentication tokens updated successfully.
- [root@localhost student]#
- [root@localhost student]# mkdir /zapocet
- [root@localhost student]# vim /zapocet/test.txt
- [root@localhost student]# chown Ucitel01:Pedagog /zapocet/test.txt
- [root@localhost student]# chmod 674 /zapocet/test.txt
- [root@localhost student]# vim /zapocet/odpovedi1.txt
- [root@localhost student]# useradd st001 -g Student -d /home/st001 -s /bin/bash
- [root@localhost student]# passwd st001
- Changing password for user st001.
- New password:
- BAD PASSWORD: it is based on a dictionary word
- BAD PASSWORD: is too simple
- Retype new password:
- passwd: all authentication tokens updated successfully.
- [root@localhost student]# chown st001:Pedagog /zapocet/odpovedi1.txt
- [root@localhost student]# useradd st002 -g Student -d /home/st002 -s /bin/bash
- [root@localhost student]# passwd st002
- Changing password for user st002.
- New password:
- BAD PASSWORD: it is based on a dictionary word
- BAD PASSWORD: is too simple
- Retype new password:
- passwd: all authentication tokens updated successfully.
- [root@localhost student]#
- [root@localhost student]# ls /usr/share/man/man1 | grep less
- bzless.1.gz
- less.1.gz
- lessecho.1.gz
- lesskey.1.gz
- lzless.1.gz
- xzless.1.gz
- zless.1.gz
- [root@localhost student]# time find / *.txt | grep OS2
- /usr/share/man/man3/File::Spec::OS2.3pm.gz
- /usr/share/man/man3/ExtUtils::MM_OS2.3pm.gz
- /usr/share/perl5/ExtUtils/MM_OS2.pm
- /usr/share/perl5/File/Spec/OS2.pm
- find: `*.txt': No such file or directory
- real 0m0.330s
- user 0m0.110s
- sys 0m0.176s
- [root@localhost student]#
- [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
- --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
- => “openmotif-2.3.3-4.el6.i686.rpm”
- Resolving ftp.muug.mb.ca... 130.179.31.46
- Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
- Logging in as anonymous ... Logged in!
- ==> SYST ... done. ==> PWD ... done.
- ==> TYPE I ... done. ==> CWD (1) /mirror/centos/6.3/os/x86_64/Packages ... done.
- ==> SIZE openmotif-2.3.3-4.el6.i686.rpm ... 1415624
- ==> PASV ... done. ==> RETR openmotif-2.3.3-4.el6.i686.rpm ... done.
- Length: 1415624 (1.3M) (unauthoritative)
- 100%[===================================================================>] 1,415,624 304K/s in 4.5s
- 2012-12-11 13:59:42 (304 KB/s) - “openmotif-2.3.3-4.el6.i686.rpm” saved [1415624]
- [root@localhost student]# rpm -i -v -h --percent openmotif-2.3.3-4.el6.i686.rpm
- error: Failed dependencies:
- libXp.so.6 is needed by openmotif-2.3.3-4.el6.i686
- [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
- --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
- => “libXp-1.0.0-15.1.el6.i686.rpm”
- Resolving ftp.muug.mb.ca... 130.179.31.46
- Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
- Logging in as anonymous ...
- Error in server greeting.
- Retrying.
- --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
- (try: 2) => “libXp-1.0.0-15.1.el6.i686.rpm”
- Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
- Logging in as anonymous ...
- Error in server greeting.
- Retrying.
- --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
- (try: 3) => “libXp-1.0.0-15.1.el6.i686.rpm”
- Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
- Logging in as anonymous ...
- Error in server greeting.
- Retrying.
- ^C
- [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
- --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
- => “libXp-1.0.0-15.1.el6.i686.rpm”
- Resolving ftp.muug.mb.ca... 130.179.31.46
- Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
- Logging in as anonymous ...
- Error in server greeting.
- Retrying.
- --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
- (try: 2) => “libXp-1.0.0-15.1.el6.i686.rpm”
- Connecting to ftp.muug.mb.ca|130.179.31.46|:21... connected.
- Logging in as anonymous ...
- Error in server greeting.
- Retrying.
- ^C
- [root@localhost student]# rpm -i -v -h --percent libXp-1.0.0-15.1.el6.i686.rpm
- Preparing... %% 0.000000
- ########################################### [100%]
- 1:libXp %% 0.413504
- %% 87.923417
- %% 88.319927
- %% 88.826895
- %% 92.531438
- %% 98.742495
- %% 99.645973
- %% 100.000000
- [root@localhost student]# rpm -i -v -h --percent openmotif-2.3.3-4.el6.i686.rpm Preparing... %% 0.000000
- ########################################### [100%]
- 1:openmotif %% 0.119742
- %% 0.125572
- %% 1.873596
- %% 3.618240
- %% 5.362884
- %% 7.107527
- %% 8.290677
- %% 8.424103
- %% 8.489165
- %% 8.550686
- %% 8.611116
- %% 8.688743
- %% 8.765199
- %% 8.829090
- %% 8.891277
- %% 8.952186
- %% 9.030399
- %% 9.107228
- %% 9.173727
- %% 9.236367
- %% 9.303160
- %% 9.307153
- %% 11.055443
- %% 12.800087
- %% 13.216229
- %% 13.220142
- %% 14.968433
- %% 16.713076
- %% 18.457720
- %% 20.202363
- %% 21.947007
- %% 23.691650
- %% 23.945723
- %% 23.949609
- %% 25.697927
- %% 27.442570
- %% 29.187214
- %% 30.931857
- %% 32.676501
- %% 34.421144
- %% 36.165788
- %% 37.910432
- %% 39.655075
- %% 41.399719
- %% 43.144362
- %% 44.889006
- %% 46.633649
- %% 48.378293
- %% 50.122936
- %% 51.867580
- %% 53.612224
- %% 55.356867
- %% 57.101511
- %% 58.846154
- %% 60.590798
- %% 62.335441
- %% 64.080085
- %% 65.824728
- %% 67.569372
- %% 69.314016
- %% 71.058659
- %% 72.803303
- %% 74.547946
- %% 76.292590
- %% 78.037233
- %% 79.781877
- %% 81.526521
- %% 83.271164
- %% 85.015808
- %% 86.760451
- %% 88.505095
- %% 90.249738
- %% 91.994382
- %% 93.739025
- %% 95.483669
- %% 97.106707
- %% 97.110328
- %% 97.176321
- %% 97.242874
- %% 97.307883
- %% 97.370416
- %% 97.434334
- %% 97.497852
- %% 97.559879
- %% 97.624568
- %% 97.687368
- %% 97.750034
- %% 97.813419
- %% 97.877922
- %% 97.946445
- %% 98.009377
- %% 98.074013
- %% 98.142004
- %% 98.204430
- %% 98.267815
- %% 98.332691
- %% 98.395517
- %% 98.459993
- %% 98.523165
- %% 98.543025
- %% 98.568474
- %% 98.629969
- %% 98.715104
- %% 98.718990
- %% 98.842619
- %% 98.855450
- %% 98.860881
- %% 99.259719
- %% 99.743372
- %% 99.771537
- %% 99.996646
- %% 100.000000
- [root@localhost student]#
- [student@localhost ~]$ ps -u Ucitel01
- PID TTY TIME CMD
- 2832 pts/4 00:00:00 bash
- 2845 pts/4 00:00:00 top
- [student@localhost ~]$
- [student@localhost ~]$ firefox &
- [1] 2878
- [student@localhost ~]$ jobs
- [1]+ Running firefox &
- [student@localhost ~]$ ps -u student | grep firefox
- 2878 pts/6 00:00:03 firefox
- [student@localhost ~]$
Advertisement
Add Comment
Please, Sign In to add comment