Summary: Shadow password file utilities for Linux Summary(de): Shadow-Paßwortdatei-Dienstprogramme für Linux Summary(fr): Fichiers utilitaires pour Shadow password pour Linux Summary(pl): Narzędzia do obsługi shadow passwords Summary(tr): Gölge parola dosyasý araçlarý Name: shadow Version: 20001016 Release: 2 License: BSD Group: Applications/System Group(de): Applikationen/System Group(pl): Aplikacje/System Source0: ftp://ftp.pld.org.pl/software/shadow/%{name}-%{version}.tar.gz Source1: %{name}-login.defs Source2: %{name}.useradd Source3: chage.pamd Source4: userdb.pamd Source5: chsh.pamd Source6: chfn.pamd Source7: passwd.pamd Patch1: %{name}-pld.patch Patch2: %{name}-utmpx.patch BuildRequires: pam-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-devel Provides: shadow-utils BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: shadow-utils Obsoletes: passwd %description This package includes the programs necessary to convert standard UNIX password files to the shadow password format, as well as programs for command-line management of the user's accounts. - 'pwconv' converts everything to the shadow password format. - 'pwunconv' unconverts from shadow passwords, generating a file in the current directory called npasswd that is a standard UNIX password file. - 'pwck' checks the integrity of the password and shadow files. - 'lastlog' prints out the last login times of all users. - 'useradd', 'userdel' and 'usermod' for accounts management. - 'groupadd', 'groupdel' and 'groupmod' for group management. A number of man pages are also included that relate to these utilities, and shadow passwords in general. %description -l pl Pakiet zawiera programy do obsługi shadow password. Zanjdują się w nim programy do konwersji standardowego pliku haseł do wersji shadow password a także programy do zarządanie kontami użytkowników w systemie - 'pwconv' konwertuje do formatu shadow passwords - 'pwunconv' konwertuje z shadow passwords do formatu standardowego pliku haseł. W bierzącym katalogu tworzy plik npasswd będący standardowym plikiem z hasłami. - 'lastlog' wyświetla czas logowanie użytkowników - 'userdel' i 'usermod' do zarządzania kontami użytkowników. - 'groupadd', 'groupdel' and 'groupmod' do zarządzania grupami Ostrzeżenie: Programy znajdujące się w tym pakiecie są niezbędne do prawidłowej pracy twojego systemu i podobnie jak pakiet z bibliotekami systemowymi - glibc nigdy nie powinien zostać odinstalowany ! %prep %setup -q %patch1 -p1 %patch2 -p1 %build gettextize --copy --force libtoolize --copy --force aclocal autoheader autoconf automake -a -c --foreign %configure \ --disable-desrpc \ --with-libcrypt \ %{!?_without_static:--enable-static} \ %{!?_without_static:--disable-shared} \ %{?_without_static:--disable-static} \ %{?_without_static:--enable-shared} \ --with-libpam \ --with-md5crypt \ --with-nls \ --without-included-gettext %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir}/{default,pam.d,skel} install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/login.defs install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/useradd install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/chage install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/shadow install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chsh install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chfn install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd :> $RPM_BUILD_ROOT%{_sysconfdir}/shadow echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/pwunconv.8 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpconv.8 echo .so pwconv.8 > $RPM_BUILD_ROOT%{_mandir}/man8/grpunconv.8 gzip -9nf doc/ANNOUNCE NEWS doc/README doc/README.linux doc/HOWTO %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post %{!?_without_static:#}/sbin/ldconfig if [ ! -f /etc/shadow ]; then %{_sbindir}/pwconv fi %{!?_without_static:#}%postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(644,root,root,755) %doc doc/*.gz %attr(750,root,root) %dir %{_sysconfdir}/default %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/default/* %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/* %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/login.defs %attr(400,root,root) %ghost %{_sysconfdir}/shadow %dir /etc/skel %{!?_without_static:#}%attr(755,root,root) /lib/lib*.so.*.*.* %attr(755,root,root) %{_sbindir}/user* %attr(755,root,root) %{_sbindir}/group* %attr(755,root,root) %{_sbindir}/grpck %attr(755,root,root) %{_sbindir}/pwck %attr(755,root,root) %{_sbindir}/*conv %attr(755,root,root) %{_sbindir}/chpasswd %attr(755,root,root) %{_sbindir}/newusers %attr(755,root,root) %{_sbindir}/mkpasswd %attr(755,root,root) %{_bindir}/chage %attr(4755,root,root) %{_bindir}/chfn %attr(4755,root,root) %{_bindir}/chsh %attr(4755,root,root) %{_bindir}/expiry %attr(4755,root,root) %{_bindir}/passwd %attr(4755,root,root) %{_bindir}/gpasswd %attr(755,root,root) %{_bindir}/lastlog %attr(755,root,root) %{_bindir}/faillog %attr(755,root,root) %{_bindir}/sg %{_mandir}/man1/gpasswd.* %{_mandir}/man1/chage.* %{_mandir}/man1/chfn.* %{_mandir}/man1/chsh.* %{_mandir}/man1/passwd.* %{_mandir}/man5/login.defs.* %{_mandir}/man5/passwd.* %{_mandir}/man5/shadow.* %{_mandir}/man5/porttime.* %{_mandir}/man5/faillog.* %{_mandir}/man8/faillog.* %{_mandir}/man8/groupdel.* %{_mandir}/man8/groupmod.* %{_mandir}/man8/grpck.* %{_mandir}/man8/grpconv.* %{_mandir}/man8/logoutd.* %{_mandir}/man8/mkpasswd.* %{_mandir}/man8/newusers.* %{_mandir}/man8/pwck.* %{_mandir}/man8/pwunconv.* %{_mandir}/man8/useradd.* %{_mandir}/man8/userdel.* %{_mandir}/man8/usermod.* %{_mandir}/man8/lastlog.* %{_mandir}/man8/pwconv.* %{_mandir}/man8/chpasswd.* %{_mandir}/man8/groupadd.* %{_mandir}/man8/grpunconv.* %{_mandir}/man8/shadowconfig.* %lang(pl) %{_mandir}/pl/man1/chage.* %lang(pl) %{_mandir}/pl/man1/gpasswd.* %lang(pl) %{_mandir}/pl/man1/chfn.* %lang(pl) %{_mandir}/pl/man1/chsh.* %lang(pl) %{_mandir}/pl/man1/passwd.* %lang(pl) %{_mandir}/pl/man5/faillog.* %lang(pl) %{_mandir}/pl/man5/login.defs.* %lang(pl) %{_mandir}/pl/man5/passwd.* %lang(pl) %{_mandir}/pl/man5/porttime.* %lang(pl) %{_mandir}/pl/man5/shadow.* %lang(pl) %{_mandir}/pl/man8/chpasswd.* %lang(pl) %{_mandir}/pl/man8/faillog.* %lang(pl) %{_mandir}/pl/man8/groupadd.* %lang(pl) %{_mandir}/pl/man8/groupdel.* %lang(pl) %{_mandir}/pl/man8/groupmod.* %lang(pl) %{_mandir}/pl/man8/grpck.* %lang(pl) %{_mandir}/pl/man8/lastlog.* %lang(pl) %{_mandir}/pl/man8/logoutd.* %lang(pl) %{_mandir}/pl/man8/mkpasswd.* %lang(pl) %{_mandir}/pl/man8/newusers.* %lang(pl) %{_mandir}/pl/man8/pwck.* %lang(pl) %{_mandir}/pl/man8/pwconv.* %lang(pl) %{_mandir}/pl/man8/shadowconfig.* %lang(pl) %{_mandir}/pl/man8/useradd.* %lang(pl) %{_mandir}/pl/man8/userdel.* %lang(pl) %{_mandir}/pl/man8/usermod.*