PDA

SU and SSH not working.. HELP!!!

dave_kimberley
2004-09-15, 04:11 AM PDT
Hi,

If I try to SSH to my server as root, everything is fine, however if I use any other account, I will be logged in, but then kicked out.

When I try to su - to a user from root, I recieve the below:

su: warning: cannot change directory to /home/tas: Permission denied
su: /bin/bash: Permission denied

The below is also shown within /var/log/secure

Sep 15 12:05:27 tas su: pam_succeed_if: requirement "uid < 100" not met by user "tas"

I am using FC2 with kernel 2.6.8-1.521

Please can some one help, this is driving me mad.. :mad:

superbnerd
2004-09-15, 04:14 AM PDT
did you have problems before 2.6.8. this kernel is known to cause all sort of problems, but it shouldn't affect ssh.

dave_kimberley
2004-09-15, 04:16 AM PDT
I have just completed a fresh install, and everything was working fine. Upto about 1hr ago.

jcstille
2004-09-15, 04:35 AM PDT
what user id are you using?

dave_kimberley
2004-09-15, 04:42 AM PDT
I am root trying to su to tas, a user I have created. However from reviewing log files, any su attempt is not working.

jeru
2004-09-15, 06:02 AM PDT
Maybe a file permission problem?

what does
ll /home
return?

if it is not tas as the owner;

ssh in as root, then try
chown -R tas:tas /home/tas

First error obviously looks like a file permission problem, but the second I think should not be there if it did in fact authenticate as he should still have access to /bin/bash. But it might be worth a look/try?

dave_kimberley
2004-09-15, 09:41 AM PDT
I have changed the permissions on /home/tas, but I still get the below error when I try to su to the user

su: /bin/ksh: Permission denied

I have tried to change the shell within /etc/passwd and still the same error, just with the other shell.

I have also added another user, it seems that this problem occurs with any??

Please, any one seen this before?

dave_kimberley
2004-09-15, 09:45 AM PDT
FIXED!!!!!!

For some strange reason, the /bin directory had 700 permissions?? Back to 755.

Thanks everyone..