[debian-edu-commits] [Git][debian-edu/upstream/libpam-mklocaluser][master] 3 commits: debian/pam-python.py: Take user shell into account when creating local user account.

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Mon Jun 2 15:07:09 BST 2025



Mike Gabriel pushed to branch master at Debian Edu / upstream / libpam-mklocaluser


Commits:
7e633a7f by Mike Gabriel at 2025-06-02T15:00:40+02:00
debian/pam-python.py: Take user shell into account when creating local user account.

- - - - -
3bd6aaac by Mike Gabriel at 2025-06-02T15:01:33+02:00
upload to unstable (debian/0.20)

- - - - -
2629ba87 by Mike Gabriel at 2025-06-02T16:07:02+02:00
d/changelog: post-upload addition of bug closure statement for #1107157

- - - - -


2 changed files:

- debian/changelog
- debian/pam-python.py


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,14 @@
+libpam-mklocaluser (0.20) unstable; urgency=medium
+
+  [ Guido Berhoerster ]
+  * Determine minimum UID for regular users from login.defs
+
+  [ Mike Gabriel ]
+  * debian/pam-python.py: Take user shell into account when creating local
+    user account. (Closes: #1107157).
+
+ -- Mike Gabriel <sunweaver at debian.org>  Mon, 02 Jun 2025 15:01:06 +0200
+
 libpam-mklocaluser (0.19) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/pam-python.py
=====================================
@@ -115,7 +115,7 @@ def check_and_create_localuser(pamh, user):
     syslog.syslog(
         f"Creating local passwd/shadow entry uid={userinfo.pw_uid}({user}) "
         f"gid={userinfo.pw_gid}({groupname}) gecos='{userinfo.pw_gecos}' "
-        f"home={new_home}"
+        f"home={new_home} shell='{userinfo.pw_shell}'"
     )
     with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
         # Use alternative path to the root directory to trick useradd into
@@ -129,6 +129,7 @@ def check_and_create_localuser(pamh, user):
                 [
                     "useradd", "--prefix", root, "--uid", str(userinfo.pw_uid),
                     "--no-user-group", "--create-home", "--home-dir", new_home,
+                    "--shell", userinfo.pw_shell,
                     "--comment", userinfo.pw_gecos, user
                 ],
                 capture_output=True, text=True, check=True



View it on GitLab: https://salsa.debian.org/debian-edu/upstream/libpam-mklocaluser/-/compare/6fb065f773f043ff528df5a5d02fb2cd965560c1...2629ba87e5354ede6741d396744445b545d38504

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/upstream/libpam-mklocaluser/-/compare/6fb065f773f043ff528df5a5d02fb2cd965560c1...2629ba87e5354ede6741d396744445b545d38504
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20250602/51121373/attachment-0001.htm>


More information about the debian-edu-commits mailing list