diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-02-16 18:58:08 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-02-26 04:51:59 +0100 |
commit | 084238c6ec740d61f2e5f30e2c4ceb663dd1770f (patch) | |
tree | 3ccec6f956b16ad58c4edde6f26e2ff64b575536 /pkgs/build-support | |
parent | 5241bb1d5e088ec3906cbc32afcdeb68953badef (diff) | |
download | nixlib-084238c6ec740d61f2e5f30e2c4ceb663dd1770f.tar nixlib-084238c6ec740d61f2e5f30e2c4ceb663dd1770f.tar.gz nixlib-084238c6ec740d61f2e5f30e2c4ceb663dd1770f.tar.bz2 nixlib-084238c6ec740d61f2e5f30e2c4ceb663dd1770f.tar.lz nixlib-084238c6ec740d61f2e5f30e2c4ceb663dd1770f.tar.xz nixlib-084238c6ec740d61f2e5f30e2c4ceb663dd1770f.tar.zst nixlib-084238c6ec740d61f2e5f30e2c4ceb663dd1770f.zip |
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>
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/vm/windows/controller/default.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/build-support/vm/windows/controller/default.nix b/pkgs/build-support/vm/windows/controller/default.nix index 60ec1d4783a8..fd6ad6354aae 100644 --- a/pkgs/build-support/vm/windows/controller/default.nix +++ b/pkgs/build-support/vm/windows/controller/default.nix @@ -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 |