Skip to content

Commit

Permalink
shadow: Remove tools which don't work on Mariux
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Sep 19, 2022
1 parent e3b8740 commit fba90eb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions shadow.be0
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,22 @@ mee_install() {

rm $D/usr/bin/groups
rm $D/usr/share/man/man1/groups.1

# Remove tools which do not work on Mariux
# Some of these are setuid root and have side effects
# (e.g. "passwd" happily adds a record to /etc/shadow)

for tool in chgpasswd chpasswd groupadd groupdel groupmems groupmod \
grpconv grpunconv logoutd newusers pwconv pwunconv \
useradd userdel usermod vipw vigr; do
rm $D/usr/sbin/$tool
rm $D/usr/share/man/man8/$tool.8
test -e $D/etc/pam.d.sample/$tool && rm $D/etc/pam.d.sample/$tool
done

for tool in chage chfn chsh expiry gpasswd passwd; do
rm $D/usr/bin/$tool
rm $D/usr/share/man/man1/$tool.1
test -e $D/etc/pam.d.sample/$tool && rm $D/etc/pam.d.sample/$tool
done
}

0 comments on commit fba90eb

Please sign in to comment.