Bug 4177 - [Anolis 23 Nightly][aarch64/x86]gpasswd 无法设置组密码
Summary: [Anolis 23 Nightly][aarch64/x86]gpasswd 无法设置组密码
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S2-major
Target Milestone: ---
Assignee: shawnwang
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-22 10:44 UTC by yunmeng365524
Modified: 2023-02-23 14:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunmeng365524 2023-02-22 10:44:58 UTC
Description of problem:
gpasswd 无法设置组密码

Version-Release number of selected component (if applicable):
[root@iZbp1b3q91t7fog9z072ivZ devel_toolchains]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[root@iZbp1b3q91t7fog9z072ivZ devel_toolchains]# uname -a
Linux iZbp1b3q91t7fog9z072ivZ 5.10.134-12.1.an23.aarch64 #1 SMP Thu Oct 13 11:31:15 CST 2022 aarch64 GNU/Linux

[root@iZbp1b3q91t7fog9z072ivZ shadow-utils]# yum info shadow-utils
Installed Packages
Name         : shadow-utils
Version      : 4.13
Release      : 1.an23
Architecture : aarch64
Size         : 5.1 M
Source       : shadow-utils-4.13-1.an23.src.rpm
Repository   : @System
From repo    : build
Summary      : Utilities for managing accounts and shadow password files
URL          : https://github.com/shadow-maint/shadow
License      : BSD and GPLv2+
Description  : The shadow-utils package includes the necessary programs for
             : converting UNIX password files to the shadow password format, plus
             : programs for managing user and group accounts. The pwconv command
             : converts passwords to the shadow password format. The pwunconv command
             : unconverts shadow passwords and generates a passwd file (a standard
             : UNIX password file). The pwck command checks the integrity of password
             : and shadow files. The lastlog command prints out the last login times
             : for all users. The useradd, userdel, and usermod commands are used for
             : managing user accounts. The groupadd, groupdel, and groupmod commands
             : are used for managing group accounts.


How reproducible:
[root@iZbp1bt9gl5udio28dpy1kZ ~]# groupadd for_test
[root@iZbp1bt9gl5udio28dpy1kZ ~]# gpasswd for_test
Changing the password for group for_test
New Password:
[root@iZbp1bt9gl5udio28dpy1kZ ~]# cat /etc/gshadow | grep for_test
for_test:!::


Steps to Reproduce:
如上

Actual results:
如上

Expected results:
可正确配置组密码

Additional info:
对比an8的结果:
[root@iZbp1e3pj4ubukt0jp7zyzZ ~]# groupadd tldr-group
[root@iZbp1e3pj4ubukt0jp7zyzZ ~]# cat /etc/gshadow |grep ^tldr-group
tldr-group:!::
[root@iZbp1e3pj4ubukt0jp7zyzZ ~]# gpasswd tldr-group
Changing the password for group tldr-group
New Password:
Re-enter new password:
[root@iZbp1e3pj4ubukt0jp7zyzZ ~]#
[root@iZbp1e3pj4ubukt0jp7zyzZ ~]# cat /etc/gshadow |grep ^tldr-group
tldr-group:$6$gl63j/cCcok/ORD$UsBZfD/Lqpfq7uM7nEVfyeQ3Q.InneE/y4z67ypRRP0CE1uM22YENaK8iI4GJvBz0fWfHPMD.rT9jeqktUi5m.::
[root@iZbp1e3pj4ubukt0jp7zyzZ ~]#

an8的版本
[root@iZbp1e3pj4ubukt0jp7zyzZ ~]# yum info shadow-utils
Installed Packages
Name         : shadow-utils
Epoch        : 2
Version      : 4.6
Release      : 16.an8
Architecture : aarch64
Size         : 4.4 M
Source       : shadow-utils-4.6-16.an8.src.rpm
Repository   : @System
Summary      : Utilities for managing accounts and shadow password files
URL          : http://pkg-shadow.alioth.debian.org/
License      : BSD and GPLv2+
Description  : The shadow-utils package includes the necessary programs for
             : converting UNIX password files to the shadow password format, plus
             : programs for managing user and group accounts. The pwconv command
             : converts passwords to the shadow password format. The pwunconv command
             : unconverts shadow passwords and generates a passwd file (a standard
             : UNIX password file). The pwck command checks the integrity of password
             : and shadow files. The lastlog command prints out the last login times
             : for all users. The useradd, userdel, and usermod commands are used for
             : managing user accounts. The groupadd, groupdel, and groupmod commands
             : are used for managing group accounts.
Comment 1 xuchunmei alibaba_cloud_group 2023-02-23 14:13:34 UTC
修复pr:https://gitee.com/src-anolis-os/shadow-utils/pulls/16
修复版本:shadow-utils-4.13-2.an23