Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36151

[SOLVED] permission denied after ssh login

$
0
0
Hi forum,
I have a problem with permissions on a server and I just can't get a handle on it. Users can ssh in but can't get to their home dir or get a user prompt. They get "permission denied" and a generic bash prompt. They cannot cd to any directorys. I have googled this and it always comes to an selinux issue, but selinux is disabled here, and even if it weren't the permissions should allow access. This server has been up for almost a year with no problems. Yesterday, I moved home directorys from another machine to this one, prior to exporting them (this is an nfs server). They are in /clients so there should be no affect on /home. I can ssh in as root. I've put info below, if more is needed please advise. Any help is greatly appreciated.

[user@lbd ~]$ ssh -l user xx.xx.xx.xx
user@xx.xx.xx.xx's password:
Last login: Wed Sep 12 09:54:39 2012 from xx.xx.xx.xx
Could not chdir to home directory /home/user: Permission denied
-bash: /home/user/.bash_profile: Permission denied
-bash-4.1$ cd /home/user
-bash: cd: /home/user: Permission denied

[root@wordpress ~]# ls -la /home/
total 56
drwxrwx---. 5 root root 4096 Sep 12 09:23 .
dr-xr-xr-x. 31 root root 4096 Sep 10 08:49 ..
drwxrwx---. 12 user user 36864 Sep 11 14:34 user
drwxrwx--- 4 user1 user1 4096 Jun 10 21:03 user1

[root@wordpress ~]# tail /var/log/secure
Sep 12 10:16:24 wordpress sshd[26737]: Accepted password for user from xx.xx.xx.xx port 39511 ssh2
Sep 12 10:16:24 wordpress sshd[26737]: pam_unix(sshd:session): session opened for user user by (uid=0)
Sep 12 10:24:00 wordpress sshd[26740]: Received disconnect from xx.xx.xx.xx: 11: disconnected by user
Sep 12 10:24:00 wordpress sshd[26737]: pam_unix(sshd:session): session closed for user user

[root@wordpress ~]# ls -Zd /home/
drwxrwx---. root root system_u:object_r:user_home_dir_t:s0 /home/
[root@wordpress ~]# ls -Zd /home/user
drwxrwx---. user user unconfined_u:object_r:user_home_dir_t:s0 /home/user

[root@wordpress ~]# selinuxenabled && echo enabled || echo disabled
disabled

---------- Post added at 01:22 PM ---------- Previous post was at 01:14 PM ----------

I have just tried creating a new user with useradd. Setup is successful, but no difference on login. Also root cannot su - user to the account, "permission denied". I'm really pulling my hair out.
Jim

Viewing all articles
Browse latest Browse all 36151

Trending Articles