On Thursday 07 Aug 2003 9:06 am, Vinayakam Murugan wrote:
To test it I added a user "kapilkarekar". Then I manually edited the files /etc/passwd and /etc/shadow. In these files I changed "kapilkarekar" to "kapil.karekar". It works !!
Try doing passwd kapil.karekar. It doesn't work. :-)
Yes, "adduser kapil.karekar" does not work. However you could modify the adduser script to by changing the regular expression being used for validation. It would then accept "kapil.karekar" as a valid user. Just speculating ... haven't tried it myself ... coz never felt the need.
BTW which distro are you using? In RH 9 there is no /etc/sbin/adduser. There is a /usr/sbin/adduser which is a binary.
I am using the Debian distribution with linux kernel version 2.4.20-xfs. Even in Debian the path is /usr/sbin/adduser :-P which is a perl script.
Happy hacking, Kapil Karekar