User Creation


 
Thread Tools Search this Thread
Operating Systems Solaris User Creation
# 1  
Old 05-22-2009
User Creation

i am trying to create a user on solaris 10. it is not taking user name with more than ten characters. which file i need to edit to do this setting.
# 2  
Old 05-22-2009
u can go through -

/usr/include/limits.h is listed in the man page for useradd but I am not sure if is it possible to chang that file.
# 3  
Old 05-24-2009
Changing limits.h will only affect other commands if they are recompiled with that amended include file.

The best bet is to stick to 10 characters or less for the username and ensure the user's full name goes into the gecos field to enable searches on the user's full name, e.g.:
Code:
# getent passwd | grep "full name"

# 4  
Old 05-24-2009
Quote:
Originally Posted by raynu.sharma
it is not taking user name with more than ten characters.
Did you check it doesn't ?

I did with Solaris Express (Solaris 10 should behave the same) and the OS accepts to create user accounts with quite long login names. Those with more than eight characters (not ten) will trigger a warning. The reason is these accounts names might be truncated or simply confuse some commands and/or other OSes. Other warnings will be triggered if the first character isn't alphabetic, if all characters are uppercase or if non alphanumeric characters are used.

That doesn't prevent the account to be created though. Moreover, Solaris accepts accounts stored in external LDAP directories which haven't such a limitation in login names.
# 5  
Old 05-25-2009
ya i checked
it only give warning however user get created.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automatic User Creation

Hello everybody, I'm new to sh scripting and relatively new to linux in general which is why I've come here for assistance. I have been attempting to make a shell script which automatically creates user accounts from a file list and further creating directories and moving files into it etc.... (3 Replies)
Discussion started by: charlieabee
3 Replies

2. UNIX for Dummies Questions & Answers

User creation - query

Hi, I want to create a user using useradd -m test. How can I restric the user not to change his directory from his home dir? Thanks, Suresh (2 Replies)
Discussion started by: suresh3566
2 Replies

3. Solaris

NIS user creation

Hi can anyone help me how to create a NIS user by editing the files like Passwd,group, Netgroup,auto.home and Aliases using the "enis" utility? Please do the needful................................ (4 Replies)
Discussion started by: Revathi@1
4 Replies

4. Shell Programming and Scripting

User creation script

Hi Gems.. I am working out on project of creating a mass user on 100 server. Please help me with script where i can create an user id of new 80 user using shell script Thanks in advance. Indrajit Bhagat (1 Reply)
Discussion started by: indrajit_renu
1 Replies

5. AIX

User creation

hi seniors i want to create the users like when the user try to login it should not should not promt for passwd is it possible to create users like this please help me (6 Replies)
Discussion started by: senmak
6 Replies

6. Solaris

Need help with user creation

Hello guys, i have a problem where i cant create a user and here some problem that i encounter. 1. /etc/passwd seems locked. 2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created. # useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s... (2 Replies)
Discussion started by: brew
2 Replies

7. Red Hat

User creation

Hi Thanks in advance. How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies

8. Solaris

User creation

Hi all, I want to create one user with full permissions to one directory called /opt/tivoli/tsm/client/ba/bin. Name for the user Tivoli Thanks & Regards Babu (7 Replies)
Discussion started by: lbreddy
7 Replies

9. UNIX for Dummies Questions & Answers

user creation privileage

hello, How do I assign a user to create users other than root in linux . I want to create a users from other user. bye varma (4 Replies)
Discussion started by: jarkvarma
4 Replies

10. UNIX for Dummies Questions & Answers

user creation problem

hello, Actually I want to create a user for our brower based custom application for the mail access from our mailserver(linux). I create user dummy and I granted all the privileages to dummy user and made dummy equivelent to root and if I tried to create a another user logging as dummy ... (1 Reply)
Discussion started by: jarkvarma
1 Replies
Login or Register to Ask a Question