Eric W. Biederman
673c2a6f9a
newuidmap,newgidmap: New suid helpers for using subordinate uids and gids
...
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2013-08-05 10:08:46 -05:00
Serge Hallyn
c485cfabd8
usermod: add v:w:V:W: to getopt
...
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2013-08-05 10:08:45 -05:00
Serge Hallyn
5f2e4b18f8
Add LIBSELINUX to newuidmap and newgidmap LDADD
...
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2013-08-05 10:08:45 -05:00
Eric W. Biederman
2cc8c2c0dc
newusers: Add support for assiging subordinate uids and gids.
...
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2013-08-05 10:08:45 -05:00
Eric W. Biederman
d5b3092331
usermod: Add support for subordinate uids and gids.
...
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2013-08-05 10:08:45 -05:00
Eric W. Biederman
87253ca906
useradd: Add support for subordinate user identifiers
...
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2013-08-05 10:08:45 -05:00
Eric W. Biederman
7296cbdbfe
userdel: Add support for removing subordinate user and group ids.
...
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2013-08-05 10:08:45 -05:00
Nicolas François
e8ab31d009
Review 52a38d5509
...
* Changelog: Update documentation of 2013-07-28 mancha entry.
* lib/prototypes.h, lib/encrypt.c: Update splint marker,
pw_encrypt can return NULL.
* lib/encrypt.c: Fix outdated statement on GNU crypt.
* src/chgpasswd.c: Improve diagnostic to user when pw_encrypt
fails and use fail_exit() instead of exit().
* src/chpasswd.c: Likewise.
* src/newusers.c: Likewise.
* src/passwd.c: Likewise when new password is encrypted.
* src/newgrp.c: Improve diagnostic to user and syslog when
pw_encrypt fails. Do not apply 1s penalty as this is not an
invalid password issue.
* src/passwd.c: Likewise when password is checked.
2013-08-04 00:27:53 +02:00
mancha
52a38d5509
crypt() in glibc/eglibc 2.17 now fails if passed
...
a salt that violates specs. On Linux, crypt() also fails with
DES/MD5 salts in FIPS140 mode. Rather than exit() on NULL returns
we send them back to the caller for appropriate handling.
2013-07-28 18:41:11 +02:00
Colin Watson
d172cccd07
Kill the child process group, rather than just the immediate child;
...
this is needed now that su no longer starts a controlling terminal
when not running an interactive shell (closes: Debian#713979)
2013-07-28 14:38:12 +02:00
nekral-guest
9151e673e4
* NEWS: Set release date.
2012-05-25 11:51:53 +00:00
nekral-guest
f100b5ea7e
* src/su.c: non PAM enabled versions: do not fail if su is called
...
without a controlling terminal. Ignore ENXIO errors when opening
/dev/tty.
2012-05-20 16:15:14 +00:00
nekral-guest
8690c74d6a
* src/useradd.c: Cleanup, return code 13 no more used.
...
* man/useradd.8.xml: Document return code 14, and remove return
code 13.
2012-05-20 12:26:54 +00:00
nekral-guest
1a7960421e
* src/useradd.c: Keep the default file as much as possible to
...
avoid issue in case of crash. Use link instead of rename.
2012-05-18 20:28:16 +00:00
nekral-guest
1e0450dfb1
* src/pwunconv.c: Do not check spw_close() return value (file is
...
opened readonly).
* src/grpunconv.c: Do not check sgr_close() return value (file is
opened readonly).
2012-05-18 19:32:32 +00:00
nekral-guest
17deaa39f5
* NEWS, src/userdel.c: Fix segfault when userdel removes the
...
user's group.
2012-05-18 18:56:24 +00:00
nekral-guest
f243d4077d
* NEWS, src/login.c: Log in utmp / utmpx / wtmp also when PAM is
...
enabled. This is not done by pam_lastlog. This was broken on
2011-07-23.
* NEWS, libmisc/utmp.c: Do not log in wtmp when PAM is enabled.
This is done by pam_lastlog.
2012-05-18 17:57:52 +00:00
nekral-guest
0c1cbaede8
2012-02-13 Mike Frysinger <vapier@gentoo.org>
...
* src/passwd.c: (non PAM flavour) Report permission denied when
access to /etc/shadow fails with EACCES.
2012-02-13 20:32:00 +00:00
nekral-guest
cc8be680ca
* src/vipw.c: Do not use a hardcoded program name in the usage
...
message.
2011-12-09 21:35:57 +00:00
nekral-guest
a92f55b609
* src/newusers.c, src/chpasswd.c, src/chgpasswd.c: Harmonize
...
usage messages.
2011-12-09 21:31:39 +00:00
nekral-guest
360f12cd44
* src/usermod.c, man/usermod.8.xml: usermod -Z "" removes the
...
SELinux user mapping for the modified user.
* src/useradd.c: Zflg is #defined as user_selinux non empty.
2011-11-21 22:02:15 +00:00
nekral-guest
bd4a6c9966
* src/passwd.c: Add missing cast.
...
* lib/commonio.c: Avoid multiple statements per line.
* lib/commonio.c: Ignore fclose return value when the file was
open read only or was not changed, or if an error is already
reported.
2011-11-19 22:00:00 +00:00
nekral-guest
4049c0e69e
* src/chage.c: Cast 3rd date_to_str parameter to a time_t
2011-11-19 21:56:10 +00:00
nekral-guest
82d767d121
* libmisc/root_flag.c, src/gpasswd.c, src/chsh.c: Add splint
...
annotations.
* src/pwconv.c, src/pwunconv.c, src/grpconv.c, src/grpunconv.c:
Ignore return value of spw_rewind, pw_rewind, sgr_rewind, and
gr_rewind.
* lib/commonio.h: Both head and tail cannot be owned. Set tail as
dependent.
* src/expiry.c: Ignore return value of expire ().
* src/expiry.c: The catch_signals function does not use its sig
parameter.
* src/userdel.c: Last audit_logger parameter is a
shadow_audit_result, use SHADOW_AUDIT_FAILURE instead of 0.
2011-11-19 21:51:52 +00:00
nekral-guest
6e2c6ffdf7
* src/faillog.c: The fail_max field is a short, use a short also
...
for the max argument of setmax / setmax_one.
* src/faillog.c: Fail with an error message when faillog fails to
write to the faillog database.
2011-11-19 21:44:34 +00:00
nekral-guest
653d22c3e9
* src/gpasswd.c: Change of group password enforces gshadow
...
password. Set /etc/group password to "x".
2011-11-19 14:27:48 +00:00
nekral-guest
29050eadb5
* NEWS, src/userdel.c, man/userdel.8.xml: Add option -Z/--selinux-user.
...
* libmisc/system.c, lib/prototypes.h, libmisc/Makefile.am: Removed
safe_system().
* lib/selinux.c, po/POTFILES.in, lib/prototypes.h,
lib/Makefile.am: Added helper functions for semanage.
* README, src/useradd.c, src/usermod.c, src/userdel.c,
configure.in: Use libsemanage instead of semanage.
2011-11-17 21:51:07 +00:00
nekral-guest
ae0229549d
2011-11-16 Peter Vrabec <pvrabec@redhat.com>
...
* src/Makefile.am: useradd may need the LIBATTR library.
2011-11-16 21:17:43 +00:00
nekral-guest
d2a516a75d
* src/useradd.c: Compil fix when SHADOWGRP is not enabled.
2011-11-16 19:33:51 +00:00
nekral-guest
57f9d5ae9c
* src/chage.c, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
...
src/chsh.c, src/groupadd.c, src/groupdel.c, src/groupmems.c,
src/groupmod.c, src/newusers.c, src/useradd.c, src/userdel.c,
src/usermod.c: Provide the PAM error
message instead of our own, and log error to syslog.
* src/groupmems.c: Exit with exit rather than fail_exit in usage().
* src/newusers.c: Check the number of arguments.
* src/newusers.c: Do not create the home directory when it is not
changed.
* src/useradd.c: Set the group password to "!" rather "x" if there
are no gshadow file.
2011-11-13 16:24:57 +00:00
nekral-guest
f64c88d629
* src/pwck.c: Removed pw_opened.
...
* src/pwck.c: optind cannot be greater than argc.
* src/pwck.c: If spw_opened, then is_shadow is implicitly set.
* src/pwck.c: Do not report passwd entry without x password and a
shadow entry in --quiet mode (no interaction with the caller)
* src/pwck.c: Do not check if the last password change is in the
future if the time is set to 0.
2011-11-13 16:24:39 +00:00
nekral-guest
f54a68ac76
* src/pwck.c: Compile fix for TCB.
2011-11-11 12:00:05 +00:00
nekral-guest
f3afeb9c04
* NEWS, src/newusers.c, man/newusers.8.xml: Add --root option.
2011-11-06 18:40:22 +00:00
nekral-guest
2a2c8190ec
* src/vipw.c: Remove unused variable a.
2011-11-06 18:40:17 +00:00
nekral-guest
f0a63185c9
* src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
...
src/faillog.c, src/gpasswd.c, src/groupadd.c, src/groupdel.c,
src/groupmems.c, src/groupmod.c, src/grpconv.c, src/grpunconv.c,
src/lastlog.c, src/newusers.c, src/passwd.c, src/pwconv.c,
src/pwunconv.c, src/su.c, src/useradd.c, src/userdel.c,
src/usermod.c, src/vipw.c: Align and sort options.
2011-11-06 18:39:59 +00:00
nekral-guest
7d8ca29bea
* NEWS, src/pwck.c, man/pwck.8.xm, src/grpck.c, man/grpck.8.xml:
...
Add --root option.
2011-11-06 18:39:53 +00:00
nekral-guest
f4d95eecc0
Re-indent.
2011-11-06 18:39:42 +00:00
nekral-guest
900943192f
* src/pwck.c, man/pwck.8.xml: Add support for long options.
...
* src/pwck.c, man/pwck.8.xml: Add -h/--help option
* src/grpck.c, man/grpck.8.xml: Add support for long options.
* src/grpck.c, man/grpck.8.xml: Add -h/--help option
2011-11-06 18:39:36 +00:00
nekral-guest
b9163f6348
* src/expiry.c, man/expiry.1.xml: Add support for long options.
...
* src/expiry.c, man/expiry.1.xml: Add -h/--help option
2011-11-06 18:39:30 +00:00
nekral-guest
0530588266
* NEWS, src/chfn.c, man/chfn.1.xml: Add --root option.
2011-11-06 18:39:24 +00:00
nekral-guest
b26f73f427
* src/chfn.c, man/chfn.1.xml: Add support for long options.
...
* src/chfn.c, man/chfn.1.xml: Add -u/--help option
2011-11-06 18:39:19 +00:00
nekral-guest
e2068416c9
* NEWS, src/vipw.c, man/vipw.8.xml: Add --root option.
2011-11-06 18:39:09 +00:00
nekral-guest
a2d23700e4
* NEWS, src/faillog.c, man/faillog.8.xml: Add --root option.
...
* NEWS, src/lastlog.c, man/lastlog.8.xml: Likewise.
* src/faillog.c: Add Prog variable, and prefix error messages with
Prog rather than "faillog".
* src/lastlog.c: Likewise.
* src/lastlog.c: Split usage in smaller messages.
2011-11-06 18:39:03 +00:00
nekral-guest
0857837e64
* NEWS, src/chage.c, man/chage.1.xml: Add --root option. Open
...
audit and syslog after the potential chroot. chage's usage split
in smaller messages.
2011-11-06 18:38:57 +00:00
nekral-guest
d15f2c6214
* src/login.c: re-indent.
...
* src/login.c: Fix support for sub-logins.
2011-11-06 18:38:51 +00:00
nekral-guest
6eb0500d3d
* src/faillog.c, src/chage.c, src/newusers.c, src/su.c: The getopt
...
index of long options is not used.
2011-11-06 18:38:45 +00:00
nekral-guest
7b8c4952a8
* NEWS, src/gpasswd.c, man/gpasswd.1.xml: Add --root option.
...
* src/gpasswd.c: The getopt index of long options is not used.
2011-11-06 18:38:39 +00:00
nekral-guest
4beca611fb
* NEWS, src/chsh.c, man/chsh.1.xml: Add --root option.
...
chsh's usage split in smaller messages.
* src/chsh.c: The getopt index of long options is not used.
2011-11-06 18:38:32 +00:00
nekral-guest
1aa30ba551
* NEWS, src/groupmems.c, man/groupmems.8.xml: Add --root option.
...
Open syslog after the potential chroot.
* src/groupmems.c: The getopt index of long options is not used.
2011-11-06 18:38:26 +00:00
nekral-guest
ec2b9f59f7
* NEWS, src/passwd.c, man/passwd.1.xml: Add --root option.
...
passwd's usage split in smaller messages.
* src/passwd.c: Call sanitize_env() before setting the locales.
2011-11-06 18:38:16 +00:00