/etc/security got removed

Hope this is the right place to post this:

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.

ls /etc/security
access.conf limits.conf pam_env.conf sepermit.conf
fileshare.conf namespace.conf pam_mount.conf.xml time.conf
group.conf namespace.init pam_winbind.conf

So for /etc/security install pam.

 zypp install pam

Thanks allot!
a changeroot and yast --install pam did the trick. (zypper complained about pam being already installed)