This wiki is a community-maintained resource about everything there is to know about IPFire. Join us and help us improving it!
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.
To add a system user that is separate from root.
With this command we'll add the user homersimpson with the password springfield.
The option -d defined the home folder and -m to create it. The option -u set the UID (take care if you'll add more than one user). The option -g add the user to group users 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 as homersimpson. If login failed, set the password for homersimpson again.
Before we finished, we have to get a .bashrc and have to add an alias for su.
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.
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.
If you can't login as homersimpson, add this lines to you sshd_config.
UserPAM yes AllowUsers homersimpson
Finally restart your sshd.