jumboframe

Untitled

Jun 11th, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. / # ls -lh /bin/busybox
  2. -rwxr-xr-x 1 root root 797.7K May 5 06:41 /bin/busybox
  3. / # adduser student
  4. Changing password for student
  5. New password:
  6. Bad password: too short
  7. Retype password:
  8. passwd: password for student changed by root
  9. / # su student -
  10. / $
  11. / # echo 'student ALL=(ALL) ALL' >> /etc/sudoers
  12. / # visudo -c
  13. /bin/sh: visudo: not found
  14. / # apk add visudo
  15. fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
  16. fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
  17. ERROR: unable to select packages:
  18. visudo (no such package):
  19. required by: world[visudo]
  20. / # apk add sudo
  21. (1/1) Installing sudo (1.9.13_p3-r2)
  22. Executing busybox-1.36.0-r9.trigger
  23. OK: 9 MiB in 16 packages
  24. / # visudo -c
  25. /etc/sudoers: bad permissions, should be mode 0440
  26. / # chmod 0440 /etc/visudo
  27. chmod: /etc/visudo: No such file or directory
  28. / # chmod 0440 /etc/sudoers
  29. / # visudo -c
  30. /etc/sudoers: parsed OK
  31. / # su student -
  32. / $ sudo su -
  33. We trust you have received the usual lecture from the local System
  34. Administrator. It usually boils down to these three things:
  35.  
  36. #1) Respect the privacy of others.
  37. #2) Think before you type.
  38. #3) With great power comes great responsibility.
  39.  
  40. For security reasons, the password you type will not be visible.
  41.  
  42. [sudo] password for student:
  43. efb779e4dab8:~#
  44.  
Advertisement
Add Comment
Please, Sign In to add comment