On 6/27/20 12:01 AM, Jon LaBadie wrote:
On Fri, Jun 26, 2020 at 09:51:50PM -0400, Bob Goodwin wrote:
[bobg@WS1 ~]$ ssh bob@192.168.50.148
bob@192.168.50.148's password:
Last login: Tue May 26 15:20:58 2020 from 192.168.50.57
/bin/bash: Permission denied
Connection to 192.168.50.148 closed.
Both are refused. Maybe user/group settings? Tomorrow will be soon enough.
None of this really matters since a reinstall will replace the existing system.
Note you are succesfully logging in. You get a message about the
last login and start a shell. Otherwise /bin/bash would not
be sending error messages.
I'm not convinced. /bin/login prints that "Last login" message. If it
was bash giving that error message, it would say what executable was
denied. That really looks like the login process failing to execute
bash. You can see the same thing by giving the user a non-executable
shell and then doing "su - user". It will print the "Last login message
and then fail executing the shell. However, I also can't figure out how
to reproduce the issue with ssh. Something along the way checks that
the shell is valid and executable. That's why I suspect an selinux
issue, but I can't figure out how to change the labels on the file to
make it not executable, but still be attempted.
This is the message if you try to run something that isn't executable:
# /etc/passwd
-bash: /etc/passwd: Permission denied
There must be something wrong in your start up scripts or environment
that cause your shell to exit before giving a prompt.
You may get more info by logging in as root and using "su" and "su -"
to switch user to bob or bobg.
That should provide more information either way.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org