shadow fix
This commit is contained in:
1 parent
c467632568
commit
e3f59f6dc1
3 files changed
+19
-1
No files matched your search
@@ -3,5 +3,15 @@ if [ ! -f /var/lib/ymp/sysconf/shadow/postinstall.done ] ; then
|
||||
for app in su chage chsh expiry ; do
|
||||
chmod u+s /usr/bin/$app
|
||||
done
|
||||
touch /etc/group
|
||||
date > /var/lib/ymp/sysconf/shadow/postinstall.done
|
||||
fi
|
||||
if ! grep "^users:" /etc/group >/dev/null ; then
|
||||
echo "users:x:100:" >> /etc/group
|
||||
fi
|
||||
if ! grep "^wheel:" /etc/group >/dev/null ; then
|
||||
echo "wheel:x:10:root" >> /etc/group
|
||||
fi
|
||||
if ! grep "^root:" /etc/group >/dev/null ; then
|
||||
echo "root:x:0:root" >> /etc/group
|
||||
fi
|
||||
@@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth required pam_unix.so
|
||||
account required pam_unix.so
|
||||
password required pam_unix.so
|
||||
session required pam_unix.so
|
||||
@@ -9,10 +9,12 @@ maintainer='aliriza'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/shadow-maint/shadow/releases/download/$version/shadow-$version.tar.xz"
|
||||
"useradd.defaults"
|
||||
"shadow.sysconf")
|
||||
"shadow.sysconf"
|
||||
"system-auth")
|
||||
depends=(pam libxcrypt acl attr)
|
||||
makedepends=( )
|
||||
md5sums=('b1ab01b5462ddcf43588374d57bec123'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
uses=()
|
||||
@@ -44,6 +46,7 @@ build(){
|
||||
package(){
|
||||
make install -j`nproc`
|
||||
install -vDm 600 ../useradd.defaults "${DESTDIR}/etc/default/useradd"
|
||||
install -vDm 600 ../system-auth "${DESTDIR}/etc/pam.d/system-auth"
|
||||
install -vDm 755 ../shadow.sysconf ${DESTDIR}/etc/sysconf.d/shadow
|
||||
mkdir -p ${DESTDIR}/etc/ld.so.conf.d/
|
||||
echo "/usr/lib64/shadow/" > ${DESTDIR}/etc/ld.so.conf.d/shadow.conf
|
||||
|
||||
Reference in new issue
Block a user