LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   user question (https://www.linuxquestions.org/questions/slackware-14/user-question-89130/)

sqn 09-04-2003 05:33 AM

user question
 
I have migrated from suse to slackware and my users, usernames are like: lastname.firtsname

I've noticed that i can't craeate users with "." character.
Can it be done or not?

Thx in advanced

Noryungi 09-04-2003 06:24 AM

Probably not

Try entering the proper information such as:

username: sqn
first name: sergio
last name: quintero

Please note that the user name has nothing to do with the email name, which is probably something you also have to create. Therefore, you could have the following email addresses for the user described above:

sqn@example.net
sergio.quintero@example.net

Hope this helps! :D

sqn 09-05-2003 12:39 AM

for the moment i've solved the problem like this:
Create a user normaly, and after that edit /etc/passwd and add a dot to the username.

For the moment is ok
Thx angain

Cerbere 09-05-2003 04:00 AM

You can edit the adduser file, since it's just a frontend script for the useradd program. Just open /usr/sbin/adduser in your favorite editor and comment out the following lines:

elif [ ! -z "$( echo $LOGIN | grep '\.' )" ]; then
echo "- User '$LOGIN' contains illegal characters (period/dot); please choose another"
unset LOGIN

I don't know whether or not you'll have further troubles with those usernames, though.

Enjoy!
--- Cerbere


All times are GMT -5. The time now is 03:25 AM.