Sysadmin/Add shell account: Difference between revisions
Added note about accents |
remote-useradd should no longer be run as root |
||
| (5 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
'''Users looking for a Sugar Labs account should go to [[Service/Account]].''' | '''Users looking for a Sugar Labs account should go to [[Service/Account]].''' | ||
== Guidelines == | == Guidelines == | ||
| Line 28: | Line 26: | ||
The email is also copied to ~user/welcome, in case they loose the | The email is also copied to ~user/welcome, in case they loose the | ||
original message. | original message. | ||
== Adding accounts on other machines == | |||
Please '''do not create accounts directly with useradd!''' Instead, copy the existing credentials from sunjammer: | |||
* Log into sunjammer, forwarding your ssh keys with the ssh-agent: | |||
ssh -A sunjammer | |||
* Run this shell script to create a user and copy the credentials from sunjammer: | |||
remote-useradd <remotehost> <user> <groups...> | |||
Needless to say, remote-useradd requires your ssh key to be already installed in the remote server. | |||
Typically, you'll want to add users to groups <tt>sudo</tt>, <tt>adm</tt>, <tt>libvirtd</tt> and <tt>docker</tt>. | |||
== See also == | == See also == | ||