2004-09-09 12:21:46 +00:00
|
|
|
|
Summary: Utilities for managing accounts and shadow password files.
|
2004-09-09 12:21:14 +00:00
|
|
|
|
Name: shadow-utils
|
2004-09-09 12:21:33 +00:00
|
|
|
|
Version: 20000902
|
2004-09-09 12:22:58 +00:00
|
|
|
|
Release: 6
|
2004-09-09 12:21:33 +00:00
|
|
|
|
Epoch: 1
|
|
|
|
|
Source0: ftp://ftp.ists.pwr.wroc.pl/pub/linux/shadow/shadow-%{version}.tar.bz2
|
2004-09-09 12:21:14 +00:00
|
|
|
|
Source1: shadow-970616.login.defs
|
|
|
|
|
Source2: shadow-970616.useradd
|
|
|
|
|
Source3: adduser.8
|
|
|
|
|
Source4: pwunconv.8
|
|
|
|
|
Source5: grpconv.8
|
|
|
|
|
Source6: grpunconv.8
|
2004-09-09 12:21:54 +00:00
|
|
|
|
Patch0: shadow-20000902-redhat.patch
|
2004-09-09 12:21:33 +00:00
|
|
|
|
Patch1: shadow-20000902-nscd.patch
|
2004-09-09 12:21:54 +00:00
|
|
|
|
Patch2: shadow-19990827-group.patch
|
|
|
|
|
Patch3: shadow-20000902-vipw.patch
|
|
|
|
|
Patch4: shadow-20000826-preserve.patch
|
|
|
|
|
Patch5: shadow-20000902-mailspool.patch
|
2004-09-09 12:22:58 +00:00
|
|
|
|
Patch6: shadow-20000902-usg.patch
|
|
|
|
|
Patch7: shadow-20000902-old.patch
|
|
|
|
|
Patch8: shadow-20000902-man.patch
|
2004-09-09 12:21:33 +00:00
|
|
|
|
License: BSD
|
2004-09-09 12:21:14 +00:00
|
|
|
|
Group: System Environment/Base
|
2004-09-09 12:22:58 +00:00
|
|
|
|
BuildPrereq: autoconf, automake, libtool
|
2004-09-09 12:21:24 +00:00
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
2004-09-09 12:21:14 +00:00
|
|
|
|
Obsoletes: adduser
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The shadow-utils package includes the necessary programs for
|
|
|
|
|
converting UNIX password files to the shadow password format, plus
|
2004-09-09 12:21:54 +00:00
|
|
|
|
programs for managing user and group accounts. The pwconv command
|
|
|
|
|
converts passwords to the shadow password format. The pwunconv command
|
|
|
|
|
unconverts shadow passwords and generates an npasswd file (a standard
|
|
|
|
|
UNIX password file). The pwck command checks the integrity of password
|
|
|
|
|
and shadow files. The lastlog command prints out the last login times
|
|
|
|
|
for all users. The useradd, userdel, and usermod commands are used for
|
|
|
|
|
managing user accounts. The groupadd, groupdel, and groupmod commands
|
|
|
|
|
are used for managing group accounts.
|
2004-09-09 12:21:14 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n shadow-%{version}
|
|
|
|
|
%patch0 -p1 -b .redhat
|
|
|
|
|
%patch1 -p1 -b .nscd
|
2004-09-09 12:21:54 +00:00
|
|
|
|
%patch2 -p1 -b .group
|
|
|
|
|
%patch3 -p1 -b .vipw
|
|
|
|
|
%patch4 -p1 -b .preserve
|
|
|
|
|
%patch5 -p1 -b .mailspool
|
2004-09-09 12:22:58 +00:00
|
|
|
|
%patch6 -p1 -b .usg
|
|
|
|
|
%patch7 -p1 -b .old
|
|
|
|
|
%patch8 -p1 -b .man
|
2004-09-09 12:22:19 +00:00
|
|
|
|
libtoolize -f
|
2004-09-09 12:21:14 +00:00
|
|
|
|
aclocal
|
|
|
|
|
autoheader
|
2004-09-09 12:22:58 +00:00
|
|
|
|
automake -a
|
2004-09-09 12:21:14 +00:00
|
|
|
|
autoconf
|
2004-09-09 12:22:58 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2004-09-09 12:21:54 +00:00
|
|
|
|
%ifarch ia64
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -O0 -D_BSD_SOURCE" ; export CFLAGS
|
2004-09-09 12:21:33 +00:00
|
|
|
|
%endif
|
2004-09-09 12:21:54 +00:00
|
|
|
|
%configure --disable-desrpc --with-libcrypt --disable-shared
|
2004-09-09 12:21:14 +00:00
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT gnulocaledir=$RPM_BUILD_ROOT/%{_datadir}/locale
|
|
|
|
|
install -d -m 750 $RPM_BUILD_ROOT/etc/default
|
|
|
|
|
install -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/etc/login.defs
|
|
|
|
|
install -c -m 0600 %{SOURCE2} $RPM_BUILD_ROOT/etc/default/useradd
|
|
|
|
|
|
2004-09-09 12:21:54 +00:00
|
|
|
|
ln -s useradd $RPM_BUILD_ROOT%{_sbindir}/adduser
|
2004-09-09 12:21:14 +00:00
|
|
|
|
install -m644 $RPM_SOURCE_DIR/adduser.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
|
|
install -m644 $RPM_SOURCE_DIR/pwunconv.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
|
|
install -m644 $RPM_SOURCE_DIR/grpconv.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
|
|
install -m644 $RPM_SOURCE_DIR/grpunconv.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
|
|
perl -pi -e "s/encrpted/encrypted/g" $RPM_BUILD_ROOT%{_mandir}/man8/newusers.8
|
2004-09-09 12:21:24 +00:00
|
|
|
|
%find_lang shadow
|
2004-09-09 12:21:14 +00:00
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2004-09-09 12:21:24 +00:00
|
|
|
|
%files -f shadow.lang
|
2004-09-09 12:21:14 +00:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc doc/ANNOUNCE doc/CHANGES doc/HOWTO doc/LICENSE doc/README doc/README.linux
|
|
|
|
|
%dir /etc/default
|
|
|
|
|
%attr(0644,root,root) %config /etc/login.defs
|
|
|
|
|
%attr(0600,root,root) %config /etc/default/useradd
|
|
|
|
|
%{_bindir}/sg
|
|
|
|
|
%{_bindir}/chage
|
|
|
|
|
%{_bindir}/faillog
|
|
|
|
|
%{_bindir}/gpasswd
|
|
|
|
|
%{_bindir}/lastlog
|
|
|
|
|
%{_sbindir}/adduser
|
|
|
|
|
%{_sbindir}/user*
|
|
|
|
|
%{_sbindir}/group*
|
|
|
|
|
%{_sbindir}/grpck
|
|
|
|
|
%{_sbindir}/pwck
|
|
|
|
|
%{_sbindir}/*conv
|
|
|
|
|
%{_sbindir}/chpasswd
|
|
|
|
|
%{_sbindir}/newusers
|
|
|
|
|
#%{_sbindir}/mkpasswd
|
|
|
|
|
%{_mandir}/man1/chage.1*
|
|
|
|
|
%{_mandir}/man1/gpasswd.1*
|
|
|
|
|
%{_mandir}/man3/shadow.3*
|
|
|
|
|
%{_mandir}/man5/shadow.5*
|
|
|
|
|
%{_mandir}/man5/faillog.5*
|
|
|
|
|
%{_mandir}/man8/adduser.8*
|
|
|
|
|
%{_mandir}/man8/group*.8*
|
|
|
|
|
%{_mandir}/man8/user*.8*
|
|
|
|
|
%{_mandir}/man8/pwck.8*
|
|
|
|
|
%{_mandir}/man8/grpck.8*
|
|
|
|
|
%{_mandir}/man8/chpasswd.8*
|
|
|
|
|
%{_mandir}/man8/newusers.8*
|
|
|
|
|
#%{_mandir}/man8/mkpasswd.8*
|
|
|
|
|
%{_mandir}/man8/*conv.8*
|
|
|
|
|
%{_mandir}/man8/lastlog.8*
|
|
|
|
|
%{_mandir}/man8/faillog.8*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 12:22:58 +00:00
|
|
|
|
* Fri Feb 22 2002 Nalin Dahyabhai <nalin@redhat.com> 20000902-6
|
|
|
|
|
- rebuild
|
2004-09-09 12:22:49 +00:00
|
|
|
|
|
2004-09-09 12:22:58 +00:00
|
|
|
|
* Fri Jan 25 2002 Nalin Dahyabhai <nalin@redhat.com> 20000902-5
|
|
|
|
|
- fix autoheader breakage and random other things autotools complain about
|
2004-09-09 12:22:19 +00:00
|
|
|
|
|
2004-09-09 12:21:54 +00:00
|
|
|
|
* Mon Aug 27 2001 Nalin Dahyabhai <nalin@redhat.com> 20000902-4
|
|
|
|
|
- use -O0 instead of -O on ia64
|
|
|
|
|
- build in source directory
|
|
|
|
|
- don't leave lock files on the filesystem when useradd creates a group for
|
|
|
|
|
the user (#50269)
|
|
|
|
|
- fix the -o option to check for duplicate UIDs instead of login names (#52187)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 26 2001 Bill Nottingham <notting@redhat.com> 20000902-3
|
2004-09-09 12:21:46 +00:00
|
|
|
|
- build with -O on ia64
|
|
|
|
|
|
2004-09-09 12:21:54 +00:00
|
|
|
|
* Fri Jun 08 2001 Than Ngo <than@redhat.com> 20000902-2
|
2004-09-09 12:21:33 +00:00
|
|
|
|
- fixup broken specfile
|
|
|
|
|
|
|
|
|
|
* Tue May 22 2001 Bernhard Rosenkraenzer <bero@redhat.com> 20000902-1
|
|
|
|
|
- Create an empty mailspool when creating a user so non-setuid/non-setgid
|
|
|
|
|
MDAs (postfix+procmail) can deliver mail (#41811)
|
|
|
|
|
- 20000902
|
|
|
|
|
- adapt patches
|
|
|
|
|
|
2004-09-09 12:21:24 +00:00
|
|
|
|
* Fri Mar 9 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- don't overwrite user dot files in useradd (#19982)
|
|
|
|
|
- truncate new files when moving overwriting files with the contents of other
|
|
|
|
|
files while moving directories (keeps files from looking weird later on)
|
|
|
|
|
- configure using %%{_prefix} as the prefix
|
|
|
|
|
|
|
|
|
|
* Fri Feb 23 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- langify
|
|
|
|
|
|
|
|
|
|
* Wed Aug 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Fix up chage behavior (Bug #15883)
|
|
|
|
|
|
|
|
|
|
* Wed Aug 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 20000826
|
|
|
|
|
- Fix up useradd man page (Bug #17036)
|
|
|
|
|
|
2004-09-09 12:21:14 +00:00
|
|
|
|
* Tue Aug 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- check for vipw lock before adding or deleting users (Bug #6489)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 7 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- take LOG_CONS out of the openlog() call so that we don't litter the
|
|
|
|
|
screen during text-mode upgrades
|
|
|
|
|
|
|
|
|
|
* Tue Jul 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Remove a fixed-size buffer that caused problems when adding a huge number
|
|
|
|
|
of users to a group (>8192 bytes) (Bugs #3809, #11930)
|
|
|
|
|
|
|
|
|
|
* Tue Jul 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- remove dependency on util-linux because it causes prereq loops
|
|
|
|
|
|
|
|
|
|
* Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- change symlinked man pages to includers
|
|
|
|
|
- require /usr/bin/newgrp (util-linux) so that /usr/bin/sg isn't left dangling
|
|
|
|
|
|
|
|
|
|
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- use mandir for FHS
|
|
|
|
|
- added patches in src/ and po/ to honor DESTDIR
|
|
|
|
|
- use make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
* Wed Feb 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Fix up usermod's symlink behavior (Bug #5458)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 11 2000 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- get rid of mkpasswd
|
|
|
|
|
|
|
|
|
|
* Mon Feb 7 2000 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
|
- fix usermod patch to check for shadow before doing any shadow-specific stuff
|
|
|
|
|
and merge it into the pwlock patch
|
|
|
|
|
|
|
|
|
|
* Sat Feb 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- fix man symlinks
|
|
|
|
|
|
|
|
|
|
* Wed Feb 2 2000 Nalin Dahyabhai <gafton@redhat.com>
|
|
|
|
|
- make -p only change shadow password (bug #8923)
|
|
|
|
|
|
|
|
|
|
* Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- rebuild to fix dependeencies
|
|
|
|
|
- man pages are compressed
|
|
|
|
|
|
|
|
|
|
* Wed Jan 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Fix a security bug (adduser could overwrite previously existing
|
|
|
|
|
groups, Bug #8609)
|
|
|
|
|
|
|
|
|
|
* Sun Jan 9 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- unset LINGUAS before building
|
|
|
|
|
- Fix typo in newusers manpage (Bug #8258)
|
|
|
|
|
- libtoolize
|
|
|
|
|
|
|
|
|
|
* Wed Sep 22 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- fix segfault for userdel when the primary group for the user is not
|
|
|
|
|
defined
|
|
|
|
|
|
|
|
|
|
* Tue Sep 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- Serial: 1 because now we are using 19990827 (why the heck can't they have
|
|
|
|
|
a normal version just like everybody else?!)
|
|
|
|
|
- ported all patches to the new code base
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- SIGHUP nscd from usermod, too
|
|
|
|
|
|
|
|
|
|
* Fri Apr 09 1999 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
|
- added usermod password locking from Chris Adams <cadams@ro.com>
|
|
|
|
|
|
|
|
|
|
* Thu Apr 08 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- have things that modify users/groups SIGHUP nscd on exit
|
|
|
|
|
|
|
|
|
|
* Wed Mar 31 1999 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
|
- have userdel remove user private groups when it is safe to do so
|
|
|
|
|
- allow -f to force user removal even when user appears busy in utmp
|
|
|
|
|
|
|
|
|
|
* Tue Mar 23 1999 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- edit out unused CHFN fields from login.defs.
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- auto rebuild in the new build environment (release 7)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 13 1999 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- configure fix for arm
|
|
|
|
|
|
|
|
|
|
* Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- build against glibc 2.1
|
|
|
|
|
|
|
|
|
|
* Fri Aug 21 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- Note that /usr/sbin/mkpasswd conflicts with /usr/bin/mkpasswd;
|
|
|
|
|
one of these (I think /usr/sbin/mkpasswd but other opinions are valid)
|
|
|
|
|
should probably be renamed. In any case, mkpasswd.8 from this package
|
|
|
|
|
needs to be installed. (problem #823)
|
|
|
|
|
|
|
|
|
|
* Fri May 08 1998 Prospector System <bugs@redhat.com>
|
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
|
|
* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- updated to 980403
|
|
|
|
|
- redid the patches
|
|
|
|
|
|
|
|
|
|
* Tue Dec 30 1997 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- updated the spec file
|
|
|
|
|
- updated the patch so that new accounts created on shadowed system won't
|
|
|
|
|
confuse pam_pwdb anymore ('!!' default password instead on '!')
|
|
|
|
|
- fixed a bug that made useradd -G segfault
|
|
|
|
|
- the check for the ut_user is now patched into configure
|
|
|
|
|
|
|
|
|
|
* Thu Nov 13 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
|
- added patch for XOPEN oddities in glibc headers
|
|
|
|
|
- check for ut_user before checking for ut_name -- this works around some
|
|
|
|
|
confusion on glibc 2.1 due to the utmpx header not defining the ut_name
|
|
|
|
|
compatibility stuff. I used a gross sed hack here because I couldn't make
|
|
|
|
|
automake work properly on the sparc (this could be a glibc 2.0.99 problem
|
|
|
|
|
though). The utuser patch works fine, but I don't apply it.
|
|
|
|
|
- sleep after running autoconf
|
|
|
|
|
|
|
|
|
|
* Thu Nov 06 1997 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- added forgot lastlog command to the spec file
|
|
|
|
|
|
|
|
|
|
* Mon Oct 26 1997 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- obsoletes adduser
|
|
|
|
|
|
|
|
|
|
* Thu Oct 23 1997 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- modified groupadd; updated the patch
|
|
|
|
|
|
|
|
|
|
* Fri Sep 12 1997 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- updated to 970616
|
|
|
|
|
- changed useradd to meet RH specs
|
|
|
|
|
- fixed some bugs
|
|
|
|
|
|
|
|
|
|
* Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
|
- built against glibc
|