vm/windows: Fix perms of the Samba shares.

We now map all guest accounts to the root user, because in the end the
permissions of the current user boil down to the build user of the Nix
builder of the host. That way it's not possible to gain more permissions
at all and just makes the VM communication a lot easier.

However, setting "writable" to yes instead of "read only" to no doesn't
change anything here, I just found it to be clearer.

Also, we now no longer need to have a "nobody" user.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-02-16 18:58:08 +01:00
parent 5241bb1d5e
commit 084238c6ec
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -52,10 +52,7 @@ let
-o trans=virtio,version=9p2000.L,msize=262144,cache=loose \
xchg /fs/xchg
cat > /fs/etc/passwd <<PASSWD
root:x:0:0::/root:/bin/false
nobody:x:65534:65534::/var/empty:/bin/false
PASSWD
echo root:x:0:0::/root:/bin/false > /fs/etc/passwd
set +e
chroot /fs $command $out
@ -96,6 +93,7 @@ let
[global]
security = user
map to guest = Bad User
guest account = root
workgroup = cygwin
netbios name = controller
server string = %h
@ -105,12 +103,12 @@ let
[nixstore]
path = /nix/store
read only = no
writable = yes
guest ok = yes
[xchg]
path = /xchg
read only = no
writable = yes
guest ok = yes
CONFIG