The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
case sensitive "if [ -e $file ]"? jul Shell Programming and Scripting 2 05-08-2008 05:48 AM
Looking for specific user ID's from the passwd file LinuxRacr Shell Programming and Scripting 8 08-29-2007 12:37 AM
Ignore case sensitive in Case Switch annelisa Shell Programming and Scripting 1 07-13-2006 01:36 AM
how to disable case sensitive on RHEL ? blesets UNIX for Dummies Questions & Answers 2 04-02-2006 06:47 PM
Is Hostname Case sensitive ????? ajphaj UNIX for Dummies Questions & Answers 3 02-16-2006 10:10 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-13-2003
Registered User
 

Join Date: Dec 2003
Location: Ayer, MA
Posts: 2
Unix user ID's case-sensitive?

It has been quite a while since I used UNIX. I am developing
a security system and I was wondering if UNIX and/or LINUX
user ID's are case-sensitive.

i.e. can user 'daveb' and 'Daveb' exist on the same system with
completely different authorizations/priorities, etc.?
Forum Sponsor
  #2  
Old 12-13-2003
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,493
No, for example, sending mail to Neo, NEO, neO or neo, etc. will all reach the same mailbox. If mail was rejected because the case didn't match, lots of mail would be rejected

Having said that, the acounts in the password file are case sensitive. So Root is not the same as root, is not the same as ROOT. For example, if the password file says 'neo' you cannot su to Neo.
Code:
www# su Neo
Unknown id: Neo
I would have to test to see if there were accounts "neo" and also "Neo" in the password file if mail would find it's way to the right mailbox...... anyone?

Neo
  #3  
Old 12-14-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
This is actually a difficult question. My answer is that I would never depend on being able to create two accounts like daveb and daveB. And as a system admininistrator I would prohibit it on all systems that I administer. But as a programmer, I would insure that programs work correctly iif two such accounts are encountered.

Neo mentions mail and that is correct. Internet mail must ignore case and so daveb@xyz.org and daveB@xyz.org are the same address. The mail problem would not be impossible to solve but it would be very hard. One of the accounts will need an external mail address that doesn't match the user name. This may require writing a custom delivery agent. I suspect that "mailx Neo" and "mailx neo" would both work. But if it doesn't work, I certainly would not want to call the vendor and complain. And in any case, "mailx neo@localhost" and "mailx Neo@localhost" could not both work.

I'm dating myself here, but terminals originally were not multicase. They were upper case only. Unix had support for that environment. It is mostly gone, but some versions still have various pieces left. On HP-UX, if you sign on as DAVEB, the system will assume that you meant daveb and that you are using a terminal that cannot handle lower case.

Because of these problems, many adduser programs will disallow this sort of thing. But if you manually edit the passwd file, you will probably succeed in getting it to work.

So don't do that, you will regret it. But don't assume that no one else has done it. And be aware that many programmers have assumed that no one has done it.
  #4  
Old 12-14-2003
Registered User
 

Join Date: Dec 2003
Location: Ayer, MA
Posts: 2
I realize that it would be possible to create a system that would
allow case-sensitive ID's, if only for the convenience of the system
administrator with 2 or more users wanting the same alphabetic
characters for their ID. I realize other systems have probably
already done this, but I was mainly interested in whether or not
UNIX/LINUX has had this capability added since I last used UNIX.

The system I have created does not interface directly with the
internet or email system, so there will not be any email conflicts.
The system processes files and allows private communications
over an intranet system.

In developing a new product, the developer tries to give their
product additional capabilities that set it apart from other entries.
This new capability for the system I have created may be rarely
used. But if it IS used once in a while, then I feel it was worth
while.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0