Advertisement
Guest User

Untitled

a guest
Jun 9th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. $ dsenableroot
  2. username = Paul
  3. $ user password: <Write your adminstrator's user password>
  4. $ root password: <Write your new root's user password>
  5. $ verify root password: <Verify the password>
  6. dsenableroot:: ***Successfully enabled root user.
  7.  
  8. $ su
  9. Password:<your-new-root-password>
  10. sh-3.2# cp /etc/sudoers /etc/sudoers.bak
  11. sh-3.2# vi /etc/sudoers.bak
  12.  
  13. Pres "i" to insert text, remove any text you'll find in the file and paste the "sudoers" file attached with the gist after that
  14. pres "ESC" then -> ":x!" to save and exit the file
  15.  
  16. sh-3.2# cp /etc/sudoers.bak /etc/sudoers
  17. sh-3.2# exit
  18.  
  19. The only this remains is to disable the root :
  20.  
  21. $ dsenableroot -d
  22. username = Paul
  23. $ user password:
  24. dsenableroot:: ***Successfully disabled root user.
  25.  
  26. That's it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement