User login

Create a new user on Agaric's test server at MayFirst/PeopleLink

Creating a public key

The user to be added (we'll call him Andrew) types this in his terminal:


Then he sends his public key to the person acting as sysadmin at the moment. As an e-mail attachment is fine. For users not used to the command line it can be hard to find the public key in a hidden .ssh folder, but it is possible to use scp to put it on a server both the user and the acting sysadmin have access to.

Adding the user to the server

The sysadmin then logs into the test server and uses standard Debian commands:

sudo adduser andrew

Respond to the prompts and put in the password and other information it wants.

sudo adduser andrew staff
sudo mkdir /home/andrew/.ssh
cd /home/andrew/.ssh/
sudo vi authorized_keys

Paste in the user's public key, and save and exit Vim (esc :x).

sudo chown -R andrew:andrew /home/andrew/.ssh/

Alternatively, if you've already pushed the key to the server, you can cat instead of paste. (You cannot use "cat >> .ssh/authorized_keys" with sudo, when you need to be acting as root on the adding side.)

sudo cat | sudo tee /home/andrew/.ssh/authorized_keys

No longer needed. After uploading a public key for the user, on MayFirst, you need to run manually monkeysphere-authentication update-users (untested, from ). (2010 Oct. - Currently this command is not being found, on the test server at least.)

If you get, on git push, the server returning "insufficient permission for adding an object to repository database" make sure you did not miss this line:

sudo adduser andrew staff
Adding user andrew' to groupstaff' ...
Adding user andrew to group staff

Searched words: 
add agaric user adding users to server mayfirst


Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.