Benutzerkonten unter WSL (Windows Subsystem für Linux)

2049
Tamoghna Chowdhury

Beim Durchsuchen des Windows-Blogs nach Informationen zur neuesten Insider Preview-Version (Build-Nr. 14316) ist mir aufgefallen, dass Sie bashbei der Installation standardmäßig eine Root-Eingabeaufforderung erhalten. Ungeachtet Sicherheitsfragen wie rm -rf C:/(WSL unterstützt Windows - Dateisystem - Zugriff) kann das sudoVerhalten der Ubuntu 14.04 LTS Basis standardmäßig nicht repliziert werden, wie in, basherhält Ihnen eine Benutzerebene Aufforderung beim Start und Sie kann dann sudoauf, rootwie und wann Sie sie brauchen ?

Ist rootan den Administrator oder System - Karte? Was ist auch das erwartete Verhalten von chmodund chownunter diesen Umständen? Werden die Windows-Benutzer und -Gruppen über die WSL direkt auf die Ubuntu-Basis gespiegelt, oder gibt es etwas dazwischen?

1

1 Antwort auf die Frage

1
LiveWireBT

Do the Windows users and groups get directly reflected to the Ubuntu base through WSL, or is there something in between?

My understanding after watching the two videos about this feature when it was announced a week ago was that nothing like that is currently implemented. Remember that this environment is intended to run as an application and every user on the system has her/his own copy. So you are free to do what you want. At the moment the functionality is simple and you should only be able to access files from inside the environment that you have permissions for in Windows.

Future versions are likely receive improvements so that when you do a fresh install of the environment it will log you in as a normal user, sudoers for example doesn't seem to be properly configured at the moment.

Notwithstanding security issues like rm -rf C:/ (WSL supports Windows filesystem access)

The correct path is /mnt/c/ (other drives or network resources were not mounted at the time), so I just ran rm -rfv /mnt/c/ and received a lot of error messages that I am not authorized to modify files in system directories like System32, but it did delete files in my user directory. Remember that a recursive option for a command is not a "security issue", a user with too many permissions who does not understand or care about commands and options to a degree where s/he chooses safer options is the actual "security risk", at least with regard for their own data.

Das Root-Login bezieht sich also nur auf den aktuellen Benutzer? Tamoghna Chowdhury vor 8 Jahren 0
Dumme frage vorher. So kann ein Windows-Benutzer beispielsweise über `adduser` weitere Linux-Unterbenutzer erzeugen (falls dies implementiert wurde?) Tamoghna Chowdhury vor 8 Jahren 0
@ TamoghnaChowdhury - Anscheinend sollten Sie überprüfen, ob dies der Fall ist oder nicht. Ramhound vor 8 Jahren 0
@ Ramhound Leider bin ich nicht alt genug, um ein legitimer Windows-Insider zu sein :( Tamoghna Chowdhury vor 8 Jahren 0
@ TamoghnaChowdhury - Es ist nicht so, als würde die Windows-Polizei zu Ihrer Tür kommen. Wenn Sie Microsoft nicht wirklich mitteilen, ist dies der Fall. Ramhound vor 8 Jahren 0
@ Ramhound Sehr gut. Ich werde es versuchen und sobald ich die Gelegenheit dazu bekomme. Tamoghna Chowdhury vor 8 Jahren 0
Ja `adduser` oder Debians` useradd` funktionieren und Sie können mit `su zum neuen Benutzer wechseln `. Ich habe es gerade ausprobiert. LiveWireBT vor 8 Jahren 0