Re: About valid and invalid user names

2005-02-09 Thread Marc Haber
On Wed, 09 Feb 2005 09:51:18 +0100, Christophe Chisogne <[EMAIL PROTECTED]> wrote: >Marc Haber a écrit : >> By default, adduser will verify the user against a configurable >> regexp, default being the most conservative ^[a-z][a-z0-9\-]*$. The >> --force-badname option will change the regexp to a ha

Re: About valid and invalid user names

2005-02-09 Thread Christophe Chisogne
Marc Haber a écrit : By default, adduser will verify the user against a configurable regexp, default being the most conservative ^[a-z][a-z0-9\-]*$. The --force-badname option will change the regexp to a hardcoded ^[-\._A-Za-z0-9]*\$?$, allowing users to happily hang themselves. To use Samba as a w

Re: About valid and invalid user names

2005-02-08 Thread Marc Haber
On Wed, 9 Feb 2005 00:31:13 +0100, Michelle Konzack <[EMAIL PROTECTED]> wrote: >It works since more then 4 years :-) For you. Greeting -- -- !! No courtesy copies, please !! - Marc Haber | " Questions are the | Mailadresse im Header Mannh

Re: About valid and invalid user names

2005-02-08 Thread Michelle Konzack
Am 2005-02-08 23:50:07, schrieb Andreas Rottmann: > Michelle Konzack <[EMAIL PROTECTED]> writes: > > It works since WOODY... > > I can not call it "recently". > > > Well, if you did, you could argue that Debian releases frequently ;) OK, if you see it from this side :-) It works since more then 4

Re: About valid and invalid user names

2005-02-08 Thread Andreas Rottmann
Michelle Konzack <[EMAIL PROTECTED]> writes: > Am 2005-02-05 17:21:28, schrieb Bernd Eckenfels: > >> Why not make it an configurable RE? You cant avoid ppl breaking their >> systems, but you can help them to enforce their policy. For example : may be >> fine on non-passwd systems (however some too

Please test adduser 3.61 in experimental (was: About valid and invalid user names)

2005-02-07 Thread Marc Haber
On Sun, 06 Feb 2005 18:06:17 +0200, Petri Latvala <[EMAIL PROTECTED]> wrote: >On Sun, 2005-02-06 at 12:15 +0100, Marc Haber wrote: >> By default, adduser will verify the user against a configurable >> regexp, default being the most conservative ^[a-z][a-z0-9\-]*$. The >> --force-badname option will

Re: About valid and invalid user names

2005-02-06 Thread Marc Haber
On Sun, 06 Feb 2005 18:06:17 +0200, Petri Latvala <[EMAIL PROTECTED]> wrote: >On Sun, 2005-02-06 at 12:15 +0100, Marc Haber wrote: >> By default, adduser will verify the user against a configurable >> regexp, default being the most conservative ^[a-z][a-z0-9\-]*$. The >> --force-badname option will

Re: About valid and invalid user names

2005-02-06 Thread Petri Latvala
On Sun, 2005-02-06 at 12:15 +0100, Marc Haber wrote: > By default, adduser will verify the user against a configurable > regexp, default being the most conservative ^[a-z][a-z0-9\-]*$. The > --force-badname option will change the regexp to a hardcoded > ^[-\._A-Za-z0-9]*\$?$, allowing users to happ

Re: About valid and invalid user names

2005-02-06 Thread Marc Haber
On Sun, 06 Feb 2005 12:31:39 +0100, Florian Weimer <[EMAIL PROTECTED]> wrote: >The current --force-badname check is /^[A-Za-z_][-_A-Za-z0-9]*\$?$/. >Wouldn't it make more sense to add the "." just to the second >character class? That one wouldn't solve the "I want my usernames to start with a digi

Re: About valid and invalid user names

2005-02-06 Thread Florian Weimer
* Marc Haber: > By default, adduser will verify the user against a configurable > regexp, default being the most conservative ^[a-z][a-z0-9\-]*$. The > --force-badname option will change the regexp to a hardcoded > ^[-\._A-Za-z0-9]*\$?$, allowing users to happily hang themselves. This > gives the

Re: About valid and invalid user names

2005-02-06 Thread Marc Haber
On Sat, 05 Feb 2005 13:38:36 +0100, Marc Haber <[EMAIL PROTECTED]> wrote: >adduser has two bug reports open where people are asking for user name >rules to be relaxed. One report wants "." to be allowed in user names, >another wants usernames to start with numbers. > >May I ask for your opinion bef

Re: About valid and invalid user names

2005-02-05 Thread Bernd Eckenfels
On Sat, Feb 05, 2005 at 02:47:37PM -0200, Henrique de Moraes Holschuh wrote: > Please don't give people this much rope to hang themselves with *so easily*. Why dont u think they dont change the name of the user in the passwd?! I dont think it is needed to play big daddy microsoft here. If somebod

Re: About valid and invalid user names

2005-02-05 Thread Michelle Konzack
Am 2005-02-05 11:13:50, schrieb Steve Greenland: > According the SUS section that Kurt quoted, leading digits are equally > acceptable. I think it might be reasonable to accept leading digits when > there is at least one non-digit in the name. Agreed. > Steve Greetings Michelle -- Linux-User

Re: About valid and invalid user names

2005-02-05 Thread Michelle Konzack
Am 2005-02-05 17:21:28, schrieb Bernd Eckenfels: > Why not make it an configurable RE? You cant avoid ppl breaking their > systems, but you can help them to enforce their policy. For example : may be > fine on non-passwd systems (however some tools will have trouble with that). > chown was recentl

Re: About valid and invalid user names

2005-02-05 Thread Henrique de Moraes Holschuh
On Sat, 05 Feb 2005, Marc Haber wrote: > On Sat, 5 Feb 2005 14:47:37 -0200, Henrique de Moraes Holschuh > <[EMAIL PROTECTED]> wrote: > >Because people will use it to enable users with start with a digit, since > >they certainly don't know better or they would never have asked for this. > > Right n

Re: About valid and invalid user names

2005-02-05 Thread Florian Weimer
* Marc Haber: > On Sat, 05 Feb 2005 17:21:28 +0100, Bernd Eckenfels > <[EMAIL PROTECTED]> wrote: >>Why not make it an configurable RE? > > I am quite reluctant with a so big change in a base package, ranking > at #1 in popcon, so soon before sarge release. The check is on a very common code path.

Re: About valid and invalid user names

2005-02-05 Thread Marc Haber
On Sat, 5 Feb 2005 14:47:37 -0200, Henrique de Moraes Holschuh <[EMAIL PROTECTED]> wrote: >Because people will use it to enable users with start with a digit, since >they certainly don't know better or they would never have asked for this. Right now, we have users patching the adduser "binary" to

Re: About valid and invalid user names

2005-02-05 Thread Marc Haber
On Sat, 05 Feb 2005 17:21:28 +0100, Bernd Eckenfels <[EMAIL PROTECTED]> wrote: >Why not make it an configurable RE? I am quite reluctant with a so big change in a base package, ranking at #1 in popcon, so soon before sarge release. Greetings Marc -- -- !! No

Re: About valid and invalid user names

2005-02-05 Thread Steve Greenland
On 05-Feb-05, 10:47 (CST), Henrique de Moraes Holschuh <[EMAIL PROTECTED]> wrote: > > Because '.' is POSIX, thus valid. And not accepting the '.' is a damn > bug in any POSIX-compliant utility. According the SUS section that Kurt quoted, leading digits are equally acceptable. I think it might

Re: About valid and invalid user names

2005-02-05 Thread Henrique de Moraes Holschuh
On Sat, 05 Feb 2005, Bernd Eckenfels wrote: > In article <[EMAIL PROTECTED]> you wrote: > > On Sat, 05 Feb 2005, Marc Haber wrote: > >> adduser has two bug reports open where people are asking for user name > >> rules to be relaxed. One report wants "." to be allowed in user names, > >> another wan

Re: About valid and invalid user names

2005-02-05 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > On Sat, 05 Feb 2005, Marc Haber wrote: >> adduser has two bug reports open where people are asking for user name >> rules to be relaxed. One report wants "." to be allowed in user names, >> another wants usernames to start with numbers. > > Allowing the

Re: About valid and invalid user names

2005-02-05 Thread Petri Latvala
On Sat, 2005-02-05 at 16:39 +0100, Andreas Barth wrote: > IMHO even the dot is, eh, difficult. Consider a chown user.group file. if (no_such_username) { chown(); chgrp(); } else { chown(); } If there is such an username and the user meant to change both user and group, it's his own fault for not

Re: About valid and invalid user names

2005-02-05 Thread Andreas Barth
* Henrique de Moraes Holschuh ([EMAIL PROTECTED]) [050205 16:35]: > On Sat, 05 Feb 2005, Marc Haber wrote: > > adduser has two bug reports open where people are asking for user name > > rules to be relaxed. One report wants "." to be allowed in user names, > > another wants usernames to start with

Re: About valid and invalid user names

2005-02-05 Thread Henrique de Moraes Holschuh
On Sat, 05 Feb 2005, Marc Haber wrote: > adduser has two bug reports open where people are asking for user name > rules to be relaxed. One report wants "." to be allowed in user names, > another wants usernames to start with numbers. Allowing the dot is ok. I do think that usernames starting with

Re: About valid and invalid user names

2005-02-05 Thread Petter Reinholdtsen
[Marc Haber] > adduser has two bug reports open where people are asking for user name > rules to be relaxed. One report wants "." to be allowed in user names, > another wants usernames to start with numbers. > > May I ask for your opinion before denying or following the requests? Personally, I pr

Re: About valid and invalid user names

2005-02-05 Thread Michelle Konzack
Am 2005-02-05 14:18:32, schrieb Wim De Smet: > I think the discussion came up earlier here. IIRC the conclusion was > that it could be relaxed for .'s (don't know about numbers). Although > it can cause confusion with chown a.b format. But chown should now be > patched to behave correctly on chown

Re: About valid and invalid user names

2005-02-05 Thread Alastair McKinstry
On Sath, 2005-02-05 at 13:38 +0100, Marc Haber wrote: > Hi, > > adduser has two bug reports open where people are asking for user name > rules to be relaxed. One report wants "." to be allowed in user names, > another wants usernames to start with numbers. > > May I ask for your opinion before de

Re: About valid and invalid user names

2005-02-05 Thread Wim De Smet
On Sat, Feb 05, 2005 at 01:38:36PM +0100, Marc Haber wrote: > Hi, > > adduser has two bug reports open where people are asking for user name > rules to be relaxed. One report wants "." to be allowed in user names, > another wants usernames to start with numbers. > > May I ask for your opinion bef

Re: About valid and invalid user names

2005-02-05 Thread Kurt Roeckx
On Sat, Feb 05, 2005 at 01:38:36PM +0100, Marc Haber wrote: > Hi, > > adduser has two bug reports open where people are asking for user name > rules to be relaxed. One report wants "." to be allowed in user names, > another wants usernames to start with numbers. > > May I ask for your opinion bef

About valid and invalid user names

2005-02-05 Thread Marc Haber
Hi, adduser has two bug reports open where people are asking for user name rules to be relaxed. One report wants "." to be allowed in user names, another wants usernames to start with numbers. May I ask for your opinion before denying or following the requests? Greetings Marc -- --