Sysadmin/Add shell account: Difference between revisions
No edit summary |
Added note about accents |
||
| Line 19: | Line 19: | ||
system-useradd <username> <first_name> <last_name> <email> | system-useradd <username> <first_name> <last_name> <email> | ||
'''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>.''' | * Note that accents in the first_name or last_name would break the script. | ||
* '''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. | ||