Switch from builtin shares to dynamic

Instead of a single hardcoded "share" allow shares to be
created after boot.

Change-Id: I638308fa56ca497da25fb1ce87ee09f8d94f7c6f
This commit is contained in:
Ben Swartzlander 2017-10-10 16:06:46 -04:00
parent d0a55ebf86
commit 0aa0235af2
4 changed files with 4 additions and 18 deletions

View File

@ -51,14 +51,6 @@ sudo tar -C $MOUNT -xf $BR_OUTPUT/images/rootfs.tar
echo Installing syslinux
sudo $BR_OUTPUT/host/sbin/extlinux -z --install $MOUNT/boot
if [ $DISK_NAME = server ] ; then
echo Creating share dir
SHARE_DIR=$MOUNT/share
sudo mkdir -p $SHARE_DIR
sudo chmod 770 $SHARE_DIR
sudo chown 99:99 $SHARE_DIR
fi
echo Unmounting filesystem
sudo umount $MOUNT

View File

@ -1 +0,0 @@
/share *(rw,sync,no_subtree_check,all_squash,anonuid=99,anongid=99)

View File

@ -11,14 +11,7 @@
printing = bsd
printcap name = /dev/null
disable spoolss = yes
registry shares = yes
map to guest = Bad user
guest account = nobody
[share]
path = /share
writable = yes
guest ok = yes
force user = nobody
force group = nogroup
create mask = 0770
directory mask = 0770
username map = /etc/samba/smbusers

View File

@ -0,0 +1,2 @@
root = administrator admin
nobody = guest pcguest smbguest