Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 37402
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 22920
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: John Barton <jbarton@technicalworks.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
allow-dot-in-usernames.patch Patch to allow '.' in usernames patch John Barton 2004-01-06 09:54 0000 866 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 37402 depends on: Show dependency tree
Bug 37402 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-01-06 09:51 0000
Shadow suite does not allow a dot in usernames. This was originally allowed and
then changed by author of shadow to be denied by default, making it difficult
to migrate from older systems. This also seems to be allowed in other
distributions by default

Reproducible: Always
Steps to Reproduce:
1. Add user test.com
2.
3.

Actual Results:  
useradd: invalid user name 'test.com'

Expected Results:  
Should successfully add user

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.24-1.9.13)
=================================================================
System uname: 2.4.24-1.9.13 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="3dnow apm berkdb crypt foomaticdb gdbm gpm gtk2 libg++ libwww mad mmx
ncurses pam perl python readline slang spell ssl tcpd x86 xml2 zlib"

------- Comment #1 From John Barton 2004-01-06 09:54:19 0000 -------
Created an attachment (id=23244) [details]
Patch to allow '.' in usernames

------- Comment #2 From Josh Grebe (RETIRED) 2004-01-27 10:56:14 0000 -------
This is still happening in sys-apps/shadow-4.0.3-r9, has anyone looked at this?

------- Comment #3 From solar 2004-01-27 17:29:18 0000 -------
With Gentoo reverting behavior of coreutils back to the previous behavior
allowing . in  username would be a security risk when used with chown etc...

Please don't add this patch to shadow.

------- Comment #4 From Josh Grebe (RETIRED) 2004-01-27 19:58:54 0000 -------
from 'man chown'
 chown [options] user[:group] file...

the period is an extension that breaks POSIX, as they clearly admit to under the GNU DETAILS heading.  In fact, the only mention of using a period is in the man page, followed immediately by the statement that it is not portable do do so.  Maybe we should be patching coreutils as well to remove the period, or at least warn users that it is bad?

------- Comment #5 From SpanKY 2004-01-27 20:01:45 0000 -------
actually the latest coreutils had to be patched to add the . back in :P
same with the stupid `head -#` syntax

i complained but no one seemed to listen ... maybe we should file a bug about it

------- Comment #6 From solar 2004-01-27 20:08:29 0000 -------
I'm fine with breaking POSIX standards here.

------- Comment #7 From Josh Grebe (RETIRED) 2004-01-27 20:13:09 0000 -------
If we have to patch coreutils to add the . back to chown because GNU deprecated
it, and it breaks posix to have it, is there an upside that I'm missing?
They've cleaned up several parts of coreutils lately (see
http://bugs.gentoo.org/show_bug.cgi?id=35634 for another example)

------- Comment #8 From SpanKY 2004-01-27 20:17:19 0000 -------
way to not be friendly to the future nedd

coreutils posix issues is now at Bug 39632

personally, i suggest we close this bug as WONTFIX/UPSTREAM

------- Comment #9 From Josh Grebe (RETIRED) 2004-01-27 20:27:25 0000 -------
Going by the information in the above bug, it sounds like we will shortly end
up with shadow doing one thing and coreutils doing another...

------- Comment #10 From solar 2004-01-27 20:45:04 0000 -------
Of course they will. 
shadow will continue it's current behavior of disallowing '.' and coreutils will issue a warning. This warning should stay around for 3-6 months.

It's not the chown one that kills us as much as it's the head/tail problems with a 
ports tree of this size it sure causes alot of errors. We have attempted to work 
around those errors with the portage fixheadtails.eclass but that was far from 
perfect which is why I assume the non POSIX standard has returned to portage.

------- Comment #11 From Seemant Kulleen (RETIRED) 2004-02-02 23:49:41 0000 -------
hi sorry to be late in piping in -- spanks -- I do actually have that on my
todo list to issue the warning about . -- however, I've not yet gotten around
to actually doing it -- if someone has the time and/or inclination to write me
a patch for coreutils which issues a warning about the . syntax, I'm happy to
add it.  As for the patch to revert to old behaviour -- yes that was added back
in because it proved to a be a HUGE pain in the ass to move to the new
behaviour just like that.  There are packages (like ispell) whose make process
relies on the old behaviour, etc etc (in ispell's case, I think also its
runtime behaviour), so the problem is not one that can be solved overnight. 
Additionally, the patch I'd submitted to ispell's author was greeted with
disdain -- the idea in the chap's response was that the old behaviour works on
every other bloody unix, why change it? -- don't shoot me, I'm just the
messenger.

Anyway, solar's right, the new behaviour being suppressed as the default is
intentional, at least for now and the next few months while we attempt to get
everything else fix0red up and patched.  Since coreutils-5.0.91-r4 recognises
both new and old behaviour, we're ok for the moment.  Sorry about this.

------- Comment #12 From Hubert Mercier (RETIRED) 2004-09-21 09:15:16 0000 -------
Hello, i reported a few months ago the probleme in this thread. You can find a
clean patch to solve the problem in it.

Thanks in advance.

The thread : http://bugs.gentoo.org/show_bug.cgi?id=22920

------- Comment #13 From SpanKY 2004-09-21 10:51:11 0000 -------

*** This bug has been marked as a duplicate of 22920 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug