r/linuxfromscratch • u/jolupa • Jan 11 '21
Unable to CD to /home/newuser
Hi! Finally I have the wifi working and was configuring all the system... But I'm encountered one problem... I create a new user:
useradd -m (newuser)
and when I try to log with that new user the only thing I have is:
Unable to CD /home/(newuser)
login:
And I have to enter in the system as root... Anyone has any solution I can't find anything on web.
Thanks
6
Upvotes
4
u/[deleted] Jan 12 '21
Any errors you get once you login as root will be helpful to debug this.
1
u/flaflashr Jan 12 '21
I hope you are using cd and not CD. Linux is case-sensitive
1
u/dcowan-london Jan 12 '21
Try a
chownfor the users home dir? Confirm that the correct home dir is set in/etc/passwd?You can also try to log in as root and
suto the user. You will log into the user at the same location as you were when logged into the root user (just make sure you're at a location the newuser is allowed to read). If you still get the error then, I don't think it could have anything to do with the home dir.1
u/veedant Feb 10 '21
check your file permissions, make sure they're
drw-r--r--for /home/(newuser) and that it's newuser who owns it.1
u/Elsior Mar 12 '21
Are you literally creating a user with brackets in it's name ?
Useradd man page specifies