Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### from visual
- linda ALL=/usr/sbin/useradd, /usr/sbin/usermod, /usr/bin/passwd, ! /usr/bin/passwd root
- #### commands
- [root@localhost ~]# history
- 1 vimtutor
- 2 vim countdown
- 3 countdown 12
- 4 echo $PATH
- 5 ./countdown 12
- 6 ls -l countdown
- 7 chmod +x countdown
- 8 ./countdown 12
- 9 exit
- 10 visudo
- 11 id student
- 12 usermod -aG wheel student
- 13 id student
- 14 exit
- 15 visudo
- 16 useradd linda
- 17 passwd linda
- 18 su - linda
- 19 visudo
- 20 su - linda
- 21 visudo
- 22 vim /etc/sudoers.d/linda
- 23 history
- 24 systemctl isolate multi-user.target
- 25 systemctl start graphical.target
- 26 ip a
- 27 systemctl status sshd
- 28 firewall-cmd --list-all
- 29 ./countdown 13
- 30 ./countdown
- 31 countdown
- 32 echo $PATH
- 33 cp countdown /usr/local/bin
- 34 cd /
- 35 ls -l
- 36 man hier
- 37 cd /etc
- 38 ls
- 39 cd
- 40 vim countdown
- 41 countdown 0
- 42 ln /etc/hosts myhosts
- 43 ls -il /etc/hosts myhosts
- 44 echo 10.0.0.10 dummy >> myhosts
- 45 ls -il /etc/hosts myhosts
- 46 ln -s myhosts symhosts
- 47 ls -il /etc/hosts myhosts symhosts
- 48 cat symhosts myhosts /etc/hosts
- 49 rm myhosts
- 50 ls -il /etc/hosts myhosts symhosts
- 51 cat symhosts
- 52 ln /etc/hosts myhosts
- 53 rm /etc/hosts
- 54 cat myhosts
- 55 ln myhosts /etc/hosts
- 56 ln /boot/vmlinuz-4.18.0-193.el8.x86_64 kernel
- 57 ln -s /boot/vmlinuz-4.18.0-193.el8.x86_64 kernel
- 58 ln /etc myetc
- 59 ln -s /etc myetc
- 60 lsblk
- 61 umount /dev/sdb1
- 62 ls /mnt
- 63 mount /dev/sdb1 /mnt
- 64 ls /mnt
- 65 cd /mnt
- 66 ls
- 67 umount /dev/sdb1
- 68 lsof /mnt
- 69 cd
- 70 umount /dev/sdb1
- 71 cd /boot
- 72 ls
- 73 cd
- 74 ls
- 75 rm myhosts
- 76 find / -xtype l
- 77 ls -l
- 78 find / -xtype l | grep host
- 79 find -P ./ -xtype l
- 80 find / -xtype l -exec ls -l {} \;
- 81 find / -xtype l -exec ls -l {} \; 2>/dev/null
- 82 find / -name "hosts"
- 83 find / -name "*hosts*"
- 84 find / -size +100M > bigfiles.txt
- 85 less bigfiles.txt
- 86 find / -user linda
- 87 ls -l /run/user/1000/
- 88 ls -il /run/user/1000/
- 89 ls -il /run/user/1000/gvfs
- 90 echo $?
- 91 history
- 92 alias twaalf='countdown 12'
- 93 twaalf
- 94 man password
- 95 man -k password
- 96 man man
- 97 man apropos
- 98 mandb
- 99 man -k password
- 100 man -k password | wc
- 101 man -k password | grep 1
- 102 man passwd
- 103 man -k authentication
- 104 man -k user
- 105 less /etc/passwd
- 106 less /etc/shadow
- 107 man passwd
- 108 man 5 passwd
- 109 man pwconv
- 110 ls -l /etc/passwd
- 111 ls -l /etc/shadow
- 112 cat /etc/shadow
- 113 id student
- 114 grep student /etc/group
- 115 grep student /etc/passwd
- 116 id student
- 117 vim /etc/login.defs
- 118 useradd lisa
- 119 passwd -l lisa
- 120 passwd -u lisa
- 121 passwd -L lisa
- 122 chage lisa
- 123 chage -L lisa
- 124 chage -l lisa
- 125 groups --help
- 126 groups student
- 127 history
- 128 chage lisa
- 129 chage --help
- 130 groupadd account
- 131 groupadd sales
- 132 useradd -G account anna
- 133 useradd -G account anouk
- 134 id anna
- 135 w
- 136 id linda
- 137 id lisa
- 138 usermod -aG sales lisa
- 139 usermod -aG sales linda
- 140 id lisa
- 141 usermod -G wheel lisa
- 142 id lisa
- 143 usermod -aG sales lisa
- 144 usermod --help | less
- 145 ls -l $(which useradd) $(which adduser)
- 146 ls -l /etc/skel
- 147 ls -al /etc/skel
- 148 touch /etc/skel/blah
- 149 useradd bill
- 150 ls -la /home/bill
- 151 history
Add Comment
Please, Sign In to add comment