Welcome to the IPFire Wiki

This wiki is a community-maintained resource about everything there is to know about IPFire. Join us and help us improving it!

Looking for something?

Use the search and find answers to everything about IPFire. If you cannot find what you are looking for, join our community and talk to fellow IPFire users, developers and everybody else involved in the project.

IPFire Community

Add a System-User

Maybe some of you want to add a system-user, for irssi, centerim, or won't allow root login on ssh.

With this command we'll add the userhomersimpson with the passwordspringfield.\
The Option -d defined the homefolder and -m creat it. -u set the UID(take care if you'll add more than one user). -g add the user to groupusers and -s setup the default bash.

# useradd -g users -u 1001 -d /home/homersimpson -s /bin/bash -m -p springfield homersimpson

Now you should login ashomersimpson. If login failed, set the password forhomersimpson again.

# passwd homersimpson

Before we finished, we have to get a .bashrc and have to add an alias forsu.

$ cp /etc/bashrc ~/.bashrc

Just open ~/.bashrc with your favorite editor and add this line.

alias su='su -l'

Finally reload you ~/.bashrc like that.

$ source ~/.bashrc

sshd

Take care! Just do it if login as user works or you have physical access to the hardware!

To forbid root login via ssh, edit in/etc/ssh/sshd_config this line like that.

PermitRootLogin no

If you can't login ashomersimpson, add this lines to you sshd_config.

UserPAM yes
AllowUsers homersimpson

Finally restart your sshd.

# /etc/init.d/sshd restart

Edit Page ‐ Yes, you can edit!

Older Revisions • October 21, 2015 at 2:33 pm