Login Problem

I have a QNX 4.25 machine with two accounts: root and user1. In the past,
I’ve been able to log into either account without any problem.During the
past week I was fiddling around with my Tilcon installation (installing,
uninstalling, upgrading, etc.). Now, when I try to log in as user1, I
receive the message:

“cannot start login shell ‘/bin/sh’: permission denied”

and I get kicked out (back to the login prompt).

Observations:
I can log in as root with no problem (it uses /bin/sh)
If I create a new user account, I have the same problem
I have not touched the /etc/passwd file or the /bin/sh link.

Can someone tell me what happened? And, more importantly, how do I fix this?

Thank you!

RN <quietrhino@yahoo.com> wrote:

I have a QNX 4.25 machine with two accounts: root and user1. In the past,
I’ve been able to log into either account without any problem.During the
past week I was fiddling around with my Tilcon installation (installing,
uninstalling, upgrading, etc.). Now, when I try to log in as user1, I
receive the message:

“cannot start login shell ‘/bin/sh’: permission denied”

and I get kicked out (back to the login prompt).

Observations:
I can log in as root with no problem (it uses /bin/sh)
If I create a new user account, I have the same problem
I have not touched the /etc/passwd file or the /bin/sh link.

Can someone tell me what happened? And, more importantly, how do I fix this?

Can login as root, but not ordinary user.

What are the perms (ls -l) on /bin/sh, /bin/ksh, /bin/login,
/etc/passwd, /etc/shadow, and /home/user1 (or whatever the home directory
of the user is.) For the home directory, you will have to do a
“ls -ld /home/user1” rather than “ls -l”.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

David,

This is what I am seeing:

/bin/sh rwxrwxrwx

/bin/ksh rwxrwxrwx

/bin/login rwsrwxr-x

/bin/passwd rwsrwxr-x

/etc/shadow rw-------

/home/user1 rwxr-xr-x

Thanks!

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:booqdj$bib$1@nntp.qnx.com

RN <> quietrhino@yahoo.com> > wrote:
I have a QNX 4.25 machine with two accounts: root and user1. In the
past,
I’ve been able to log into either account without any problem.During the
past week I was fiddling around with my Tilcon installation (installing,
uninstalling, upgrading, etc.). Now, when I try to log in as user1, I
receive the message:

“cannot start login shell ‘/bin/sh’: permission denied”

and I get kicked out (back to the login prompt).

Observations:
I can log in as root with no problem (it uses /bin/sh)
If I create a new user account, I have the same problem
I have not touched the /etc/passwd file or the /bin/sh link.

Can someone tell me what happened? And, more importantly, how do I fix
this?

Can login as root, but not ordinary user.

What are the perms (ls -l) on /bin/sh, /bin/ksh, /bin/login,
/etc/passwd, /etc/shadow, and /home/user1 (or whatever the home directory
of the user is.) For the home directory, you will have to do a
“ls -ld /home/user1” rather than “ls -l”.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

RN <quietrhino@yahoo.com> wrote:

David,

This is what I am seeing:

/bin/sh rwxrwxrwx

/bin/ksh rwxrwxrwx

/bin/login rwsrwxr-x

/bin/passwd rwsrwxr-x

/etc/shadow rw-------

/home/user1 rwxr-xr-x



“cannot start login shell ‘/bin/sh’: permission denied”

Assuming the message is, actually:

“login: cannot start login shell ‘/bin/sh’: permission denied”

This means an execve() from login into /bin/sh failed with perms.

Perms on /bin/sh look ok – but /bin/sh is (usually) a link to
/bin/ksh, whose perms also look ok.

You just posted the perms, not the actual ls -l output, so I assume
/bin/sh still points to /bin/ksh.

So… the only obvious thing left is the perms on /bin. If they’re
all ok, I dunno what’s going on. (BTW, I did ask for perms on
/etc/passwd, not /bin/passwd – but you should have failed elsewhere
if /etc/passwd had broken perms.)

-David


“David Gibbs” <> dagibbs@qnx.com> > wrote in message
news:booqdj$bib$> 1@nntp.qnx.com> …
RN <> quietrhino@yahoo.com> > wrote:
I have a QNX 4.25 machine with two accounts: root and user1. In the
past,
I’ve been able to log into either account without any problem.During the
past week I was fiddling around with my Tilcon installation (installing,
uninstalling, upgrading, etc.). Now, when I try to log in as user1, I
receive the message:

“cannot start login shell ‘/bin/sh’: permission denied”

and I get kicked out (back to the login prompt).

Observations:
I can log in as root with no problem (it uses /bin/sh)
If I create a new user account, I have the same problem
I have not touched the /etc/passwd file or the /bin/sh link.

Can someone tell me what happened? And, more importantly, how do I fix
this?

Can login as root, but not ordinary user.

What are the perms (ls -l) on /bin/sh, /bin/ksh, /bin/login,
/etc/passwd, /etc/shadow, and /home/user1 (or whatever the home directory
of the user is.) For the home directory, you will have to do a
“ls -ld /home/user1” rather than “ls -l”.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.