Unix user ID's case-sensitive?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unix user ID's case-sensitive?
# 1  
Old 12-13-2003
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.?
# 2  
Old 12-13-2003
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 Smilie

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
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
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Please help me in using case sensitive command

Hello All, Please help me with this I need to create a cronjob that should delete all files which are older than 30days with '*.txt' and should not delete files with '*TEST*.txt' either file name TEST is upper or test lower case sensitive here's the script /DIR -type f -name '*.txt'... (7 Replies)
Discussion started by: krish_007
7 Replies

2. Shell Programming and Scripting

Repeated lines-case sensitive

Hi, users file contains below names i have a requirement to keep only one case sensitive user. For e.g if user name is "aaa" then only aaa should be there in the file and other matching users(AAA,aaA) should be deleted. Tried multiple options but no luck can you please help. aaa abc AAA... (2 Replies)
Discussion started by: Satyak
2 Replies

3. Shell Programming and Scripting

Case sensitive in If loop .

Hi All, select app from the menu: ABC DEF GHI JKL ALL # ALL will select all the apps in the menu echo "Enter your option" read option; if then <execute the below command> elif # option is the 1 selection from menu...not ALL <execute the below command> else (14 Replies)
Discussion started by: Devaraj A
14 Replies

4. Shell Programming and Scripting

Case sensitive awk file split

Hello all, This is my first thread so please let me know if I am doing anything wrong or not following etiquette. I have an input file that looks like 123a12345 345a12445 245a66792 245A12345 215A23566 and I want output files that look like a.txt 123a12345 345a12445 245a66792 ... (7 Replies)
Discussion started by: monstrousturtle
7 Replies

5. UNIX for Advanced & Expert Users

find iname is being case sensitive

Can someone please tell me why iname is being case sensitive with this? $ find /media -iname *load* 2>/dev/null /media/Part 2/stuff/Downloads /media/Part 1/Application Data/Mozilla/Firefox/Profiles/wnul4kj4.irc/chatzilla/downloads /media/Part 1/Bob_5-22-2010/Application... (5 Replies)
Discussion started by: cokedude
5 Replies

6. UNIX for Dummies Questions & Answers

How to take parameters as non case sensitive

Is there a way for me to take a parameter then store it in a variable and use its value as non case sensitive? Ex. Lets say i have a parameter which contains "Hey". Then im gonna store it to GR using GR=$1. CL=/install/$GR.g How can i make GR non case sensitive so that the... (1 Reply)
Discussion started by: khestoi
1 Replies

7. Solaris

Tcp_conn_req_max_q (CASE-sensitive?)

I was instructed by my superior to change kernel parameter, adding up this parameter to /etc/system. Server is Solaris 10 on SPARC. Tcp_conn_req_max_q 1024In my Google search, all I know that the sentence is in small case (tcp_conn_req_max_q) but as you can see above, instruction given... (4 Replies)
Discussion started by: Olli.Lang
4 Replies

8. Shell Programming and Scripting

Ignore case sensitive in Case Switch

In a Case switch, how to ignore case sensitive in the test: e.g. case "$field" in "TEST) action1;; *) action2;; esac How to go in action1 in case of $field = TEST , or Test , or test or .... without enumerating all possibilities... Thanks,... (1 Reply)
Discussion started by: annelisa
1 Replies

9. UNIX for Dummies Questions & Answers

how to disable case sensitive on RHEL ?

Hi all, Im newbie, can i disable case sensitive on RHEL environment, and how? Thank you. (2 Replies)
Discussion started by: blesets
2 Replies

10. UNIX for Dummies Questions & Answers

Is Hostname Case sensitive ?????

Hello users, I have a question ? I was just wondering whether the hostname on unix systems are case sensitive. For example in the system which I work. ping TestHost and ping testhost gives me the same output i.e I get the reply from the remote host Is this applicable for all... (3 Replies)
Discussion started by: ajphaj
3 Replies
Login or Register to Ask a Question