Sysadmin/Add shell account: Difference between revisions
No edit summary |
No edit summary |
||
| Line 31: | Line 31: | ||
Please '''do not create accounts directly with useradd/userdel'''. Instead: | Please '''do not create accounts directly with useradd/userdel'''. Instead: | ||
* Log into sunjammer forwarding your ssh agent | * Log into sunjammer, forwarding your ssh agent: | ||
* Become root | |||
ssh -A sunjammer | |||
* Become root: | |||
sudo -i | |||
* 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: | ||
remote-useradd <remotehost> <user> <groups...> | remote-useradd <remotehost> <user> <groups...> | ||
Typically, you'll want to add users to groups | Typically, you'll want to add users to groups <tt>sudo</tt>, <tt>adm</tt>, <code>libvirtd</tt> and <code>docker</tt>. | ||
== See also == | == See also == | ||