3 # - subpackage with rpasswd daemon
5 Summary: Utilities to manage the passwd and shadow user information
6 Summary(pl): Narzêdzia do zarz±dzania informacjami o u¿ytkownikach z passwd i shadow
11 Group: Applications/System
12 Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
13 Source1: %{name}.useradd
14 Source2: %{name}.rpasswdd.init
15 Source3: %{name}.login.defs
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: gettext-devel
24 BuildRequires: openldap-devel
25 BuildRequires: openssl-devel
26 BuildRequires: pam-devel
28 Obsoletes: shadow-extras
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 pwdutils is a collection of utilities to manage the passwd and shadow
33 user information. The difference to the shadow suite is that these
34 utilities can also modify the information stored in NIS, NIS+, or
35 LDAP. PAM is used for user authentication and changing the pasword. It
36 contains passwd, chage, chfn, chsh, and a daemon for changing the
37 password on a remote machine over a secure SSL connection. The daemon
38 also uses PAM so that it can change passwords independent of where
42 pwdutils to zestaw narzêdzi do zarz±dzania informacjami o
43 u¿ytkownikach z passwd i shadow. Ró¿nica w stosunku do pakietu shadow
44 polega na tym, ¿e te narzêdzia mog± tak¿e modyfikowaæ informacje
45 zapisane w bazie NIS, NIS+ lub LDAP. PAM jest u¿ywany do
46 uwierzytelniania u¿ytkowników i zmiany hase³. Zestaw zawiera passwd,
47 chage, chfn, chsh oraz demona do zmiany has³a na zdalnej maszynie po
48 bezpiecznym po³±czeniu SSL. Demon tak¿e u¿ywa PAM, wiêc mo¿na zmieniaæ
49 has³a niezale¿nie od tego, gdzie s± przechowywane.
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d/,pwdutils,skel}
68 DESTDIR=$RPM_BUILD_ROOT
70 mv $RPM_BUILD_ROOT%{_sbindir}/*.local $RPM_BUILD_ROOT/etc/pwdutils/
71 install %{SOURCE1} $RPM_BUILD_ROOT/etc/default/useradd
72 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpasswdd
73 install %{SOURCE3} $RPM_BUILD_ROOT/etc/login.defs
75 install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/chage
76 install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chfn
77 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chsh
78 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd
79 install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd
84 rm -rf $RPM_BUILD_ROOT
88 if [ ! -f /etc/shadow ]; then
92 %postun -p /sbin/ldconfig
94 %files -f %{name}.lang
95 %defattr(644,root,root,755)
96 %doc NEWS README THANKS TODO
97 %attr(750,root,root) %dir %{_sysconfdir}/default
98 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/default/*
99 %attr(750,root,root) %dir %{_sysconfdir}/%{name}
100 %attr(750,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/*.local
101 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chage
102 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chfn
103 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chsh
104 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/passwd
105 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/rpasswd
106 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/useradd
107 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/login.defs
109 %attr(755,root,root) %{_bindir}/chage
110 %attr(4755,root,root) %{_bindir}/chfn
111 %attr(4755,root,root) %{_bindir}/chsh
112 %attr(4755,root,root) %{_bindir}/expiry
113 %attr(4755,root,root) %{_bindir}/passwd
114 %attr(755,root,root) %{_bindir}/rpasswd
115 %attr(755,root,root) %{_sbindir}/chpasswd
116 %attr(755,root,root) %{_sbindir}/groupadd
117 %attr(755,root,root) %{_sbindir}/groupdel
118 %attr(755,root,root) %{_sbindir}/rpasswdd
119 %attr(755,root,root) %{_sbindir}/useradd
120 %attr(755,root,root) %{_sbindir}/userdel
122 %attr(754,root,root) /etc/rc.d/init.d/rpasswdd