Skip to content

Commit 70a2ec4

Browse files
committed
openSUSE: configure gnomesu for passwordless login
1 parent e8f2bb5 commit 70a2ec4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

oscfg/opensuse.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,18 @@ disable-log-out=true
165165
idle-delay=uint32 0
166166
EOF
167167
run /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
168+
cat > "$WORK/etc/pam.d/gnomesu-pam" <<EOF
169+
#%PAM-1.0
170+
auth sufficient pam_wheel.so trust use_uid
171+
auth sufficient pam_rootok.so
172+
auth include common-auth
173+
account sufficient pam_rootok.so
174+
account include common-account
175+
password include common-password
176+
session include common-session
177+
session optional pam_keyinit.so force revoke
178+
session optional pam_xauth.so
179+
EOF
168180
elif [ "$DESKTOP" == "kde" ]; then
169181
mkdir -p "$WORK/etc/skel/.config"
170182
cat >> "$WORK/etc/skel/.config/kdeglobals" <<EOF

0 commit comments

Comments
 (0)