startSamba: reintroduce force user option set to current user
svn path=/nixpkgs/trunk/; revision=23242
This commit is contained in:
parent
2957f9cc11
commit
105d0e540b
@ -139,7 +139,7 @@ rec {
|
|||||||
mount -o bind /dev /fs/dev
|
mount -o bind /dev /fs/dev
|
||||||
|
|
||||||
echo "mounting host filesystem..."
|
echo "mounting host filesystem..."
|
||||||
mount -t cifs //10.0.2.4/qemu /fs/hostfs -o guest,username=nobody
|
mount -t cifs //10.0.2.4/qemu /fs/hostfs -o guest,sec=none
|
||||||
|
|
||||||
mkdir -p /fs/nix/store
|
mkdir -p /fs/nix/store
|
||||||
mount -o bind /fs/hostfs/nix/store /fs/nix/store
|
mount -o bind /fs/hostfs/nix/store /fs/nix/store
|
||||||
@ -227,6 +227,8 @@ rec {
|
|||||||
|
|
||||||
startSamba =
|
startSamba =
|
||||||
''
|
''
|
||||||
|
export WHO=`whoami`
|
||||||
|
|
||||||
cat > $TMPDIR/smb.conf <<SMB
|
cat > $TMPDIR/smb.conf <<SMB
|
||||||
[global]
|
[global]
|
||||||
private dir = $TMPDIR
|
private dir = $TMPDIR
|
||||||
@ -238,6 +240,7 @@ rec {
|
|||||||
smb passwd file = $TMPDIR/smbpasswd
|
smb passwd file = $TMPDIR/smbpasswd
|
||||||
security = share
|
security = share
|
||||||
[qemu]
|
[qemu]
|
||||||
|
force user = $WHO
|
||||||
path = /
|
path = /
|
||||||
read only = no
|
read only = no
|
||||||
guest ok = yes
|
guest ok = yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user