dot allowed adduser/useradd

Guy Fraser guy at incentre.net
Tue Feb 3 17:36:45 UTC 2004


Balint Cristian wrote:

>Hi !
>
>	I already digged maillist, i understand why cannot be dot in the username
>while i "adduser", my Q is that if there is some workaround or some patch, i really need to allow dot in usernames
>it is to ugly to modify /etc/pass entry's.
>	I looket too at src.rpms i coud not figure out where to touch, i see no redhatish patch wich remove the dot feauture
>and in tarball is difficult to find out.
>
>Any sugestion ?
>
>cristian
>  
>
Just a minute...

IIRC you can double quote the username and group name using chown to allow dots.

Example:
# touch some-file
# chown "joe.user" some-file
# ls -l some-file

>-rw-r--r--    1 joe.user root            0 Feb  3 10:31 some-file

For the example I used adduser to add "joeuser", then I used vipw to modify "joeuser" to be "joe.user" in the password and shadow files.

It appears as though adduser and useradd check to see if there is a
dot and complains if there is.






More information about the fedora-list mailing list