[opensuse] failed to execute /bin/bash
Hello, I have a problem on my 13.1 server (I know it's no more maintained, I'm working on the move to be done soon) for *one* user (the others works normally) I can't log in nor su # su mary su: failed to execute /bin/bash when passwd: mary:x:1006:100:mary:/home/mary:/bin/bash and ll /home rwxr-xr-x 9 mary users 4096 juin 3 2011 mary what could give this result? This account is used for mail and thunderbird log without problem... so seems to be a sh problem, but the user login is *not* disabled (for what I know) any hint? thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-12-05 08:35, jdd wrote:
Hello,
I have a problem on my 13.1 server (I know it's no more maintained, I'm working on the move to be done soon)
Well, this is not fully correct: it is updated by the Evergreen people. But not for long.
for *one* user (the others works normally) I can't log in nor su
# su mary su: failed to execute /bin/bash
check the permissions of "/bin/bash"
when passwd:
mary:x:1006:100:mary:/home/mary:/bin/bash
and ll /home
rwxr-xr-x 9 mary users 4096 juin 3 2011 mary
what could give this result? This account is used for mail and thunderbird log without problem... so seems to be a sh problem, but the user login is *not* disabled (for what I know)
Maybe something inside /home/mary -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 05/12/2016 à 12:20, Carlos E. R. a écrit :
check the permissions of "/bin/bash"
# ls -l /bin/bash -rwxr-xr-x 1 root root 656584 oct. 10 2014 /bin/bash and works for other users :-(
Maybe something inside /home/mary
and the complete error was naked: # LANG=US ; su mary su: failed to execute /bin/bash : No such file or directory I'm still stuck :-( thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 05/12/2016 à 12:20, Carlos E. R. a écrit :
check the permissions of "/bin/bash"
# ls -l /bin/bash -rwxr-xr-x 1 root root 656584 oct. 10 2014 /bin/bash
and works for other users :-(
Maybe something inside /home/mary
and the complete error was naked:
# LANG=US ; su mary su: failed to execute /bin/bash : No such file or directory
I'm still stuck :-(
Try stracing the 'su' to see which file it cannot find. -- Per Jessen, Zürich (1.4°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 05/12/2016 à 12:58, Per Jessen a écrit :
Try stracing the 'su' to see which file it cannot find.
I can't say I understand the result :-( http://susepaste.org/72678323 thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Dec 5, 2016 at 3:07 PM, jdd <jdd@dodin.org> wrote:
Le 05/12/2016 à 12:58, Per Jessen a écrit :
Try stracing the 'su' to see which file it cannot find.
I can't say I understand the result :-(
Failure is in subprocess, su is just messenger here. Use "strace -f ..." to continue tracing child as well. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-12-05 13:34, Andrei Borzenkov wrote:
On Mon, Dec 5, 2016 at 3:07 PM, jdd <jdd@dodin.org> wrote:
Le 05/12/2016 à 12:58, Per Jessen a écrit :
Try stracing the 'su' to see which file it cannot find.
I can't say I understand the result :-(
Failure is in subprocess, su is just messenger here. Use "strace -f ..." to continue tracing child as well.
maybe there is some message in syslog. Try journalctl --follow in a terminal, then do "su - mary". See what messages if any appear on the log. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 05/12/2016 à 15:14, Carlos E. R. a écrit :
maybe there is some message in syslog. Try
journalctl --follow
in a terminal, then do "su - mary". See what messages if any appear on the log.
no, I tried this at first time :-(. No message at all thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 05/12/2016 à 13:07, jdd a écrit :
Le 05/12/2016 à 12:58, Per Jessen a écrit :
Try stracing the 'su' to see which file it cannot find.
I can't say I understand the result :-(
thanks jdd
well, in it I can find the error message, line 662 here you will find several straces: http://dodin.org/owncloud/index.php/s/Nmgkh1kikfVnhFn the "jdd.jdd" are normal working ones, the trace.txt should be the same a susepaste, the ones with a number are -ff option (one file per process)
grep failed *
strace-jdd.13934.txt:15:23:35 write(2, "failed to execute /bin/bash "..., 79) = 79 trace.txt:[pid 14027] 15:24:54 write(2, "failed to execute /bin/bash "..., 79failed to execute /bin/bash this "mary" user may come from pretty old config, ported through updates, but the other accounts as well my this one was never accessed for years it's a remote server, when trying ssh passwd is refused but journalctl -f during remote connect gives: déc. 05 15:46:43 ks311900 sshd[15998]: error: PAM: Authentication failure for illegal user mary from 82..... déc. 05 15:46:43 ks311900 sshd[15998]: Failed keyboard-interactive/pam for invalid user mary from 82.... port 48461 ssh2 déc. 05 15:46:43 ks311900 sshd[15998]: Postponed keyboard-interactive for invalid user mary from 82.... port 48461 ssh2 [preauth] déc. 0 why invalid user? thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Dec 5, 2016 at 5:52 PM, jdd <jdd@dodin.org> wrote:
here you will find several straces:
execve("/bin/bash " Do you have spaces at the end of line for this user in /etc/passwd? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 05/12/2016 à 16:18, Andrei Borzenkov a écrit :
On Mon, Dec 5, 2016 at 5:52 PM, jdd <jdd@dodin.org> wrote:
here you will find several straces:
execve("/bin/bash "
Do you have spaces at the end of line for this user in /etc/passwd?
HIT!!!! it was this the problem. how difficult to see ! is there any way to make vi use color for spaces? thanks a lot jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
05.12.2016 18:32, jdd пишет:
Le 05/12/2016 à 16:18, Andrei Borzenkov a écrit :
On Mon, Dec 5, 2016 at 5:52 PM, jdd <jdd@dodin.org> wrote:
here you will find several straces:
execve("/bin/bash "
Do you have spaces at the end of line for this user in /etc/passwd?
HIT!!!!
it was this the problem.
how difficult to see !
is there any way to make vi use color for spaces?
:set list will place $ at the end of line. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
cat with grep? cmyers@chrismyers:~> cat test | grep ' $' this has a space this has two spaces (vi "test" file with :set list) this has no space$ this has a space $ this has two spaces $ this has no space$ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 05/12/2016 à 18:09, Andrei Borzenkov a écrit :
05.12.2016 18:32, jdd пишет:
is there any way to make vi use color for spaces?
:set list
will place $ at the end of line.
I will have to write this down :-) thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/05/2016 06:43 PM, jdd wrote:
Le 05/12/2016 à 18:09, Andrei Borzenkov a écrit :
05.12.2016 18:32, jdd пишет:
is there any way to make vi use color for spaces?
:set list
will place $ at the end of line.
I will have to write this down :-)
... and maybe: usermod --shell SHELL LOGIN Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 05/12/2016 à 19:00, Bernhard Voelker a écrit :
usermod --shell SHELL LOGIN
I tried yast to edit the user passwd/account, but obviously this didn't trigger a passwd rewrite :-( as the mail worked, I couldn't change tpp much the account, and by the way the blanks didn't cause problem for mails, only for login jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/05/2016 12:49 PM, jdd wrote:
# LANG=US ; su mary su: failed to execute /bin/bash : No such file or directory ________________________^^^^^^^^^^^^^^
Sounds like su wants to execute '/bin/bash '. ... ah, reading on in this thread I see you found it, so this is just a hint for you how you could've seen it earlier. Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/05/2016 02:35 AM, jdd wrote:
# su mary su: failed to execute /bin/bash
Do you get the same result when trying to log in as 'mary' on a terminal/vtty? -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Andrei Borzenkov
-
Anton Aylward
-
Bernhard Voelker
-
Carlos E. R.
-
Christopher Myers
-
jdd
-
Per Jessen