Ask Your Question

How to set a password for single mode?

asked 2018-05-29 06:27:15 -0500

jackyjack gravatar image

I am using Fedora 28.

During a Lynis audit I get:

                 Checking Linux single user mode authentication                              WARNING

And under results I get:

        No password set for single mode [AUTH-9308]

Rkhunter skips "Checking for hidden processes"

How can I set a password for single mode?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-05-30 23:18:31 -0500

aeperezt gravatar image

If you really want to protect with password, in case some one has physical access to your pc, will recommend two options

  1. Encrypt your drives partitions
  2. Set up grub password

First option will increase security but if you run on a server your will need to be there when it powers up so if for some reason it restart it will be waiting for you to insert the password Second option will only affect if some one wants to change grub, that way if some one reboot your machine to try to get into single mode he will need grub password. In case it reboots it will load default boot option and allow you to login. How ever if someone boots with another Linux live image he may be able to access your disk partitions, something he may not be able to do with option one.

Hope this help

edit flag offensive delete link more

answered 2018-05-31 00:36:42 -0500

sideburns gravatar image

I think it's asking for a root password, and until recently you could set it during installation through Anaconda. (I gather that they've now copied Ubuntu by removing that step.) However, you can still set it from a terminal by running this:

sudo passwd

When it asks for a password before running the command, give your own, just like any other time you use sudo. Then, enter a password for the root account. Remember to make it strong, but easy to remember. In the unlikely event that you have to boot into single user mode, this is the password you'll need and it will make Lynis happy.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-05-29 06:27:15 -0500

Seen: 212 times

Last updated: May 31 '18