You are not logged in.

#1 2011-10-30 02:18:42

iamalion
Member
Registered: 2011-10-30
Posts: 5

New user unable to ssh

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

#2 2011-10-30 03:23:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: New user unable to ssh

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

#3 2011-10-30 03:40:43

iamalion
Member
Registered: 2011-10-30
Posts: 5

Re: New user unable to ssh

Oh stupid me, change linux to home in the last part.

The name is something else, user for here smile

~/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

#4 2011-10-30 07:59:40

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: New user unable to ssh

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

#5 2011-10-30 15:18:43

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: New user unable to ssh

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

#6 2011-10-30 15:47:57

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: New user unable to ssh

grep -i allowusers /etc/ssh/sshd_config

if this is set, make sure your user is in there

Offline

#7 2011-10-30 18:12:35

iamalion
Member
Registered: 2011-10-30
Posts: 5

Re: New user unable to ssh

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

#8 2011-10-30 18:36:18

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: New user unable to ssh

http://archlinuxarm.org/forum/ < their forum.

Good luck.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2011-10-30 18:46:16

iamalion
Member
Registered: 2011-10-30
Posts: 5

Re: New user unable to ssh

Thank you all! I'll stay subscribed just incase anyone else posts.

Offline

#10 2013-10-17 04:02:55

iamalion
Member
Registered: 2011-10-30
Posts: 5

Re: New user unable to ssh

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

#11 2013-10-19 02:31:50

thesweeper
Member
Registered: 2013-10-19
Posts: 1

Re: New user unable to ssh

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

Board footer

Powered by FluxBB