[Bug 1178096] [Build 20201023] pam_sh: userdel fails to remove home directory
https://bugzilla.suse.com/show_bug.cgi?id=1178096 https://bugzilla.suse.com/show_bug.cgi?id=1178096#c3 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE Flags|needinfo?(fvogt@suse.com) | --- Comment #3 from Fabian Vogt <fvogt@suse.com> --- (In reply to Dr. Werner Fink from comment #2)
(In reply to Fabian Vogt from comment #1)
What happens is this:
useradd -p asdflol tstpamunix_des ... + USRSKELDIR=/usr/etc/skel ++ ls -A /usr/etc/skel + for file in $(ls -A $USRSKELDIR) + test -e /home/tstpamunix_des/.config + cp -a /usr/etc/skel/.config /home/tstpamunix_des + chown -R tstpamunix_des.100 /home/tstpamunix_des/.config chown: cannot access '/home/tstpamunix_des/.config': No such file or directory
Note that "-m" was not passed to useradd, so it did not create /home/tstpamunix_des. This means /usr/etc/skel/.config was copied to /home/tstpamunix_des, but not into that directory.
This also explains why other users in the same test are not affected, those were created with the "-m" option.
Reassinging to shadow and raising priority - useradd must not unconditionally create home directories.
Ah ... is sounds like a dup of boo#1178296 ... please test with latest version curently tested with SR#845486
I thought that would only fix the issue that the home location was wrong, but apparently not. With that installed, the tests pass. *** This bug has been marked as a duplicate of bug 1178296 *** -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com