My LXDE came straight from Debian, Scorpio from LinuxVillage. You must not have "root" programs open when shutting down or have sudo in the command line. Beats me ? Some library nobody else has ? Some Polkit option set ?
Okay, I took the plunge. I installed Scorpio from the
Scorpio_2013-2 iso image. Is that the one you used? On installation, I added a normal user named "darrel". On first boot after installation, I opened a terminal, and as root did: apt-get update, then apt-get dist-upgrade. After the upgrade, I installed Synaptic, then rebooted.
After rebooting, I started Synaptic and installed the lxde desktop. I did not install lxde (metapackage) or task-lxde-desktop (metapackage). I selected the lxde-common package and accepted all the recommended dependencies. Whatever other LXDE packages were still unmarked I selected for installation, except lxmusic and
lxpolkit. Then I closed Synaptic and logged out. LXDE is now the default Xsession. At the LightDM login window, I can select Default Xsession or LXDE and I will get the same result. I logged in as user "darrel". After about a minute, I clicked the red logout button in the far right corner of the lxpanel. This brought up the lxde-session window and I selected Reboot. The machine rebooted.
I logged in as user darrel again and opened a terminal. After su'ing to root, I created the user "guest".
root@Scorpio:~# useradd -d /home/guest -m guestNotice I did not specify any groups to add the user guest to. I only specified the home directory and the switch to create the directory. Next, I set a password for user guest.
root@Scorpio:~# passwd guest
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@Scorpio:~#After ending root's terminal session, I logged out and logged in as user guest. After about a minute, I clicked the red logout button in the far right corner of the lxpanel. This brought up the lxde-session window and I selected Reboot. The machine rebooted.
Here are the groups user guest belongs to:
guest:x:1001:
Yet, user guest is able to logout, reboot and shutdown the machine. Here are the groups user darrel belongs to:
dialout:x:20:darrel
cdrom:x:24:darrel
floppy:x:25:darrel
audio:x:29:darrel
video:x:44:darrel
plugdev:x:46:darrel
netdev:x:113:darrel
vboxsf:x:119:darrel
darrel:x:1000:
The vboxsf group is for the VBox shared folder service. User darrel is not a member of sudo, polkituser or wheel. As a matter of fact, there is no polkituser or wheel group.
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:darrel
fax:x:21:
voice:x:22:
cdrom:x:24:darrel
floppy:x:25:darrel
tape:x:26:
sudo:x:27:
audio:x:29:darrel
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:darrel
sasl:x:45:
plugdev:x:46:darrel
staff:x:50:
games:x:60:
users:x:100:
libuuid:x:101:
crontab:x:102:
avahi-autoipd:x:103:
scanner:x:104:saned
messagebus:x:105:
colord:x:106:
lpadmin:x:107:
ssl-cert:x:108:
Debian-exim:x:109:
mlocate:x:110:
ssh:x:111:
netdev:x:113:darrel
bluetooth:x:114:
saned:x:115:
fuse:x:116:
lightdm:x:117:
utempter:x:118:
vboxsf:x:119:darrel
debian-xfs:x:121:
ntp:x:120:
nogroup:x:65534:
darrel:x:1000:
guest:x:1001:
Again, this is an LXDE installation to Taco.22's Scorpio 2013.2 remaster. I employed no trickery. There are no "magic" groups. Just a standard straightforward install, with the exception of manually adding user guest.
Also notice that user darrel's UID (user ID) is 1000 and that user guest's UID is 1001. If I create another user, the default UID will be 1002, unless I specify a different UID when creating the new user.
Without knowing more about how you did the installation and what steps you took to create multiple guest users, I could only guess as to what caused your original problem with being able to log out. You say that a program is "running as root" when you logout. If by that you mean that there is an application that you manually started as user root, then I fail to see why you would want to leave it running during a logout, reboot or shutdown. If you mean that there are system services that were started by user root, that is normal and is part of the sysvinit bootup process.