Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 w
- 2 chvt 2
- 3 exit
- 4 chvt 3
- 5 chvt 2
- 6 ./countdown 16
- 7 ./countdown 20
- 8 groupadd sales
- 9 id anna
- 10 usermod -aG account anna
- 11 useradd -G account anouk
- 12 id lisa
- 13 id linda
- 14 rm -rf /data/sakes
- 15 rm -rf /data/sales
- 16 mkdir /data/sales
- 17 chgrp sales /data/sales
- 18 chmod 1770 /data/sales
- 19 ls -ld /data/sales
- 20 setfacl -R -m g:account:rX /data/sales
- 21 history
- 22 find / -name "hosts"
- 23 find / -name "*hosts*"
- 24 useradd -m -s /bin/bash linda
- 25 su - linda
- 26 find / -user linda
- 27 mkdir /root/linda; find / -user linda -exec cp {} /root/linda/ \;
- 28 find / -user linda
- 29 history
- 30 man touch
- 31 find / -user linda -exec cp {} /root/linda/ \; | mkdir /root/linda
- 32 find / -perm /4000
- 33 ls -l /usr/bin/passwd
- 34 ls -l /etc/shadow
- 35 vim lab1.txt
- 36 find / -type f -size +100M
- 37 mkdir -p find/contents; find /etc -exec grep -l student {} \; -exec cp {} find/contents/ \; 2>/dev/null
- 38 ls find/contents/
- 39 find /etc/ -name '*' -type f | xargs grep '127.0.0.1'
- 40 man find
- 41 vim countdown
- 42 chmod +x countdown
- 43 ./countdown
- 44 cat lab1.txt
- 45 find / -perm /4000 2>/dev/null >/tmp/suid-files.txt
- 46 mv /tmp/suid-files.txt /tmp/suid-files1.txt
- 47 touch newfile
- 48 chmod u+s newfile
- 49 ls -l newfile
- 50 find / -perm /4000 2>/dev/null >/tmp/suid-files2.txt
- 51 diff /tmp/suid-files[12].txt
- 52 diff /tmp/suid-files[12].txt > /tmp/suid-files.txt
- 53 history
- 54 sed -n 5p /etc/passwd
- 55 echo hello > hellofile
- 56 sed -i 's/hello/goedemiddag/g' hellofile
- 57 cat hellofile
- 58 vim hello2
- 59 sed -i 's/hello/goedemiddag/' hello2
- 60 cat hello2
- 61 sed -i 's/hello/goedemiddag/g' hello2
- 62 cat hello2
- 63 sed -i -e '2d' hello2
- 64 cat hello2
- 65 diff /tmp/suid-files[12].txt
- 66 cat /tmp/suid-files2.txt
- 67 vim /tmp/suid-files1.txt
- 68 diff /tmp/suid-files[12].txt
- 69 diff -u /tmp/suid-files[12].txt
- 70 dnf search diff
- 71 sdiff /tmp/suid-files[12].txt
- 72 awk -F : '{ print $4 }' /etc/passwd
- 73 cut -d : -f 4 /etc/passwd
- 74 awk -F : '/linda/ { print $4 }' /etc/passwd
- 75 less /etc/passwd
- 76 grep root /etc/shadow
- 77 grep root /etc/passwd
- 78 man 5 shadow
- 79 grep root /etc/group
- 80 grep wheel /etc/group
- 81 useradd --help | less
- 82 groupadd groupone
- 83 groupadd grouptwo
- 84 groupadd groupthree
- 85 useradd -G grouptwo anna
- 86 id anna
- 87 usermod -G groupone anna
- 88 id anna
- 89 usermod -aG grouptwo anna
- 90 id anna
- 91 vim /etc/login.defs
- 92 cd /etc/skel/
- 93 ls
- 94 ls -a
- 95 touch hello
- 96 ls -l
- 97 useradd bob
- 98 ls -la /home/bob
- 99 rm hello
- 100 cd
- 101 cd /etc/pam.d/
- 102 ls
- 103 vim login
- 104 vim system-auth
- 105 vim /etc/securetty
- 106 chvt 4
- 107 cd /usr/lib64/security/
- 108 ls
- 109 man pam_securetty
- 110 cd /etc/pam.d/
- 111 vim login
- 112 chvt 4
- 113 cd
- 114 ./countdown 15
- 115 useradd -m -s /usr/bin/passwd -G wheel anna
- 116 useradd -m -s /usr/bin/passwd -G wheel ana
- 117 chage ana
- 118 grep ana /etc/shadow
- 119 cd /home/linda
- 120 touch rootfile
- 121 su - linda
- 122 mkdir /data/sales
- 123 mkdir -p /data/sales
- 124 cd /data
- 125 groupadd sales
- 126 groupadd account
- 127 ls -l
- 128 chown :sales sales
- 129 ls -l
- 130 chmod 770 sales
- 131 ls -l
- 132 usermod -aG sales linda
- 133 id linda
- 134 useradd -G sales lisa
- 135 id lisa
- 136 su - lisa
- 137 su - linda
- 138 chmod g+s sales
- 139 ls -l
- 140 su - lisa
- 141 su - linda
- 142 chmod +t sales/
- 143 ls -ld sales/
- 144 su - linda
- 145 chown linda sales
- 146 ls -l
- 147 su - linda
- 148 history
- 149 pwd
- 150 cd
- 151 cd /home/linda
- 152 vim playme
- 153 lsblk
- 154 chmod +x playme
- 155 su - linda
- 156 chmod u+s playme
- 157 ls -l playme
- 158 history
- 159 ls -ld /tmp
- 160 cd /data/sales
- 161 ls -l
- 162 getfacl lisa2
- 163 setfacl -R -m g:account:rX /data/sales
- 164 ls -l
- 165 getfacl lisa2
- 166 touch newroot1
- 167 getfacl newroot1
- 168 setfacl -m d:g:account:rx /data/sales
- 169 touch newroot2
- 170 getfacl newroot2
- 171 history
- 172 echo the /etc/hosts file should be writeable by user anna without making any modifications to the basic permissions
- 173 setfacl -m u:anna:rw /etc/hosts
- 174 getfacl /etc/hosts
- 175 cd
- 176 pwd
- 177 ls
- 178 chattr +i newfile
- 179 rm -f newfile
- 180 whoami
- 181 ls -l
- 182 lsattr
- 183 chattr -i newfile
- 184 lsattr
- 185 man chattr
- 186 vim lab2.txt
- 187 cat lab2.txt
- 188 cd /data/sales
- 189 touch salesfile{1..9}
- 190 ls -l
- 191 getfacl salesfile9
- 192 dnf install seinfo
- 193 dnf provides seinfo
- 194 dnf install setools-console
- 195 dnf install ansible-core
- 196 ls -l $(which dnf) $(which yum)
- 197 cd
- 198 lsblk
- 199 mount /dev/sr0 /mnt
- 200 poweroff
- 201 lsblk
- 202 echo $(( 26 * 26 ))
- 203 fdisk /dev/sda
- 204 lsblk
- 205 mkfs.ext4 /dev/sda5
- 206 vim /etc/fstab
- 207 mount -a
- 208 mkdir /ext4
- 209 mount -a
- 210 poweroff
- 211 ./countdown 12
- 212 fdisk /dev/sda
- 213 vim /etc/fstab
- 214 reboot
- 215 fdisk -l /dev/sda
- 216 fdisk /dev/sda
- 217 lsblk
- 218 fdisk /dev/sdb
- 219 mkfs.ext4 /dev/sdb4
- 220 mount /dev/sdb4 /mnt
- 221 lsblk
- 222 fdisk /dev/sdb
- 223 reboot
- 224 mount /dev/sda4 /mnt
- 225 lsblk
- 226 df -h
- 227 resize2fs /dev/sda4
- 228 df -h
- 229 vim /etc/fstab
- 230 vim /etc/default/grub
- 231 grub2-mkconfig -o /boot/grub2/grub.cfg
- 232 reboot
- 233 mount
- 234 mount | grep rw
- 235 mount | grep root
- 236 mount -o remount,rw /
- 237 vim /etc/fstab
- 238 exit
- 239 lsblk
- 240 cat /etc/fstab
- 241 blkid
- 242 vim /etc/fstab
- 243 tune2fs -L myfiles /dev/sda4
- 244 blkid
- 245 xfs_admin -L mywortel /dev/mapper/cs-root
- 246 xfs_admin -L bootfs /dev/sda1
- 247 umount /dev/sda1
- 248 xfs_admin -L bootfs /dev/sda1
- 249 vim /etc/fstab
- 250 reboot
- 251 blkid
- 252 xfs_admin -L bootfs /dev/sda1
- 253 blkid
- 254 sync
- 255 reboot
- 256 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement