This is how to make your root screen lock works. Just follow simple steps
Open up your terminal:

Code:
apt-get remove gnome-screensaver
apt-get source gnome-screensaver
cd gnome-screensaver-3-4.1/src
nano setuid.c
now find
Code:
if (getuid () == (uid_t) 0) {
reason = g_strdup ("running as root");
ret = FALSE;
goto out;
}
and change it this way
Code:
/*if (getuid () == (uid_t) 0) {
reason = g_strdup ("running as root");
ret = FALSE;
goto out;
}*/
close nano ( ctrl + x) and save changes.
now
Code:
cd ..
dpkg-checkbuilddeps
if there are any dependencies install them with apt-get..
when all dependencies are installed:
Code:
dpkg-buildpackage
now it will tell you that there are some changes in the source code so you have to type:
Code:
dpkg-source --commit
now you have to name your change, name it how you want it and hit enter, after that it will open some text file just type in :q and hit enter.
after that type again:
Code:
dpkg-buildpackage
wait until it's done
Code:
cd ..
dpkg --install gnome-screensaver_3.4.1-1_i386.deb
and make sure that /etc/pam.d/gnome-screensaver looks like this:
Code:
@include common-auth
auth optional pam_gnome_keyring.so
And that's it, enjoy