Serge Hallyn
f929bfd90b
Merge pull request #237 from ikerexxe/usermod_fails
...
Check only local groups when adding new supplementary groups to a user
2020-05-01 22:26:41 -05:00
Serge Hallyn
c889ebc2c9
Merge pull request #249 from brauner/coverity
...
travis: reorder sections and add regenerated coverity token
2020-04-25 12:32:13 -05:00
Christian Brauner
a3a1cf6536
travis: reorder sections and add regenerated coverity token
...
Also remove the openssl section since both lxc and lxcfs don't need it
either.
Signed-off-by: Christian Brauner <christian@brauner.io>
2020-04-25 18:45:24 +02:00
Serge Hallyn
7e0e931519
Merge pull request #248 from brauner/coverity
...
travis: add more architectures + enable Coverity
2020-04-25 11:32:23 -05:00
Christian Brauner
97a76bd9e6
travis: add more architectures and Coverity support
...
Now that travis supports more architectures let's make sure we test on
all of them and that we enable Coverity too.
Signed-off-by: Christian Brauner <christian@brauner.io>
2020-04-25 12:59:25 +02:00
Christian Brauner
69332884b1
Merge pull request #247 from jubalh/unusedcpp
...
Remove unused variables
2020-04-25 12:34:49 +02:00
Michael Vetter
992c1723af
Remove unused 'buf' in shadow.c
2020-04-25 12:23:10 +02:00
Michael Vetter
8eee5d03fd
Remove unused variable 'cpp'
2020-04-25 12:10:39 +02:00
Serge Hallyn
77be9c35c7
Merge pull request #244 from sthibaul/master
...
Fix hurd build
2020-04-23 10:56:48 -05:00
Christian Brauner
f7ae4d48f4
Merge pull request #246 from blueskycs2c/stderr-pr
...
check_uid_range : warnings go to stderr
2020-04-20 10:01:27 +02:00
blueskycs2c
1d8487d851
check_uid_range : warnings go to stderr
2020-04-20 10:16:19 +08:00
Christian Brauner
52aba825af
Merge pull request #245 from hallyn/2020-04-17/libmisc
...
remove unused and misleading 'owner' argument from find_new_sub*
2020-04-18 12:32:38 +02:00
Serge Hallyn
25b1a8d591
remove unused and misleading 'owner' argument from find_new_sub*
...
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
2020-04-17 16:32:44 -05:00
Samuel Thibault
5de28353d4
Fix hurd build
...
Do not include <sys/prctl.h> we don't have <sys/capability.h>, we don't
need prctl in that case anyway.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2020-04-17 21:50:48 +02:00
Serge Hallyn
7b36b160f7
Merge pull request #243 from blueskycs2c/uid-pr
...
print a warning from useradd if -u is used with uid number outside ra…
2020-04-16 11:48:21 -05:00
blueskycs2c
00e629c0ba
print a warning from useradd if -u is used with uid number outside range.
2020-04-11 22:45:54 +08:00
Christian Brauner
942f1945bb
Merge pull request #242 from topimiettinen/login-defs-modernize
...
login.defs: warn about weak choices
2020-04-10 16:58:29 +02:00
Topi Miettinen
69301dfa24
login.defs: warn about weak choices
...
According to crypt(5), MD5 and DES should not be used for new
hashes. Also the default number of SHA rounds chosen by libc is orders
of magnitude too low for modern hardware. Let's warn the users about
weak choices.
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-04-10 14:09:55 +03:00
ikerexxe
8762f465d4
useradd: check only local groups with -G option
...
Check only local groups when adding new supplementary groups to a user
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1727236
2020-03-30 13:08:30 +02:00
ikerexxe
140510de9d
usermod: check only local groups with -G option
...
Check only local groups when adding new supplementary groups to a user
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1727236
2020-03-30 13:07:32 +02:00
Serge Hallyn
125a5dc309
Merge pull request #236 from jsoref/with-an
...
spelling: with-an
2020-03-20 22:30:16 -05:00
Serge Hallyn
e78be3df43
Merge pull request #232 from eagleoflqj/master
...
fix typo 登陆->登录
2020-03-20 22:29:55 -05:00
Serge Hallyn
d60b59b156
Merge pull request #226 from ikerexxe/dev1
...
useradd: clarify the useradd -d parameter behavior in man page
2020-03-20 17:45:37 -05:00
ikerexxe
6543c600d8
useradd: clarify the useradd -d parameter behavior in man page
...
Explanation: clarify the useradd -d parameter as it does create directory HOME_DIR if it doesn't exit.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1677005
Changelog: [serge] minor tweak to the text
2020-03-20 17:45:01 -05:00
Josh Soref
5070132ee6
spelling: with-an
2020-03-17 17:09:26 -04:00
eagleoflqj
143b97193d
fix typo 登陆->登录
2020-03-11 18:51:02 -04:00
Geoffrey Krug
2a991a3ce9
Removed hard-coded default mail spool in useradd
...
The useradd program should be consistent with userdel and usermod and use the
MAIL_SPOOL_DIR variable as the default spool, if it is defined. Otherwise,
don't create a new mailbox, because it won't be cleaned up by userdel when run
with the -r flag.
2020-03-11 20:00:09 +00:00
Serge Hallyn
3f2bbcfa91
Merge pull request #229 from edneville/130_segfaults_on_strftime
...
Fix segfault on strftime
2020-03-09 13:17:11 -05:00
ed
8a2e3d500c
Replacing exit with return
2020-03-09 18:01:32 +00:00
Serge Hallyn
c48011d19c
Merge pull request #228 from blueskycs2c/br1
...
fix #223comment at #endif does not match condition of #if
2020-03-09 11:05:27 -05:00
Serge Hallyn
ebe6def4b7
Merge pull request #230 from Frans-Spiesschaert/new_dutch_po_branch
...
updated Dutch translation
2020-03-09 11:00:45 -05:00
Frans Spiesschaert
a8533719ed
updated Dutch translation
2020-03-07 21:55:53 +01:00
ed@s5h.net
c667083c81
Fix segfault when time is unreadable
...
Adding myself to contributors
Closes #130
2020-03-07 17:08:19 +00:00
blueskycs2c
e5bb71b2fd
modify #endif does not match condition of #if in passwd.c
2020-03-05 10:51:39 +08:00
Serge Hallyn
b2753b146a
man/Makefile.am: add HOME_MODE.xml
...
Closes #217
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
2020-02-26 19:57:17 -06:00
Serge Hallyn
724442c3af
Merge pull request #219 from infinnovation-dev/master
...
libmisc: Accept --root=path and --prefix=path option syntax
2020-02-26 19:34:13 -06:00
Serge Hallyn
b6aaaba35e
Merge pull request #215 from imba-tjd/patch-1
...
man(zh_CN): fix typo 现实 -> 显示
2020-02-26 18:13:54 -06:00
Serge Hallyn
fa6c58a773
Merge pull request #216 from ikerexxe/master
...
useradd: doesn't generate /var/spool/mail/$USER with the proper SELinux user identity
2020-02-23 18:00:23 -06:00
ikerexxe
8a1e92aff1
useradd: generate /var/spool/mail/$USER with the proper SELinux user identity
...
Explanation: use set_selinux_file_context() and reset_selinux_file_context() for create_mail() just as is done for create_home()
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1690527
2020-02-19 15:28:41 +01:00
Colin Hogben
12ce42be44
libmisc: Accept --root=path and --prefix=path option syntax
...
Recognise --root=path in addition to --root path (and similarly for
--prefix) to match the syntax accepted by getopt_long.
Fixes #218
2020-02-07 21:57:12 +00:00
谭九鼎
915cc6bb9c
man(zh_CN): fix typo 现实 -> 显示
2020-02-03 22:02:16 +08:00
Serge Hallyn
2cc7da6058
configure.ac: release 4.8.1
...
This is mainly to revert the --sbindir/--bindir commit which broke some
distros
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
2020-01-23 14:56:43 -06:00
Serge Hallyn
142d788c81
update changelog
...
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
2020-01-23 14:37:42 -06:00
Serge Hallyn
33c6a170a5
Merge pull request #212 from t8m/in-subuid-mapping
...
Do not mistake a regular user process for a namespaced one
2020-01-23 09:15:04 -06:00
Tomas Mraz
fd4405b763
Do not mistake a regular user process for a namespaced one
...
In case there is a regular user with a process running on a system
with uid falling into a namespaced uid range of another user.
The user with the colliding namespaced uid range will not be
allowed to be deleted without forcing the action with -f.
The user_busy() is adjusted to check whether the suspected process
is really a namespaced process in a different namespace.
2020-01-21 09:16:10 +01:00
Serge Hallyn
dfceca8427
Merge pull request #210 from t8m/shell-check
...
Make the check for non-executable shell only a warning.
2020-01-20 07:04:51 -08:00
Serge Hallyn
54c1660969
Merge pull request #211 from Frans-Spiesschaert/master
...
updated po file for Dutch
2020-01-20 06:57:13 -08:00
Frans-Spiesschaert
eebcacfae8
po/nl.po
...
updated Dutch translation for shadow version 4.8 (pot file from 2019-12-01).
I updated the translation for Debian
and on request of the Debian package maintainer Bálint Réczey I am creating this pull request
2020-01-17 13:19:09 -08:00
Tomas Mraz
4ed08824e5
Make the check for non-executable shell only a warning.
...
Although it is a good idea to check for an inadvertent typo
in the shell name it is possible that the shell might not be present
on the system yet when the user is added.
2020-01-16 12:59:29 +01:00
Serge Hallyn
3e942adb21
Merge pull request #209 from Duncaen/home-mode
...
add new HOME_MODE login.defs(5) option
2020-01-12 09:39:13 -06:00