Unable to create new user without lower character

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Unable to create new user without lower character
# 1  
Old 06-22-2017
Unable to create new user without lower character

Hi friends,

I want to create new user BG0001 in SunOS and getting below error
Code:
bash-3.2# useradd -d /home/BG0001 -m -s /bin/sh  BG0001
UX: useradd: BG0001 name should have at least one lower case character.
bash-3.2#
bash-3.2#

OS version is as below
Code:
bash-3.2# cat /etc/release
                   Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011
bash-3.2#

Please suggest

Last edited by rbatte1; 06-22-2017 at 04:58 AM.. Reason: Added CODE tags
# 2  
Old 06-22-2017
Well it is not in UNIX philosophy to use upper case for names e.g commands, users etc... as UPPERCASE is more reserved for VARiables names as you see when you set your environment... What account do you use to create a user? Is it in uppercase?
# 3  
Old 06-22-2017
Hi VBE,
we are using root user to create new users
# 4  
Old 06-22-2017
I do not know enough AIX to give an exact answer. Many UNIX variants have a file that controls what characters are required in passwords. This sounds like a limitation of a similar security setting, which if you do not understand, is very likely a bad thing to alter.

Is this some kind of a specific requirement? As VBE mentioned, most unix usernames are lowercase.
# 5  
Old 06-22-2017
FYI, it's creating the user, it's just warning you that you should use a mix of upper and lower case.

go check /etc/passwd
# 6  
Old 06-22-2017
You can create an account with a user name that does not contain any lowercase letters, but that poor user will curse you every time they try to login if you do so. When you login to a UNIX system (such as Solaris release 10) with a user name that doesn't contain any lowercase letters, the system will assume that you are logging in from a device (such as a TTY Model 33 teletype) that only has uppercase letters. To login as BG0001, they will need to type in the string \B\G001 and any uppercase characters in their password will also have to be escaped. After they have successfully logged in (if they are able to do so), they'll need to use stty to tell the TTY subsystem that the terminal emulator they're using does understand both uppercase and lowercase letters. Then that user will need to remember the different possible modes they might be working in whenever they try to change their password, enter their user name, type commands into their shell, etc.

The automated scripts that set up new user accounts complain about uppercase only user names for a reason. I strongly encourage you to heed the warning provided by the useradd warnings.
This User Gave Thanks to Don Cragun For This Post:
# 7  
Old 06-22-2017
Don, while I don't doubt your statement on whatever *nix you use. I've not found this to be the case on Solaris 11. I have several accounts on my systems that don't have lower case letters in their usernames and I have never experienced the difficulties you describe.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to create a ftp user only

Hi all I am facing difficulties when using the useraddcommand. when running useradd -u 60006 -g 100 -d /opt/xxx/yyy/z -m -s /bin/false ftpuser It does create the user, but with a wrong home directory. It creates its home directory at /home/ftpuser Please can you help? (2 Replies)
Discussion started by: fretagi
2 Replies

2. HP-UX

[Solved] Unable to change/create home dir for particular user

Hi all I wanted to change the home dir for a user, but when using smh : SMH->Accounts for Users and Groups->Local Users->Modify User ---------------------------------------------------------------------------------------------------------------------------------------------- * Required... (8 Replies)
Discussion started by: fretagi
8 Replies

3. Shell Programming and Scripting

How to ignore case(upper and lower) from user input?

Hi, In my script it takes the input from the user. i.e. sys or system. How can i make it case insensitive in my code. if || ; then echo "valid" Any help is appreciated. Thanks, priya (4 Replies)
Discussion started by: priya001
4 Replies

4. Solaris

Unable to create or delete a directory in /usr with root user

Hi All, I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as: Unable to remove directory jdk: Read-only file system Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Discussion started by: Pshah
4 Replies

5. Red Hat

Unable to create user in linux

Hi $ uname -a Linux xyz 2.6.18-128.0.0.0.2.el5 #1 SMP Wed Jan 21 05:17:33 EST 2009 x86_64 x86_64 x86_64 GNU/Linux I am unable to add a new user getting following # id uid=0(root) gid=0(root)... (5 Replies)
Discussion started by: ankurk
5 Replies

6. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

7. Solaris

Unable to create folder as a user

Hi All, I am trying to create a folder in /export/home/user1 directory as a user1 but I am getting the error message as -bash-3.00$ mkdir abc mkdir: Failed to make directory "abc"; Permission denied Also I tried creating the folder but it fails too -bash-3.00$ touch abc touch: cannot... (2 Replies)
Discussion started by: Manjunath K V
2 Replies

8. UNIX for Advanced & Expert Users

unable to extract Trademark(™) Character

Hello All, I am trying to extract a trademark character (™) from a varchar column in a DB2 Table. The result is to be placed in a sequential file in an AIX environment. After the Extraction is complete when I view the extracted file I noticed that in place of the (™) Character another... (5 Replies)
Discussion started by: cosec
5 Replies

9. AIX

User unable to create a file over 2 GB's in size

Hello, this is my first post. I have a user who cannot create a file over 2 GB's in size eventhough the FS is large file enabled and I added a special stanza in /etc/security/limits to allow an unlimited file size for this particular user (user1 - see below). ibm:/home/root (4062)#cat... (7 Replies)
Discussion started by: AIXtexas
7 Replies

10. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

Hi all, I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
Login or Register to Ask a Question