cc_staff
1,486
edits
No edit summary |
No edit summary |
||
Line 127: | Line 127: | ||
There are a number of ways to allow more than one person to log in to a VM. We recommend creating new user accounts and adding public [[Ssh keys|SSH keys]] to these accounts. To do so manually, first create a new user account (under Ubuntu, for example) with the command {{Command|sudo adduser --disabled-password USERNAME}} | There are a number of ways to allow more than one person to log in to a VM. We recommend creating new user accounts and adding public [[Ssh keys|SSH keys]] to these accounts. To do so manually, first create a new user account (under Ubuntu, for example) with the command {{Command|sudo adduser --disabled-password USERNAME}} | ||
Then add the person's public key to the <code>/home/$USER/.ssh/authorized_keys</code> file as described in [[Ssh keys|SSH keys]] and linked pages. | Then add the person's public key to the <code>/home/$USER/.ssh/authorized_keys</code> file as described in [[Ssh keys|SSH keys]] and linked pages. | ||
If you wish to allow the new user root privileges, then you need to add the permissions with | |||
{{Command|sudo visudo -f /etc/sudoers.d/90-cloud-init-users}} | |||
and add a line like | |||
USERNAME ALL=(ALL) NOPASSWD:ALL | |||
<!--T:30--> | <!--T:30--> |