Advertisement
Guest User

Untitled

a guest
Jan 28th, 2025
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. (define childhurd-os
  2. ;; Definition of my GNU/Hurd system, derived from the default one.
  3. (operating-system
  4. (inherit %hurd-vm-operating-system)
  5.  
  6. ;; Add a user account.
  7. (users (cons (user-account
  8. (name "nathan")
  9. ;; (comment "This is me!")
  10. (group "users")
  11. ;;(password #f)
  12. (password (crypt "password" "$6$abc"))
  13. (supplementary-groups '("wheel"))) ;for 'sudo'
  14. %base-user-accounts))
  15.  
  16. (services
  17. ;; Modify the SSH configuration to allow login as "root"
  18. ;; and as "charlie" using public key authentication.
  19. (modify-services (operating-system-user-services
  20. %hurd-vm-operating-system)
  21. (openssh-service-type
  22. config => (openssh-configuration
  23. (inherit config)
  24. (permit-root-login #t)
  25. (password-authentication? #t)
  26. ))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement