Sysadmin/Add shell account: Difference between revisions

No edit summary
No edit summary
Line 18: Line 18:
  system-useradd <username> <first_name> <last_name> <email>
  system-useradd <username> <first_name> <last_name> <email>


'''NOTE: sudo alone does not work because it doesn't switch $HOME to /root, which is necessary to make the ldap commands source <code>/root/.ldaprc</code>.'''
'''NOTE: You have to become root with 'sudo -i'. Prefixing the command with sudo won't work because it doesn't switch $HOME to /root, which is necessary to make the ldap commands source <code>/root/.ldaprc</code>.'''


At some point the script will prompt you to paste the user's ssh key.
At some point the script will prompt you to paste the user's ssh key.