Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Sysadmin/Add shell account
(view source)
Revision as of 03:32, 24 June 2015
99 bytes removed
,
03:32, 24 June 2015
remote-useradd should no longer be run as root
Line 29:
Line 29:
== Adding accounts on other machines ==
== Adding accounts on other machines ==
−
Please '''do not create accounts directly with useradd
/userdel
'''
.
Instead, copy the existing credentials from sunjammer:
+
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:
* Log into sunjammer, forwarding your ssh keys with the ssh-agent:
ssh -A sunjammer
ssh -A sunjammer
−
−
* Become root with <tt>sudo -i</tt>. This will preserve your <tt>$SSH_AUTH_SOCK</tt>
* Run this shell script to create a user and copy the credentials from sunjammer:
* Run this shell script to create a user and copy the credentials from sunjammer:
Line 43:
Line 41:
Needless to say, remote-useradd requires your ssh key to be already installed in the remote server.
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>, <
code
>libvirtd</tt> and <
code
>docker</tt>.
+
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 ==
SAMdroid
Bureaucrats
,
Administrators
,
Widget editors
163
edits