You are not logged in.
Pages: 1
So I got Arch installed on a seagate NAS, and everything is going great, followed the directions to create more users, and tried to ssh and I get this:
ssh user@nas
user@nas's password:
Last login: Sat Oct 29 21:16:34 2011 from 192.168.1.71
Could not chdir to home directory /home/user: Permission denied
/bin/bash: Permission denied
Connection to nas closed.
After this, I spent a few hours on google looking over forums and other places, and have yet to find a solution.
/bin/bash is executable to all, owned by root
/home is owned by root
/home/linux is owned by linux
if there are any other permissions that would be needed to help just let me know.
This is super annoying, and seems like it should be obvious but I just cannot see the issue.
Offline
A few more things to explore:
The user name is user? Or is that an obfuscation?
Assuming the user name is user, does /home/user exist? What are its permissions? Is it executable for all?
Have you only been able to log in as root? If so, is /home mounted? What are the mount permissions?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Oh stupid me, change linux to home in the last part.
The name is something else, user for here
~/user exists, here are the perms:
ls -la user/
total 20
drwx------ 2 user users 4096 Oct 16 23:34 .
drwxr-xr-x 9 root root 4096 Oct 16 23:39 ..
-rw-r--r-- 1 user users 21 May 10 17:02 .bash_logout
-rw-r--r-- 1 user users 57 May 10 17:02 .bash_profile
-rw-r--r-- 1 user users 141 May 10 17:02 .bashrc
I added global execution but that did not solve it.
Only root works, any accounts I have added after install do not. (which is all besides root)
Offline
When I ssh into my ReadyNAS or IPCop firewall I have to include the port number like so:
handy / $ ssh -p 22 root@<IP address>
I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!
Offline
You should check in with the guys that build Arch for ARM. They know how they set up their system.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
grep -i allowusers /etc/ssh/sshd_config
if this is set, make sure your user is in there
Offline
Handy: That isn't the issue, I get to log in, but then it drops me.
B: I thought this was, can you please direct me there? I would have asked in IRC, but the restrictions on their channel are annoying. (I am idle there on another machine, and I cannot group a new nick without being there, and such)
Manouel: I will try that as soon as I figure out why it didnt come back up last night after I had to reboot all my networking equipment.
Offline
http://archlinuxarm.org/forum/ < their forum.
Good luck.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Thank you all! I'll stay subscribed just incase anyone else posts.
Offline
Update for anyone that happens across that. Took 2 years but finally got it solved.
My permissions for / were
drwx------ 21 root root 4096 Oct 16 20:41 .
I had to change it to
drwxr-xr-x 21 root root 4096 Oct 16 20:41 .
The command used was
chmod 755 /
Last edited by iamalion (2013-10-17 04:11:48)
Offline
I had a similar issue, but it turned out it was a different source of the problem. I created a new user and set the default shell the csh, assuming that it was already installed... it wasn't.
I changed it to bash using:
usermod -s /bin/bash <user>
Offline
Pages: 1