Skip to content

Commit

Permalink
Merge pull request #399 from yast/huha-drop-scripts
Browse files Browse the repository at this point in the history
Drop Obsolete login.defs Scripts USERADD_CMD, USERDEL_PRECMD, USERDEL_POSTCMD, USERADD_CMD
  • Loading branch information
shundhammer authored Oct 2, 2024
2 parents d15bede + cac7dd5 commit 07c3fa4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 63 deletions.
7 changes: 7 additions & 0 deletions package/yast2-users.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 1 13:31:05 UTC 2024 - Stefan Hundhammer <shundhammer@suse.com>

- Removed obsolete USERADD_CMD, USERDEL_PRECMD, USERDEL_POSTCMD,
GROUPADD_CMD (bsc#1231006)
- 5.0.3

-------------------------------------------------------------------
Wed Aug 21 13:21:10 UTC 2024 - Stefan Hundhammer <shundhammer@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-users.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-users
Version: 5.0.2
Version: 5.0.3
Release: 0
Summary: YaST2 - User and Group Configuration
License: GPL-2.0-only
Expand Down
30 changes: 0 additions & 30 deletions test/fixtures/root-missing-files/etc/login.defs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ DEFAULT_HOME yes
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#
# See USERDEL_PRECMD/POSTCMD below.
#
#USERDEL_CMD /usr/sbin/userdel_local

#
Expand Down Expand Up @@ -257,31 +255,3 @@ CREATE_HOME no
#CHARACTER_CLASS [A-Za-z_][A-Za-z0-9_.-]*[A-Za-z0-9_.$-]\?
CHARACTER_CLASS [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_][ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-]*[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.$-]\?

#
# If defined, this command is run when adding a group.
# It should rebuild any NIS database etc. to add the
# new created group.
#
GROUPADD_CMD /usr/sbin/groupadd.local

#
# If defined, this command is run when adding a user.
# It should rebuild any NIS database etc. to add the
# new created account.
#
USERADD_CMD /usr/sbin/useradd.local

#
# If defined, this command is run before removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed.
#
USERDEL_PRECMD /usr/sbin/userdel-pre.local

#
# If defined, this command is run after removing a user.
# It should rebuild any NIS database etc. to remove the
# account from it.
#
USERDEL_POSTCMD /usr/sbin/userdel-post.local

33 changes: 1 addition & 32 deletions test/fixtures/root/etc/login.defs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ LOGIN_TIMEOUT 60
# any combination of letters "frwh" (full name, room number, work
# phone, home phone). If not defined, no changes are allowed.
# For backward compatibility, "yes" = "rwh" and "no" = "frwh".
#
#
CHFN_RESTRICT rwh

#
Expand Down Expand Up @@ -217,8 +217,6 @@ DEFAULT_HOME yes
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#
# See USERDEL_PRECMD/POSTCMD below.
#
#USERDEL_CMD /usr/sbin/userdel_local

#
Expand Down Expand Up @@ -256,32 +254,3 @@ CREATE_HOME no
#
#CHARACTER_CLASS [A-Za-z_][A-Za-z0-9_.-]*[A-Za-z0-9_.$-]\?
CHARACTER_CLASS [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_][ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-]*[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.$-]\?

#
# If defined, this command is run when adding a group.
# It should rebuild any NIS database etc. to add the
# new created group.
#
GROUPADD_CMD /usr/sbin/groupadd.local

#
# If defined, this command is run when adding a user.
# It should rebuild any NIS database etc. to add the
# new created account.
#
USERADD_CMD /usr/sbin/useradd.local

#
# If defined, this command is run before removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed.
#
USERDEL_PRECMD /usr/sbin/userdel-pre.local

#
# If defined, this command is run after removing a user.
# It should rebuild any NIS database etc. to remove the
# account from it.
#
USERDEL_POSTCMD /usr/sbin/userdel-post.local

0 comments on commit 07c3fa4

Please sign in to comment.