diff options
Diffstat (limited to 'shadow')
-rw-r--r-- | shadow/.footprint | 76 | ||||
-rw-r--r-- | shadow/.md5sum | 3 | ||||
-rw-r--r-- | shadow/Pkgfile | 23 | ||||
-rw-r--r-- | shadow/Pkgfile.old | 42 | ||||
-rw-r--r-- | shadow/login.defs | 50 | ||||
-rw-r--r-- | shadow/pwck | 9 |
6 files changed, 203 insertions, 0 deletions
diff --git a/shadow/.footprint b/shadow/.footprint new file mode 100644 index 0000000..1016488 --- /dev/null +++ b/shadow/.footprint @@ -0,0 +1,76 @@ +drwxr-xr-x root/root bin/ +-rwxr-xr-x root/root bin/login +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/cron/ +drwxr-xr-x root/root etc/cron/daily/ +-rwxr-xr-x root/root etc/cron/daily/pwck +-rw-r--r-- root/root etc/login.defs +drwxr-xr-x root/root sbin/ +-rwxr-xr-x root/root sbin/nologin +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwsr-xr-x root/root usr/bin/chage +-rwsr-xr-x root/root usr/bin/chfn +-rwsr-xr-x root/root usr/bin/chsh +-rwsr-xr-x root/root usr/bin/expiry +-rwxr-xr-x root/root usr/bin/faillog +-rwxr-xr-x root/root usr/bin/groups +-rwxr-xr-x root/root usr/bin/lastlog +-rwsr-xr-x root/root usr/bin/newgrp +-rwsr-xr-x root/root usr/bin/passwd +lrwxrwxrwx root/root usr/bin/sg -> newgrp +-rwsr-xr-x root/root usr/bin/su +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/chage.1.gz +-rw-r--r-- root/root usr/man/man1/chfn.1.gz +-rw-r--r-- root/root usr/man/man1/chsh.1.gz +-rw-r--r-- root/root usr/man/man1/expiry.1.gz +-rw-r--r-- root/root usr/man/man1/groups.1.gz +-rw-r--r-- root/root usr/man/man1/login.1.gz +-rw-r--r-- root/root usr/man/man1/newgrp.1.gz +-rw-r--r-- root/root usr/man/man1/passwd.1.gz +-rw-r--r-- root/root usr/man/man1/sg.1.gz +-rw-r--r-- root/root usr/man/man1/su.1.gz +drwxr-xr-x root/root usr/man/man5/ +-rw-r--r-- root/root usr/man/man5/faillog.5.gz +-rw-r--r-- root/root usr/man/man5/limits.5.gz +-rw-r--r-- root/root usr/man/man5/login.access.5.gz +-rw-r--r-- root/root usr/man/man5/login.defs.5.gz +-rw-r--r-- root/root usr/man/man5/passwd.5.gz +-rw-r--r-- root/root usr/man/man5/porttime.5.gz +-rw-r--r-- root/root usr/man/man5/shadow.5.gz +-rw-r--r-- root/root usr/man/man5/suauth.5.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/chgpasswd.8.gz +-rw-r--r-- root/root usr/man/man8/faillog.8.gz +-rw-r--r-- root/root usr/man/man8/groupadd.8.gz +-rw-r--r-- root/root usr/man/man8/groupdel.8.gz +-rw-r--r-- root/root usr/man/man8/groupmems.8.gz +-rw-r--r-- root/root usr/man/man8/groupmod.8.gz +-rw-r--r-- root/root usr/man/man8/grpck.8.gz +-rw-r--r-- root/root usr/man/man8/lastlog.8.gz +-rw-r--r-- root/root usr/man/man8/nologin.8.gz +-rw-r--r-- root/root usr/man/man8/pwck.8.gz +-rw-r--r-- root/root usr/man/man8/useradd.8.gz +-rw-r--r-- root/root usr/man/man8/userdel.8.gz +-rw-r--r-- root/root usr/man/man8/usermod.8.gz +-rw-r--r-- root/root usr/man/man8/vigr.8.gz +-rw-r--r-- root/root usr/man/man8/vipw.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/chgpasswd +-rwxr-xr-x root/root usr/sbin/groupadd +-rwxr-xr-x root/root usr/sbin/groupdel +-rwxr-xr-x root/root usr/sbin/groupmems +-rwxr-xr-x root/root usr/sbin/groupmod +-rwxr-xr-x root/root usr/sbin/grpck +-rwxr-xr-x root/root usr/sbin/pwck +-rwxr-xr-x root/root usr/sbin/useradd +-rwxr-xr-x root/root usr/sbin/userdel +-rwxr-xr-x root/root usr/sbin/usermod +lrwxrwxrwx root/root usr/sbin/vigr -> vipw +-rwxr-xr-x root/root usr/sbin/vipw +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/log/ +-rw-r--r-- root/root var/log/faillog (EMPTY) +-rw-r--r-- root/root var/log/lastlog (EMPTY) diff --git a/shadow/.md5sum b/shadow/.md5sum new file mode 100644 index 0000000..5cf1775 --- /dev/null +++ b/shadow/.md5sum @@ -0,0 +1,3 @@ +05a85f1ea6bf26aec66a91b5f98a51b0 login.defs +be8f69c2701118093af3d7f3bc02af16 pwck +d593a9cab93c48ee0a6ba056db8c1997 shadow-4.1.4.2.tar.bz2 diff --git a/shadow/Pkgfile b/shadow/Pkgfile new file mode 100644 index 0000000..635d5d0 --- /dev/null +++ b/shadow/Pkgfile @@ -0,0 +1,23 @@ +description="Shadow password file utilities" +packager="" +maintainer="CRUX System Team, core-ports at crux dot nu" +url="http://pkg-shadow.alioth.debian.org/" +depends=() + +name=shadow +version=4.1.4.2 +release=1 +source=(ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-4.1.4.2.tar.bz2 pwck login.defs) +build () +{ + cd $name-$version; + ./configure --prefix=/usr --mandir=/usr/man --sysconfdir=/etc --disable-shared --disable-shadowgrp --disable-nls --without-selinux --without-libpam --without-audit; + make; + make DESTDIR=$PKG install; + install -d $PKG/etc/cron/daily $PKG/var/log; + install -m 644 $SRC/login.defs $PKG/etc; + install -m 755 $SRC/pwck $PKG/etc/cron/daily; + mv $PKG/bin/{su,groups} $PKG/usr/bin; + touch $PKG/var/log/{lastlog,faillog}; + rm -r $PKG/usr/bin/gpasswd $PKG/usr/man/man1/gpasswd.1 $PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} $PKG/usr/sbin/{newusers,pwconv,pwunconv} $PKG/usr/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} $PKG/usr/man/man8/{newusers.8,pwconv.8,pwunconv.8} $PKG/usr/man/man5/gshadow.5 $PKG/usr/man/man3 $PKG/etc/{login.access,limits,default} +} diff --git a/shadow/Pkgfile.old b/shadow/Pkgfile.old new file mode 100644 index 0000000..7b7a16f --- /dev/null +++ b/shadow/Pkgfile.old @@ -0,0 +1,42 @@ +# Description: Shadow password file utilities +# URL: http://pkg-shadow.alioth.debian.org/ +# Maintainer: CRUX System Team, core-ports at crux dot nu + +name=shadow +version=4.1.4.2 +release=1 +source=(ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$name-$version.tar.bz2 + pwck login.defs) + +build() { + cd $name-$version + + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --sysconfdir=/etc \ + --disable-shared \ + --disable-shadowgrp \ + --disable-nls \ + --without-selinux \ + --without-libpam \ + --without-audit + + make + make DESTDIR=$PKG install + + install -d $PKG/etc/cron/daily $PKG/var/log + install -m 644 $SRC/login.defs $PKG/etc + install -m 755 $SRC/pwck $PKG/etc/cron/daily + mv $PKG/bin/{su,groups} $PKG/usr/bin + touch $PKG/var/log/{lastlog,faillog} + + rm -r $PKG/usr/bin/gpasswd \ + $PKG/usr/man/man1/gpasswd.1 \ + $PKG/usr/sbin/{chpasswd,grpconv,grpunconv,logoutd} \ + $PKG/usr/sbin/{newusers,pwconv,pwunconv} \ + $PKG/usr/man/man8/{chpasswd.8,grpconv.8,grpunconv.8,logoutd.8} \ + $PKG/usr/man/man8/{newusers.8,pwconv.8,pwunconv.8} \ + $PKG/usr/man/man5/gshadow.5 \ + $PKG/usr/man/man3 \ + $PKG/etc/{login.access,limits,default} +} diff --git a/shadow/login.defs b/shadow/login.defs new file mode 100644 index 0000000..69b71df --- /dev/null +++ b/shadow/login.defs @@ -0,0 +1,50 @@ +# +# /etc/login.defs: login configuration, see login.defs(5) +# + +FAIL_DELAY 0 +FAILLOG_ENAB yes +LOG_UNKFAIL_ENAB no +LOG_OK_LOGINS no +LASTLOG_ENAB yes +MAIL_CHECK_ENAB yes +OBSCURE_CHECKS_ENAB yes +QUOTAS_ENAB no +SYSLOG_SU_ENAB yes +SYSLOG_SG_ENAB yes +CONSOLE /etc/securetty +MOTD_FILE /etc/motd +FTMP_FILE /var/log/btmp +NOLOGINS_FILE /etc/nologin +SU_NAME su +MAIL_DIR /var/spool/mail +HUSHLOGIN_FILE .hushlogin +ENV_HZ HZ=100 +ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin +ENV_PATH PATH=/bin:/usr/bin +TTYGROUP tty +TTYPERM 0600 +ERASECHAR 0177 +KILLCHAR 025 +UMASK 022 +PASS_MAX_DAYS 99999 +PASS_MIN_DAYS 0 +PASS_MIN_LEN 5 +PASS_WARN_AGE 7 +SU_WHEEL_ONLY no +UID_MIN 100 +UID_MAX 60000 +GID_MIN 100 +GID_MAX 60000 +LOGIN_RETRIES 5 +LOGIN_TIMEOUT 60 +PASS_CHANGE_TRIES 5 +PASS_ALWAYS_WARN yes +CHFN_AUTH yes +CHFN_RESTRICT rwh +ENCRYPT_METHOD MD5 +PASS_MAX_LEN 8 +DEFAULT_HOME yes +USERGROUPS_ENAB no + +# End of file diff --git a/shadow/pwck b/shadow/pwck new file mode 100644 index 0000000..97d1aa7 --- /dev/null +++ b/shadow/pwck @@ -0,0 +1,9 @@ +#!/bin/sh +# +# /etc/cron/daily/pwck: verify integrity of password and group files +# + +/usr/sbin/pwck -r +/usr/sbin/grpck -r + +# End of file |