I removed /etc/security by accident, and I was wondering if there is a way to restore it? I’m using the XFS file system, and I’ve read you can’t restore files on that as easily as on ext3. So anyone some advice? Thanks in advance.
Reinstall the pam package. The software installer shows me a lot of packages when I look for ‘security’ only in files, but I remembered pam being responsible for the /etc/security folder.
And removing things as root is always true !! Keep that in mind and you will never have to use recovery tools.
securetty, found in /etc/suretty. You can either do as Knurpht said, or touch /etc/securetty, and then open an editor like vi /etc/securetty and then edit it to look like this
#
# This file contains the device names of tty lines (one per line,
# without leading /dev/) on which root is allowed to login.
#
tty1
tty2
tty3
tty4
tty5
tty6
That’s all the securetty file is. It corresponds to ctrl-alt-f1, ctrl-alt-f2, ctrl-alt-f3,and so on. It is generally recommended to comment most if not all out.
There is a folder, which is different than /etc/securetty, that is /etc/security/ that is provided by pam.