LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-08-2003, 11:54 AM   #1
simalt
LQ Newbie
 
Registered: Sep 2003
Location: ON Earth!
Distribution: Redhat 9
Posts: 5

Rep: Reputation: 0
Unhappy Cannot Create firstname.lastname in Redhat 9.0


I cannot create users in linux redhat 9.0 using firstname.lastname format, any users I try to create it throws up an error.

I can edit the passwd or shadow file manually and create the user entry and home dirs but when I go to change password as root it fails.

I need to create the user with the dot in it so it is consitent with our NT domains.

I think this is a known bug in Redhat 9.0, anyone else come across this, is there a fix for this???

Thanks

Simon
 
Old 10-08-2003, 12:25 PM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Hmmm,
[root@localhost root]# redhat-config-users
Traceback (most recent call last):
File "/usr/share/redhat-config-users/userWindow.py", line 294, in on_userWin_ok_button_clicked
self.parent.ADMIN.addGroup(groupEnt)
RuntimeError: name contains invalid char `.'

Well, it happens in Redhat 8.0 as well. Is this something that Linux/Unix supports? a '.' in a username. No experience, but you may simply have to contend with firstname_lastname

From
http://www.udel.edu/help/unixacct.html
it states

UNIX Username (User ID) -
format: 2-8 lowercase letters - no spaces, numbers or punctuation
marks

There must be a reason.

RO
 
Old 10-09-2003, 06:31 AM   #3
simalt
LQ Newbie
 
Registered: Sep 2003
Location: ON Earth!
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
Red face bug

I think I read somewhere that this is a bug in Redhat 9 but not sure if it is the case.

It should not matter to have a dot in your userid, I find this a bit silly to have to login to NT with firstname.lastname and then have to use a completely different account id in linux, I would expect to be a able to use firstname.lastname there too preferably with the same password.

Since I have a samba server setup to share out a linux share to Windows NT users it is not very good to switch user ids to firstname_lastname as they login to win2k as firstname.lastname with a dot.

Regards

Simon
 
Old 10-09-2003, 10:39 AM   #4
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Inspiration. Start a new thread with 'Can some running other than Redhat add user as test.name userid'.

RO
 
Old 10-09-2003, 01:31 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I haven;t found a way to do it with any gui or cli tools but you can manually add entries or use a comamnd to add with an underscore then change it in the password files.
 
Old 10-09-2003, 03:39 PM   #6
horlix
LQ Newbie
 
Registered: Sep 2003
Location: Swansea, UK
Distribution: redhat
Posts: 16

Rep: Reputation: 0
works fine in rh7.3...
 
Old 10-10-2003, 05:30 AM   #7
simalt
LQ Newbie
 
Registered: Sep 2003
Location: ON Earth!
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
user account with a period

David,

That is true I can create user id manually etc but the password is encrypted so you have to do a bit of jiggery pockery with copy and paste to get the password in encrypted form from say the underlined user to the .user but when it comes to the user changing password again it would fail as it would again try and validate the account and find the dot.

I mean it is not practical, the only way is I would have to change password everytime which defeats the object of keeping it secret.

Regards

Simon
 
Old 10-10-2003, 08:28 AM   #8
simalt
LQ Newbie
 
Registered: Sep 2003
Location: ON Earth!
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
user with dot and samba

Also when you have samba running like me then you are using a different file for samba and it also fails to modify the samba passwd file and it is not similiar to the etc/passwd file so this user with the period does not work in samba.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a dailup coneection in redhat 9.0 venky4mind Linux - Networking 1 05-28-2005 02:10 AM
What file do I burn to create a bootable cd for RedHat 9 Jacksenflamed Linux - Newbie 1 03-15-2004 05:17 PM
Newbie: How Do I create a domain in redhat 9? mrmulla Linux - Networking 4 08-04-2003 03:55 AM
redhat create boot diskl? heero82 Linux - Software 2 07-15-2003 08:09 PM
How do I create redhat 8.0 recover disks? mafy68 Linux - Newbie 5 06-13-2003 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration