shadow/man
Bostjan Skufca a113b87c45 newuidmap/newgidmap: added support for user matching by UID in /etc/sub[ug]id
Until now only exact username specification in /etc/sub[ug]id file allowed the
mapping. This prevented normal use for those users who use multiple usernames
with the same UID, as it rejected mapping even though it was allowed for
another username with the same UID.

This patch initially retains the old behaviour, for performance's sake. In the
first pass, new[ug]idmap only searches for exact username match.
If that yields no valid results, it continues into another loop, which does UID
resolution and comparison. If either definition (numeric UID mapping
specification or mapping specification for another username with the same UID as
current username) is found, it is used.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2014-09-17 15:48:10 -05:00
..
cs * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
da * NEWS, man/generate_mans.mak: Generate manpages in man1, man3, 2012-05-20 10:18:33 +00:00
de * NEWS, man/generate_mans.mak: Generate manpages in man1, man3, 2012-05-20 10:18:33 +00:00
es * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
fi * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
fr Allow disabling of subordinate IDs. 2013-08-11 15:46:59 +02:00
hu * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
id * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
it * NEWS, man/generate_mans.mak: Generate manpages in man1, man3, 2012-05-20 10:18:33 +00:00
ja Syntax fix in Japanese manpage 2013-07-29 10:18:41 +02:00
ko * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
login.defs.d Improve documentation. 2013-08-15 17:30:20 +02:00
pl * NEWS, man/generate_mans.mak: Generate manpages in man1, man3, 2012-05-20 10:18:33 +00:00
po Update translation files. 2013-08-23 20:29:43 +02:00
pt_BR * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
ru * NEWS, man/generate_mans.mak: Generate manpages in man1, man3, 2012-05-20 10:18:33 +00:00
sv * NEWS, man/generate_mans.mak: Generate manpages in man1, man3, 2012-05-20 10:18:33 +00:00
tr * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
zh_CN * NEWS, man/generate_mans.mak: Generate manpages in man1, man3, 2012-05-20 10:18:33 +00:00
zh_TW * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
.gitignore 2012-02-13 Mike Frysinger <vapier@gentoo.org> 2012-02-13 20:04:40 +00:00
chage.1.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
chfn.1.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
chgpasswd.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
chpasswd.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
chsh.1.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
config.xml.in * man/*.xml, man/config.xml.in: Add source and version 2011-07-08 19:49:09 +00:00
expiry.1.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
faillog.5.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
faillog.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
generate_mans.mak Allow disabling of subordinate IDs. 2013-08-11 15:46:59 +02:00
generate_translations.mak * man/zh_CN/, man/zh_CN/Makefile.am: Added directory, and zh_CN 2011-06-03 21:06:23 +00:00
gpasswd.1.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
groupadd.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
groupdel.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
groupmems.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
groupmod.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
groups.1.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
grpck.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
gshadow.5.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
id.1.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
lastlog.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
limits.5.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
login.1.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
login.access.5.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
login.defs.5.xml login.defs.5: Document the new variables in login.defs 2013-08-05 10:08:45 -05:00
logoutd.8.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
Makefile.am Allow disabling of subordinate IDs. 2013-08-11 15:46:59 +02:00
newgidmap.1.xml man: newuid and newgid: point out that root must be allocated subuids 2014-06-13 09:41:09 -05:00
newgrp.1.xml Fix encoding. 2013-08-23 20:29:42 +02:00
newuidmap.1.xml man: newuid and newgid: point out that root must be allocated subuids 2014-06-13 09:41:09 -05:00
newusers.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
nologin.8.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
passwd.1.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
passwd.5.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
porttime.5.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
pwck.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
pwconv.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
sg.1.xml Fix encoding. 2013-08-23 20:29:42 +02:00
shadow.3.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
shadow.5.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
su.1.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
suauth.5.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
subgid.5.xml newuidmap/newgidmap: added support for user matching by UID in /etc/sub[ug]id 2014-09-17 15:48:10 -05:00
subuid.5.xml newuidmap/newgidmap: added support for user matching by UID in /etc/sub[ug]id 2014-09-17 15:48:10 -05:00
sulogin.8.xml * man/*.xml: Add author based on copyright statement. 2012-05-25 11:45:21 +00:00
useradd.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
userdel.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
usermod.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00
vipw.8.xml Avoid spaces between <option> and <replaceable> 2013-08-23 20:29:40 +02:00