Skip to content

External Users Gateway

LIP6 users that want to access to the Monolithe can directly join from Ducas (ducas.lip6.fr). For external users (that are not LIP6 members), there are two gateways:

  • ssh1.mono.proj.lip6.fr
  • ssh2.mono.proj.lip6.fr

Both machines are VMs running a very small NetBSD OS. In the following section we only consider the SSH1 gateway.

Add a new User to the Gateway

First to get the root privilege:

su toor

Edit the /etc/passwd file to create a new user:

vipw
The uid is expected to be the same as the uid from the user account on the Monolithe. Consequently, the Monolithe account should have been created first.

Here is an example of line that can be added at the end of the /etc/passwd file:

userlogin:passwdhash:uid:1200::0:0:FirstName LASTNAME, some info:/users/userlogin:/usr/pkg/bin/bash
The userlogin should always be in the form: "last name + first letter of the first name". Note that the gid is set to 1200 which is the extern group for external users.

Info

At this point you can skip to put a valid passwdhash, this will be automatically done by calling the passwd command as explained later.

Warning

vi may not want to start, to overcome this problem you can do: export TERM=xterm.

To correctly set the password hash you need to call the passwd command as follow:

passwd userlogin

Then you need to create a home space for the new user:

mkdir /users/userlogin
chmod 755 /users/userlogin
chown userlogin:extern /users/userlogin

You are good to go :-).