useradd problem number 2


 
Thread Tools Search this Thread
Operating Systems Solaris useradd problem number 2
# 1  
Old 10-21-2011
useradd problem number 2

i added a default user by command

HTML Code:
useradd shekhar
it took user's default directory as /home/shekhar

now when i am going inside /home and giving this command

HTML Code:
cd /home
HTML Code:
ls-ld
it is not showing any directory named shekhar? why so?

thanx
shekhar
# 2  
Old 10-21-2011
useradd by default doesn't create user's home directory unless you specify the -m

Quote:
-m Create the new user's home directory if it does
not already exist. If the directory already
exists, it must have read, write, and execute
permissions by group, where group is the user's
primary group.
Otherwise create it by issuing mkdir command
# 3  
Old 10-21-2011
Quote:
Originally Posted by h@foorsa.biz
useradd by default doesn't create user's home directory unless you specify the -m



Otherwise create it by issuing mkdir command

thanx for your reply!

but my query is not yet over..if it is not created automaticaly then why its showing user's home directory as
Code:
/home/shekhar

when i am issuing
HTML Code:
finger -m shekhar
# 4  
Old 10-21-2011
Do you have LDAP supported on your server, are users logging in through LDAP also?

Also, can you paste the output of /etc/auto_home.

Regards,
Vishal
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in formatting number

Hi, I was trying to format my number like i=1 to 000001 using the below method. typeset -Z6 i (sorry, corrected) My shell is K, is not doing, it is supposed to do Thanks in advance (6 Replies)
Discussion started by: ezee
6 Replies

2. Solaris

useradd problem

:wall:i want to create a user in solaris whose password expires after every 30 minutes and he has to change his password after evry thirty minutes.How can we do that?:confused: thanx and regards, shekhar (17 Replies)
Discussion started by: shekhar_4_u
17 Replies

3. UNIX for Advanced & Expert Users

Problem with useradd, -p option in Solaris 10

Good day all. I'm trying to add a user with useradd and the -p option to assign a project name, but the result is that the user is created with an error message: "UX: useradd: user.root name should be all lower case or numeric." The command: useradd -d /export/home/tester -g rtpgrp -G... (2 Replies)
Discussion started by: BRH
2 Replies

4. Shell Programming and Scripting

string to number problem

Hi actually what happen i have taken a value from database table and stored in variable and that value is 20100601 000000 but this value is stored as string value in database table so after storing this value in variable a when i did operation on this a variable like a=`expr ${a} +1` i m... (1 Reply)
Discussion started by: aishsimplesweet
1 Replies

5. Shell Programming and Scripting

floating point number problem

Hello folks I Hope everyone is fine. I am calculating number of bytes calculation from apache web log. awk '{ sum += $10 } END { print sum }' /var/httpd/log/mydomain.log 7.45557e+09 it show above number, what should i do it sow number like 7455, i mean if after decimal point above 5 it... (5 Replies)
Discussion started by: learnbash
5 Replies

6. Shell Programming and Scripting

Number of users problem

Hi. I have a problem with my homework. I have to do a Script that will tell me the number of users that are logged in on my system through a network and find out their IP's. Can you give me an idea? Thanks (1 Reply)
Discussion started by: mitzu
1 Replies

7. UNIX for Dummies Questions & Answers

Basic number checking problem

Hello all I am having problems using a bash script to read the input from the user and checking that its a valid number. I only want the user to input a maximum of a 3 number string (321 , 521 , 871 etc.). Anything longer or that includes a chararcter or symbol will display an error message. ... (8 Replies)
Discussion started by: ChrisHoogie
8 Replies

8. Shell Programming and Scripting

my number problem

hi guys im a newbie at scripting and am writhing a basic phone dir script to teach myself scripting now the problem i have is i need to make sure the tel number entered to the script is only 8 digits and the first number is not a zero. to use the script i do this ./dir.sh "name" 12345678 can... (3 Replies)
Discussion started by: zappedback
3 Replies

9. Programming

Problem in getting the correct number from the string.

I have string named texts which consist of section label “BOOK-SEC-“. Section starts from 1 to n, where n is a number. For this example conside the value of n is 9. That is, the string variable looks like “BOOK-SEC-1... (2 Replies)
Discussion started by: SamRoj
2 Replies

10. Solaris

useradd problem

O/S: Solaris 9 Architecture: SPARC The man page for useradd states, "The new login remains locked until the passwd(1) command is executed." This is a problem for me when accessing remotely via SSH and creating a new account from the console with useradd. As soon as I try to login into the... (3 Replies)
Discussion started by: tuxsun1
3 Replies
Login or Register to Ask a Question