how to rectify this problem - creating user without /home
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
how to rectify this problem - creating user without /home
Hi,
Admin is not my main job but I have to administer a computing servers for the students in my lab. I am in the middle of a linux course so I am still learning.
Right now I have encounter this problem whereby I have created a user using the command adduser and also the passwd. But after creating the user account, the /home is not created. How do I rectify this problem?
Are you sure you used the adduser command? If I'm not mistaking this command creates the user directory /home/<username>. Maybe you've used the useradd instead which does not create it by default.
Admin is not my main job but I have to administer a computing servers for the students in my lab. I am in the middle of a linux course so I am still learning.
Right now I have encounter this problem whereby I have created a user using the command adduser and also the passwd. But after creating the user account, the /home is not created. How do I rectify this problem?
Many thanks for the kind help
Others have answered about your creation of accounts issues but look at the 'RUTE' in the below links to aid you in the future.
I would suggest that you look at some of the other links;
Are you sure you used the adduser command? If I'm not mistaking this command creates the user directory /home/<username>. Maybe you've used the useradd instead which does not create it by default.
Kind regards,
Eric
Thanks for the help.
I did some experimenting since I have root access.
I used both 'useradd' and 'adduser' command to create a new account and when I check /etc/passwd, it show that the default is /export/home/user not /home/user. Question is where to find the default for creating the home directory?
And when I used to newly created user to login, the ssh script ran but it could not chdir to /home/user/.ncbirc saying that 'no such file or directory'. The next line said that 'mkdir: cannot create directory /home/user and saying 'no such directory'.
Then there is this error message: ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64. So could this be the problem, the switch configuration? Co-incindentally we just got a new Dell managed switch as the old one just conked tripping the whole rack.
I did some experimenting since I have root access.
I used both 'useradd' and 'adduser' command to create a new account and when I check /etc/passwd, it show that the default is /export/home/user not /home/user. Question is where to find the default for creating the home directory?
The adduser man page indicates that the defaults are set it /etc/adduser.conf
Quote:
And when I used to newly created user to login, the ssh script ran but it could not chdir to /home/user/.ncbirc saying that 'no such file or directory'. The next line said that 'mkdir: cannot create directory /home/user and saying 'no such directory'.
What "ssh script"? And why did it run? How did you login?
Quote:
Then there is this error message: ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64. So could this be the problem, the switch configuration? Co-incindentally we just got a new Dell managed switch as the old one just conked tripping the whole rack.
This seems to be a bug in a script. Maybe this is the "ssh script" that you mentioned earlier. Anyway, there are bound to be problems if the users home directory is not set up properly. Please fix that first then we can move on to your mysterious "ssh script".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.