Change xautologin behavior

master
Mike Hiretsky 13 years ago
parent 2e375c6961
commit 044da0e449

@ -1,2 +0,0 @@
# Calculate belong()!=&&cl_chroot_status==off&&pkg(sys-apps/calculate-desktop)!= name=etc path=/usr name=bin

@ -1,15 +0,0 @@
# Calculate chmod=0755
#!/bin/bash
echo $BASHPID >/var/run/xinit.pid
while true;
do
#?list(cl_migrate_user,1)!=#
env USER=#-list(cl_migrate_user,1)-# /usr/share/calculate/xdm/xdm --login
su - #-list(cl_migrate_user,1)-# -c 'source /etc/profile;/bin/bash /etc/X11/xinit/xinitrc'
env USER=#-list(cl_migrate_user,1)-# /usr/share/calculate/xdm/xdm --logout
#list#
#?list(cl_migrate_user,1)==#
:
#list#
done
exit 0

@ -0,0 +1,33 @@
#%PAM-1.0
auth sufficient pam_rootok.so
# If you want to restrict users begin allowed to su even more,
# create /etc/security/suauth.allow (or to that matter) that is only
# writable by root, and add users that are allowed to su to that
# file, one per line.
#auth required pam_listfile.so item=ruser sense=allow onerr=fail file=/etc/security/suauth.allow
# Uncomment this to allow users in the wheel group to su without
# entering a passwd.
#auth sufficient pam_wheel.so use_uid trust
# Alternatively to above, you can implement a list of users that do
# not need to supply a passwd with a list.
#auth sufficient pam_listfile.so item=ruser sense=allow onerr=fail file=/etc/security/suauth.nopass
# Comment this to allow any user, even those not in the 'wheel'
# group to su
auth required pam_wheel.so use_uid
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
session required pam_env.so
session optional pam_xauth.so
# need for xautologin
session optional pam_ck_connector.so nox11

@ -17,4 +17,5 @@ session optional pam_lastlog.so
session include system-auth
#session optional pam_motd.so motd=/etc/motd
session optional pam_mail.so
# need for xsesstion run by startx
session optional pam_ck_connector.so

@ -3,7 +3,8 @@
CHECKVT=7
#?os_install_root_type==livecd||os_install_linux_shortname==CMC#
DISPLAYMANAGER="xinit"
START_STOP_ARGS="--background -- /usr/bin/xautologin -- vt$CHECKVT"
XUSER=#-list(cl_migrate_user,1)-#
START_STOP_ARGS="--background -- /usr/bin/xautologin $XUSER $CHECKVT -- vt$CHECKVT"
#os_install_root_type#
#?os_install_root_type!=livecd&&os_install_linux_shortname!=CMC&&pkg(kde-base/kdm)!=#
DISPLAYMANAGER="kdm"

Loading…
Cancel
Save