LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 06-13-2015, 05:50 PM   #1
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Rep: Reputation: 28
Slackware-14.1_x86 On Netbook: User /home directory not found at login.


For some reason I've not been able to discern, when I add me as a user to the netbook it looks OK until I log in. Then I get the message that 'no directory, logging in with HOME=/'.

The useradd command I use is
useradd -m -d /home/rshepard -u 1000 -g 100 -s /bin/bash rshepard

The /home/ directory contains ftp/, lost+found/, and rshepard/. The first two are owned by root.root, the last by rshepard.users. /etc/passwd has the line 'rshepard:x:1000:100::/home/rshepard:/bin/bash' and group 100 is 'users'. As root, the password for rshepard is created and works to log in.

There's nothing I see in the useradd man page or my Web searches that explains why this time I cannot log in to /home/rshepard/ on the netbook. Prior to my negligent error of wiping out /etc/ the same command worked as it's supposed to work and when I log in as a user it's in /home/rshepard/.

I've no idea where to look for a solution since everything appears correct but it's just not working.

Your thoughts are needed.
 
Old 06-13-2015, 07:33 PM   #2
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Re-partitioning the hard drive with cfdisk and re-installing 14.1 resolved this issue. Now to resolve the numlock light ...

Rich
 
Old 06-24-2015, 12:05 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Not that I'm thinking this would've made any difference, but it is much easier to use Slackware's adduser script. It allows you to easily add the new user to the various suggested groups like audio,video,printers,plugdev,etc and to set up the user's home directory and other information.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware-14.1_x86 on Netbook: numlock light now on when system boots rshepard Slackware - Installation 3 06-14-2015 09:23 PM
contents of 'home' directory found at sda5: mounted as /home, and also on sda6:/home leswatson Linux - Newbie 4 04-18-2008 04:02 PM
/home/user not found at login KenHirst Linux - Newbie 2 08-28-2007 10:25 PM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM
How to get home directory of a login user lucky6969b Programming 5 02-20-2006 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration