Michael Vetter
b2bd56a012
Reset user in tallylog
...
The useradd application resets the user data in /var/log/faillog, if it
exists and a new user is created.
pam_tally2 is used in many distributions.
Check for /var/log/tallylog and reset the user there.
Patch was written by Josef Moellers <jmoellers@suse.de>.
https://bugzilla.suse.com/show_bug.cgi?id=980486
2016-12-21 12:36:11 -06:00
Jussi Ohenoja
a3bf32fe87
shadow: Add auditing support to su
...
This patch extends the auditing feature used in login to su.
Signed-off-by: Jussi Ohenoja <jussi.ohenoja@nokia.com>
2016-12-13 18:44:19 +02:00
Serge Hallyn
9e93c984f7
Merge pull request #17 from wking/includes-to-am-cppflags
...
*/Makefile.am: Replace INCLUDES with AM_CPPFLAGS
2016-12-07 00:01:54 -06:00
Serge Hallyn
d7ce9430ca
Revert "Add files via upload"
...
This has caused build errors. Please feel free to re-submit.
This reverts commit 93e3044c6d
.
2016-12-06 23:31:58 -06:00
Serge Hallyn
0fb53623a5
Merge pull request #55 from glensc/travis2
...
enable travis integration
2016-12-06 23:27:19 -06:00
Serge Hallyn
9ad34243aa
Merge pull request #52 from vapier/master
...
autotools refresh
2016-12-06 23:24:42 -06:00
Serge Hallyn
06f719e501
Merge pull request #53 from vapier/prototypes
...
include getdef.h for getdef_bool prototype
2016-12-06 23:23:17 -06:00
Elan Ruusamäe
f439149cb3
run travis
2016-12-06 01:09:17 +02:00
Mike Frysinger
32c0b283ef
include getdef.h for getdef_bool prototype
...
Otherwise we get build warnings like:
sgroupio.c:255:6: warning: implicit declaration of function 'getdef_bool' [-Wimplicit-function-declaration]
shadowio.c:131:6: warning: implicit declaration of function 'getdef_bool' [-Wimplicit-function-declaration]
2016-12-05 17:15:29 -05:00
Mike Frysinger
6e91297fa2
enable silent build output by default
...
Enable the automake feature to produce silent output by default.
When compiling code, we now see things like:
$ make
CC addgrps.o
CC age.o
CC audit_help.o
...
This can be disabled via configure's --disable-silent-rules or
by passing V=1 to make.
Custom output (like in the man subdirs) don't (yet) respect this
feature. More work will be needed to clean those up.
2016-12-05 16:02:55 -05:00
Mike Frysinger
752ca15da4
man: make clean-local more robust
...
If the subdirs aren't empty, the rmdir calls can fail. Simplify this
code by just using `rm -rf` since that matches what we really want.
2016-12-05 16:02:19 -05:00
Mike Frysinger
e33cb8ae12
switch bz2 dist to xz
...
Since xz is fairly common nowadays, and is typically smaller/faster than
bzip2 for people to decompress, switch shadow over too. We also merge
the two init locations into configure.ac to match newer autotools style.
The min automake version is bumped to 1.11 too since that's when xz was
released.
2016-12-05 15:57:34 -05:00
Mike Frysinger
10bd7bab14
ignore config.cache & dist files
...
config.cache is generated when running `./configure -C`.
The tarballs are generated when running `make dist`.
2016-12-05 15:48:10 -05:00
Mike Frysinger
84f0ae00d2
configure: avoid deprecated AC_INIT/AM_INIT_AUTOMAKE invocation
...
The autoconf/automake guys want AC_INIT to be passed the details of the
package directly rather than going through AM_INIT_AUTOMAKE. Update them
both to use the newer style.
This also allows us to pass in contact details for the project.
We set the minimum autoconf version to 2.64 as that's the first one to
support passing the homepage URL in to AC_INIT. That's a pretty old
release by now, so it shouldn't be a problem.
2016-12-05 15:43:20 -05:00
Serge Hallyn
e3f213305b
update Changelog
2016-12-02 16:15:28 -06:00
Serge Hallyn
d886cf40ef
Merge pull request #48 from t8m/fedora
...
Four simple patches from the Fedora package to merge
2016-12-02 16:14:24 -06:00
Serge Hallyn
d572e3b1f9
update changelog, finally
2016-12-02 13:41:49 -06:00
Serge Hallyn
816bd48c83
Merge pull request #50 from m4sk1n/master
...
update Polish translation
2016-11-25 11:58:14 -06:00
m4sk1n
05563a7832
Merge pull request #1 from m4sk1n/pl-translation-update
...
Add files via upload
2016-11-24 09:16:48 +01:00
m4sk1n
93e3044c6d
Add files via upload
...
81% completed
2016-11-24 09:07:41 +01:00
Serge Hallyn
6825e6c90a
Merge pull request #43 from Blub/suidbins-rule-fixup
...
buildsys: fix suidubins assignments
2016-11-18 20:13:48 -06:00
Tomas Mraz
6401c5b4ee
snprintf() always terminates output with \0
2016-11-15 16:05:44 +01:00
Tomas Mraz
4471e5419d
Keep the permissions of the original file when creating a backup.
2016-11-15 16:04:24 +01:00
Tomas Mraz
2b820c534d
Audit the home directory ownership change.
2016-11-15 16:03:40 +01:00
Tomas Mraz
765993846d
Print error message if SELinux file context manipulation fails.
2016-11-15 16:00:51 +01:00
Serge Hallyn
d9073bb033
Merge pull request #44 from evgeni/man-subuid-spelling
...
man: fix --{add,del}-sub{g,u}ids spelling
2016-11-09 17:05:33 -06:00
Evgeni Golov
efbff6a3d9
man: fix --{add,del}-sub{g,u}ids spelling
...
docs wrongly had a hyphen between sub and uids/gids
2016-11-09 22:23:18 +01:00
Wolfgang Bumiller
61abb4645c
buildsys: fix suidubins assignments
...
These assignments were pasted as is into the Makefile and
ended up as part of a rule. (Usually the .PRECIOUS rule
which is why the build system never attempted to execute it
as commands, hiding the problem.)
Signed-off-by: Wolfgang Bumiller <wry.git@bumiller.com>
Reported-by: Rahel A <ra00177@surrey.ac.uk>
2016-11-05 16:09:07 +01:00
Serge Hallyn
11d1b661db
Merge pull request #42 from jubalh/maint
...
Update README with current maintainer
2016-11-04 09:01:16 -05:00
Michael Vetter
b95b766bc0
Update README with current maintainer
2016-11-02 09:30:05 +01:00
Serge Hallyn
4094dc0c96
Merge pull request #41 from selkfoster/master
...
Remove non-POSIX option in chmod(1) used for src/Makefile.am
2016-10-19 19:29:43 -05:00
Matias A. Fonzo
b7fffe8f7e
Remove non-POSIX option in chmod(1) used for src/Makefile.am
2016-10-18 15:46:27 -03:00
Trần Ngọc Quân
a87e2bcdf1
Update Vietnamese translations
2016-10-06 12:16:21 -05:00
Serge Hallyn
6564241674
Merge pull request #33 from t8m/master
...
Fix regression in useradd not loading defaults properly.
2016-09-21 09:12:15 -05:00
Serge Hallyn
dc5b2a2ec0
Merge pull request #36 from atsampson/master
...
Add missing size args to snprintf calls.
2016-09-20 08:14:28 -05:00
Adam Sampson
924cc34647
Use sizeof rather than hardcoding snprintf's size argument.
2016-09-20 08:04:14 +01:00
Serge Hallyn
68061f2059
release 4.4
2016-09-18 21:38:10 -05:00
Serge Hallyn
67d2bb6e0a
su.c: fix missing length argument to snprintf
2016-09-18 21:31:18 -05:00
Serge Hallyn
99b5feadd9
update translations
2016-09-18 18:23:49 -05:00
Tomas Mraz
507f96cdeb
Fix regression in useradd not loading defaults properly.
...
The get_defaults() has to be called before processing the flags.
Signed-off-by: Tomáš Mráz <tmraz@fedoraproject.org>
2016-08-25 11:20:34 +02:00
Serge Hallyn
6fbc11ce21
configure.ac: release 4.3.1
...
Signed-off-by: Serge Hallyn <serge@hallyn.com>
2016-08-14 23:00:59 -05:00
Serge Hallyn
ff2baed5db
idmapping: add more checks for overflow
...
At this point they are redundant but should be safe. Thanks to
Sebastian Krahmer for the first check.
2016-08-14 21:48:50 -05:00
Serge Hallyn
94da3dc5c8
also check upper for wrap
2016-08-14 21:48:45 -05:00
Serge Hallyn
9df58a7545
Merge pull request #30 from jwilk/spelling
...
man: Fix typos
2016-08-05 11:59:45 -05:00
Serge Hallyn
5b017af90d
Merge pull request #29 from hemio-ev/lower-su-syslog-priority
...
Reduces syslog priority of common usage events
2016-08-05 11:59:15 -05:00
Jakub Wilk
a7a7a1fdea
man: Fix typos
2016-08-05 18:50:51 +02:00
Serge Hallyn
ca0ccaba27
Merge pull request #24 from stoeckmann/typos
...
Fixed typos in new{g,u}idmap tools.
2016-08-04 23:39:25 -05:00
Serge Hallyn
8f1836bad9
Merge pull request #25 from stoeckmann/sigrace
...
Fixed signal races in shadow tools.
2016-08-04 23:38:24 -05:00
Michael Herold
61fc90b268
Reduces syslog priority of common usage events
...
- Log INFO instead of ERR on `su missing-user`
- Log NOTICE/WARN instead of ERR on pam_authenticate failure (wrong password for example)
2016-08-04 22:17:31 +02:00
Sebastian Krahmer
1d5a926cc2
Simplify getulong
...
Use strtoul to read an unsigned long, rather than reading
a signed long long and casting it.
https://bugzilla.suse.com/show_bug.cgi?id=979282
2016-08-03 11:51:07 -05:00