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!
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.
I have a problem with useradd. I do 'useradd john'. Then I look in /etc/passwd and see that the new entry has ...:/home/john: in it. Then I do passwd john and I enter a password. However, when I log in as john, the system says "No directory. Logging in with HOME=/". How can this be? And looking into /etc/default/useradd I find HOME=/home.
If someone could help me I would greatly apreciate it.
dezza ~ $ cd /home/
dezza /home $ ls
dezza /home $ chown john.john john
I believe the chown syntax is <user>:<group> rather than <user>.<group> and the appropriate group is the user's primary group which may not be the same as their user name. The user's primary group may be determined by looking at the 4th :-separated field in their entry in /etc/passwd and then looking for the group in /etc/group which has the same number for its 3rd :-separated field.
I have to agree with 'brianL' that 'adduser' is the way to go as it is the frontend for 'useradd'. 'adduser' was created specifically for Slackware adding new user accounts. But as usual Slackware allows one to do as they wish on their system.