Solved

Sun Solaris 8--Adduser Command

Posted on 2001-07-11
1
718 Views
Last Modified: 2013-12-05
A basic question for anyone out there.

When I tried to use the Adduser command it created the user like it's suppose too.  I also used the -d for home directory for that user and it seemed to work (the directory is there).  However when I log in as that user it logs me in from the root directory and not under his home directory?

What did I do wrong or how can I correct that problem?

I would like the user to be able to log into his home directory first.
0
Comment
Question by:jonnyblaze
1 Comment
 
LVL 1

Accepted Solution

by:
dkloes earned 38 total points
ID: 6282519
The home directory that Unix should be using is the 6th field of the /etc/passwd file.  What is in this field for this user in /etc/passwd?  If it is not correct, make a backup copy of the file (to be safe) and then edit the file to correct this field for this user.  If the /etc/passwd file is correct, we can go from there.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix Script: Loop over all days of a month 17 96
Anti-virus for Linux Server 15 138
Log File Creation with Header and Footer 17 93
add some character at the end of line in vi 7 78
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question