<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Moin.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">Neuer Debian 10 Server, neuer user angelegt</div><div class="gmail_default" style="font-family:courier new,monospace"># useradd -m df4or</div><div class="gmail_default" style="font-family:courier new,monospace"># passwd df4or</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">In /etc/passwd steht nun</div><div class="gmail_default" style="font-family:courier new,monospace"><span style="font-family:monospace"><span style="color:rgb(0,0,0)">"df4or:x:1000:1000::/home/df4or:/bin/sh"</span></span></div><div class="gmail_default" style="font-family:courier new,monospace"><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div class="gmail_default" style=""><font color="#000000" face="monospace"># ls -l /bin/sh</font></div><div class="gmail_default" style=""><span style="font-family:monospace"><span style="color:rgb(0,0,0)">lrwxrwxrwx 1 root root 9 Nov 24 22:47 </span><span style="font-weight:bold;color:rgb(84,255,255)">/bin/sh</span><span style="color:rgb(0,0,0)"> -> </span><span style="font-weight:bold;color:rgb(84,255,84)">/bin/bash</span><br><span style="color:rgb(0,0,0)">
</span><br></span></div><div class="gmail_default" style=""><span style="font-family:monospace">Login mit neuem Account 'df4or' per ssh, ich lande in einer "sh" shell. WTF?</span></div><div class="gmail_default" style=""><span style="font-family:monospace">Es wird natürlich auch keine .bashrc ausgeführt,</span></div><div class="gmail_default" style=""><span style="font-family:monospace"><br></span></div><div class="gmail_default" style=""><font face="monospace">$ df4or</font><span style="color:rgb(0,0,0);font-family:monospace">@neuerserver:~$ echo $0</span></div><div class="gmail_default" style=""><span style="font-family:monospace">-sh</span></div><div class="gmail_default" style=""><span style="font-family:monospace"><br></span></div><div class="gmail_default" style=""><span style="font-family:monospace">Jetzt versuche ich mit </span></div><div class="gmail_default" style=""><span style="font-family:monospace"># usermod --shell /bin/bash df4or<br>die shell zu ändern, in /etc/passwd steht nun</span></div><div class="gmail_default" style=""><span style="color:rgb(0,0,0);font-family:monospace">"df4or:x:1000:1000::/home/df4or:/bin/bash"</span><span style="font-family:monospace"> </span></div><div class="gmail_default" style=""><span style="font-family:monospace"><br></span></div><div class="gmail_default" style=""><span style="font-family:monospace">Neues einloggen per ssh (es ist sonst keine andere shh session für diesen User zu diesem Server mehr offen) - ich lande wieder in der /bin/sh.</span></div><div class="gmail_default" style=""><span style="font-family:monospace">WTF?</span></div><div class="gmail_default" style=""><span style="font-family:monospace"><br></span></div><div class="gmail_default" style=""><span style="font-family:monospace">Wenn ich /bin/bash aufrufe wird die bash gestartet, .bashrc ausgeführt usw. alles so wie es soll. Nur nach dem Login nicht.</span></div><div class="gmail_default" style=""><span style="font-family:monospace"><br></span></div><div class="gmail_default" style=""><span style="font-family:monospace">Jemand ne Idee?</span></div><div class="gmail_default" style=""><span style="font-family:monospace"><br></span></div><div class="gmail_default" style=""><span style="font-family:monospace">Danke.</span></div><div class="gmail_default" style=""><span style="font-family:monospace">Ekki</span></div><div class="gmail_default" style=""><br></div></div>