slackware-current/source/a/shadow/shadow.shadowconfig.diff
Patrick J Volkerding 5a12e7c134 Slackware 13.0
Wed Aug 26 10:00:38 CDT 2009
Slackware 13.0 x86_64 is released as stable!  Thanks to everyone who
helped make this release possible -- see the RELEASE_NOTES for the
credits.  The ISOs are off to the replicator.  This time it will be a
6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD.
We're taking pre-orders now at store.slackware.com.  Please consider
picking up a copy to help support the project.  Once again, thanks to
the entire Slackware community for all the help testing and fixing
things and offering suggestions during this development cycle.
As always, have fun and enjoy!  -P.
2018-05-31 22:41:17 +02:00

49 lines
1.3 KiB
Diff

--- ./debian/shadowconfig.sh.orig 2001-05-29 23:20:22.000000000 -0700
+++ ./debian/shadowconfig.sh 2003-06-23 16:35:38.000000000 -0700
@@ -1,23 +1,28 @@
#!/bin/bash
-# turn shadow passwords on or off on a Debian system
+#
+# 'shadowconfig on' will turn shadow passwords on;
+# 'shadowconfig off' will turn shadow passwords off.
+#
+# shadowconfig will print an error message and exit with
+# a nonzero code if it finds anything awry. If that happens,
+# you should correct the error and run it again.
+#
+# Turning shadow passwords on when they are already on, or
+# off when they are already off, is harmless.
+#
+# Be aware that account expiration dates are only supported
+# by shadow passwords -- these dates will be lost when converting
+# from shadow to non-shadow passwords. If you need to save this
+# information, back up your /etc/shadow before turning off
+# shadow passwords.
+#
-set -e
-permfix () {
- [ -f $1 ] || return 0
- chown root:shadow $1
- chmod 2755 $1
-}
-export -f permfix
+set -e
shadowon () {
bash<<- EOF
set -e
-
- permfix /usr/X11R6/bin/xlock
- permfix /usr/X11R6/bin/xtrlock
- permfix /bin/vlock
-
pwck -q
grpck
pwconv
@@ -65,3 +70,4 @@
echo Usage: $0 on \| off
;;
esac
+