Disable root login LXDM

All questions and problems regarding LXDE components including LXSession, LXAppearance, GPicView, Leafpad, LXTerminal, Xarchiver, LXNM to be discussed here.

For PCManFM questions, please ask in the dedicated forum below.
Locked
alexk
Posts: 1
Joined: Fri Jan 13, 2012 6:55 pm

Disable root login LXDM

Post by alexk »

Dear forum readers,

I want to disable root login using LXDM. I've checked the lxdm.conf file and there seems to be a blacklist user line, but adding root to it doesn't seem to work. Also doing some research I found out that you can disable root login through PAM. This works on GDM, XDM and some other login managers. My current /etc/pam.d/lxdm file looks like this

Code: Select all

auth            requisite       pam_nologin.so
auth            required        pam_env.so
auth            required        pam_unix.so
account         required        pam_unix.so
session         required        pam_limits.so
session         required        pam_unix.so
password        required        pam_unix.so
Anybody who can advise on how to get it done?

Regards,
Alex
Locked