https://www.synology-wiki.de/index.php?title=Benutzern_den_Konsolenzugang_gew%C3%A4hren&feed=atom&action=history
Benutzern den Konsolenzugang gewähren - Versionsgeschichte
2024-03-28T22:07:47Z
Versionsgeschichte dieser Seite in
MediaWiki 1.39.1
https://www.synology-wiki.de/index.php?title=Benutzern_den_Konsolenzugang_gew%C3%A4hren&diff=4775&oldid=prev
KomischerKauz am 2. Juli 2012 um 07:14 Uhr
2012-07-02T07:14:53Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 2. Juli 2012, 07:14 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Zeile 1:</td>
<td colspan="2" class="diff-lineno">Zeile 1:</td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:SSH]][[Category:Telnet]][[Category:Linux]]</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Standardmäßig ist die Konsolenanmeldung per SSH/Telnet lediglich mit den Benutzerkonten "root" und "admin" möglich. Gleiches gilt für den Benutzerwechsel mittels "su".</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Standardmäßig ist die Konsolenanmeldung per SSH/Telnet lediglich mit den Benutzerkonten "root" und "admin" möglich. Gleiches gilt für den Benutzerwechsel mittels "su".</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
</table>
KomischerKauz
https://www.synology-wiki.de/index.php?title=Benutzern_den_Konsolenzugang_gew%C3%A4hren&diff=4770&oldid=prev
KomischerKauz: verschob „Wechseln des login für einen Benutzer“ nach „Benutzern den Konsolenzugang gewähren“
2012-07-01T18:16:29Z
<p>verschob „<a href="/index.php/Wechseln_des_login_f%C3%BCr_einen_Benutzer" class="mw-redirect" title="Wechseln des login für einen Benutzer">Wechseln des login für einen Benutzer</a>“ nach „<a href="/index.php/Benutzern_den_Konsolenzugang_gew%C3%A4hren" title="Benutzern den Konsolenzugang gewähren">Benutzern den Konsolenzugang gewähren</a>“</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="de">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Version vom 1. Juli 2012, 18:16 Uhr</td>
</tr><tr><td colspan="2" class="diff-notice" lang="de"><div class="mw-diff-empty">(kein Unterschied)</div>
</td></tr></table>
KomischerKauz
https://www.synology-wiki.de/index.php?title=Benutzern_den_Konsolenzugang_gew%C3%A4hren&diff=4769&oldid=prev
KomischerKauz: /* Konsolenzugang gewähren */
2012-07-01T18:15:26Z
<p><span dir="auto"><span class="autocomment">Konsolenzugang gewähren</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 1. Juli 2012, 18:15 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l18">Zeile 18:</td>
<td colspan="2" class="diff-lineno">Zeile 18:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Bei den Benutzern (erkenntlich an Benutzername), denen der Zugang zur Konsole verwährt ist, ist als Pfad zur Shell "/sbin/nologin" eingetragen.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Bei den Benutzern (erkenntlich an Benutzername), denen der Zugang zur Konsole verwährt ist, ist als Pfad zur Shell "/sbin/nologin" eingetragen.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Um den Konsolenzugang zu gewähren, muss "/sin/nologin" ersetzt werden durch "/bin/ash".</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Um den Konsolenzugang zu gewähren, muss <ins style="font-weight: bold; text-decoration: none;">in der Zeile des betreffenden Benutzers </ins>"/sin/nologin" ersetzt werden durch "/bin/ash".</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Nach dem Speichern der Datei sollte der Wechsel zum Admin- und root-Benutzerkonto, sowie zu den bearbeiteten Benutzerkonten ausprobiert werden:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Nach dem Speichern der Datei sollte der Wechsel zum Admin- und root-Benutzerkonto, sowie zu den bearbeiteten Benutzerkonten ausprobiert werden:</div></td></tr>
</table>
KomischerKauz
https://www.synology-wiki.de/index.php?title=Benutzern_den_Konsolenzugang_gew%C3%A4hren&diff=4768&oldid=prev
KomischerKauz: hinzugefügt: root-passwort
2012-07-01T18:14:22Z
<p>hinzugefügt: root-passwort</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 1. Juli 2012, 18:14 Uhr</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Zeile 1:</td>
<td colspan="2" class="diff-lineno">Zeile 1:</td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">===Wechseln der login shell </del>für <del style="font-weight: bold; text-decoration: none;">einen Benutzer===</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Standardmäßig ist die Konsolenanmeldung per SSH/Telnet lediglich mit den Benutzerkonten "root" und "admin" möglich. Gleiches gilt </ins>für <ins style="font-weight: bold; text-decoration: none;">den Benutzerwechsel mittels "</ins>su<ins style="font-weight: bold; text-decoration: none;">"</ins>.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">Wenn der folgende Fehler auftritt:</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><pre>su: cannot run /sbin/nologin: No such file or directory</pre></del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">wenn folgendes Kommando eingegeben wird:</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><pre></del>su <del style="font-weight: bold; text-decoration: none;">some_user</pre></del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">ist folgendes zu tun</del>.</div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">'''Achtung:''' Die Benutzung des Editors <code>vi</code> sollte bekannt sein.</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">=== root-Passwort ===</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">Folgende Schritte sind durchzuführen</del>:</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Der Account "root" hat auf den Synology Stations standardmäßig das Passwort "synopass". Für den Login mittels SSH/Telnet ist dieses Passwort nicht geeignet (hier muss das Administratoren-Passwort verwendet werden), jedoch für den Benutzerwechsel.</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><<del style="font-weight: bold; text-decoration: none;">pre</del>><del style="font-weight: bold; text-decoration: none;">vi </del>/etc/passwd<del style="font-weight: bold; text-decoration: none;"></pre></del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">Für den Benutzer some_user </del>ist <del style="font-weight: bold; text-decoration: none;">folgende Zeile </del>zu <del style="font-weight: bold; text-decoration: none;">finden</del>:</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Wird einem User der Konsolenzugang gewährt, so kann dieser root-Rechte erlangen, sofern er das standardmäßige Passwort kennt. Es lohnt sich also das root-Passwort zu ändern (erfordert root-Rechte)</ins>:</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><<del style="font-weight: bold; text-decoration: none;">pre</del>><del style="font-weight: bold; text-decoration: none;">some_user</del>:x:<del style="font-weight: bold; text-decoration: none;">1025</del>:<del style="font-weight: bold; text-decoration: none;">100</del>:<del style="font-weight: bold; text-decoration: none;">Descriptive text</del>:<del style="font-weight: bold; text-decoration: none;">/nonexist</del>:/sbin/nologin<del style="font-weight: bold; text-decoration: none;"></pre></del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> synouser --setpw root </ins><<ins style="font-weight: bold; text-decoration: none;">neues root-Passwort</ins>></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">und wie folgt </del>zu <del style="font-weight: bold; text-decoration: none;">ändern:</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><pre>some_user:x:1025:100:Descriptive text:</del>/<del style="font-weight: bold; text-decoration: none;">nonexist:</del>/bin/ash<del style="font-weight: bold; text-decoration: none;"></pre></del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">=== Konsolenzugang gewähren ===</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Speichern der Datei <del style="font-weight: bold; text-decoration: none;">und fertig.</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">Nun ist </del>der Wechsel <del style="font-weight: bold; text-decoration: none;">der login Identität möglich</del>:</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Um einem Benutzer den Zugang zur Konsole zu gewähren, muss die Datei "</ins>/etc/passwd<ins style="font-weight: bold; text-decoration: none;">" mit root-Rechten bearbeitet werden.</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><pre></del>su <del style="font-weight: bold; text-decoration: none;">some_user</del><<del style="font-weight: bold; text-decoration: none;">/pre</del>></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Es </ins>ist <ins style="font-weight: bold; text-decoration: none;">empfehlenswert sich zur Sicherheit eine Sicherungskopie der Datei anzulegen und auf einer zusätzlichen Konsole als root eingeloggt zu sein, um fehlerhafte Änderungen rückgängig machen </ins>zu <ins style="font-weight: bold; text-decoration: none;">können.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Die Zeilen in der Datei sind wie folgt aufgebaut</ins>:</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins><<ins style="font-weight: bold; text-decoration: none;">Benutzername</ins>>:x:<ins style="font-weight: bold; text-decoration: none;"><Benutzer-ID></ins>:<ins style="font-weight: bold; text-decoration: none;"><Gruppen-ID></ins>:<ins style="font-weight: bold; text-decoration: none;"><Beschreibung></ins>:<ins style="font-weight: bold; text-decoration: none;"><Pfad zum Home-Verzeichnis></ins>:<ins style="font-weight: bold; text-decoration: none;"><Pfad zur Standard-Shell></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Bei den Benutzern (erkenntlich an Benutzername), denen der Zugang zur Konsole verwährt ist, ist als Pfad zur Shell "</ins>/sbin/nologin<ins style="font-weight: bold; text-decoration: none;">" eingetragen.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Um den Konsolenzugang </ins>zu <ins style="font-weight: bold; text-decoration: none;">gewähren, muss "/sin</ins>/<ins style="font-weight: bold; text-decoration: none;">nologin" ersetzt werden durch "</ins>/bin/ash<ins style="font-weight: bold; text-decoration: none;">".</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Nach dem </ins>Speichern der Datei <ins style="font-weight: bold; text-decoration: none;">sollte </ins>der Wechsel <ins style="font-weight: bold; text-decoration: none;">zum Admin- und root-Benutzerkonto, sowie zu den bearbeiteten Benutzerkonten ausprobiert werden</ins>:</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> su</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> su admin</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>su <<ins style="font-weight: bold; text-decoration: none;">Benutzername</ins>></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> ...</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Sind die Benutzerwechsel nicht möglich, sollten die Änderungen rückgängig gemacht werden, da beim Bearbeiten der Datei wohl ein Fehler unterlaufen ist.</ins></div></td></tr>
</table>
KomischerKauz
https://www.synology-wiki.de/index.php?title=Benutzern_den_Konsolenzugang_gew%C3%A4hren&diff=1701&oldid=prev
Mike: Die Seite wurde neu angelegt: „===Wechseln der login shell für einen Benutzer=== Wenn der folgende Fehler auftritt: <pre>su: cannot run /sbin/nologin: No such file or directory</pre> wenn folg…“
2009-12-29T13:35:41Z
<p>Die Seite wurde neu angelegt: „===Wechseln der login shell für einen Benutzer=== Wenn der folgende Fehler auftritt: <pre>su: cannot run /sbin/nologin: No such file or directory</pre> wenn folg…“</p>
<p><b>Neue Seite</b></p><div>===Wechseln der login shell für einen Benutzer===<br />
Wenn der folgende Fehler auftritt:<br />
<pre>su: cannot run /sbin/nologin: No such file or directory</pre><br />
wenn folgendes Kommando eingegeben wird:<br />
<pre>su some_user</pre><br />
ist folgendes zu tun.<br />
<br />
'''Achtung:''' Die Benutzung des Editors <code>vi</code> sollte bekannt sein.<br />
<br />
Folgende Schritte sind durchzuführen:<br />
<pre>vi /etc/passwd</pre><br />
Für den Benutzer some_user ist folgende Zeile zu finden:<br />
<pre>some_user:x:1025:100:Descriptive text:/nonexist:/sbin/nologin</pre><br />
und wie folgt zu ändern:<br />
<pre>some_user:x:1025:100:Descriptive text:/nonexist:/bin/ash</pre><br />
Speichern der Datei und fertig.<br />
Nun ist der Wechsel der login Identität möglich:<br />
<pre>su some_user</pre></div>
Mike