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:
Edit the /etc/passwd
file to create a new user:
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
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:
Then you need to create a home space for the new user:
You are good to go :-).