LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Usernames starting with numbers?

[ILUG] Usernames starting with numbers?

Brian Foster blf at utvinternet.ie
Fri Jun 7 00:55:46 IST 2002


  | Date: Thu, 6 Jun 2002 21:38:43 +0100
  | From: Robert Synnott <r.synnott at oceanfree.net>
  | 
  |[ ... ]  Tools like 'useradd' etc. say that usernames starting
  | in numbers are invalid, as are unsernames containing appostrophies.
  | However, when added to /etc/passwd manually, these seem to work fine,
  | as long as the home directory, which is just a  mount point anyway in
  | this case, is a valid name.  Can doing this cause any problems?

 possibly.  utilities which accept usernames as arguments/input
 also usually accept UIDs as well.  a username which starts with
 digits "looks like" a number, i.e., a UID, to at least some of
 those utilities (at least historically), and hence use what is
 quite probably the wrong value, and do the wrong thing.¹

 I've no idea what the issue is with an apostrophe?  whilst it's
 a shell meta-character (a quoting convention), that doesn't seem
 (to me) a sufficiently strong justification to dis-recommending
 it's use ....   OTOH, the quality of some shell scripts is so
 poor that maybe it is a sufficient rationale?

cheers!
	-blf-

 ¹ people should really learn to use strtol(3) and friends, and
   learn to use them _properly_, so this sort of problem is less
   like to happen.  (read: "avoid atoi(3) &tc")   grrr.....
--
 Innovative, very experienced, Unix and      | Brian Foster    Dublin, Ireland
 Chorus (embedded RTOS) kernel internals     | e-mail: blf at utvinternet.ie
 expert looking for a new position ...       | mobile: (+353 or 0)86 854 9268
  For a résumé, contact me, or see my website  http://www.blf.utvinternet.ie

    Stop E$$o (ExxonMobile):  «Whatever you do, don't buy Esso --- they
     don't give a damn about global warming.»    http://www.stopesso.com
     Supported by Greenpeace, Friends of the Earth, and numerous others...




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell