Browse Source

Switch from builtin shares to dynamic

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

Change-Id: I638308fa56ca497da25fb1ce87ee09f8d94f7c6f
changes/10/511010/3
Ben Swartzlander 1 year ago
parent
commit
0aa0235af2

+ 0
- 8
make-bootable-disk.sh View File

@@ -51,14 +51,6 @@ sudo tar -C $MOUNT -xf $BR_OUTPUT/images/rootfs.tar
51 51
 echo Installing syslinux
52 52
 sudo $BR_OUTPUT/host/sbin/extlinux -z --install $MOUNT/boot
53 53
 
54
-if [ $DISK_NAME = server ] ; then
55
-    echo Creating share dir
56
-    SHARE_DIR=$MOUNT/share
57
-    sudo mkdir -p $SHARE_DIR
58
-    sudo chmod 770 $SHARE_DIR
59
-    sudo chown 99:99 $SHARE_DIR
60
-fi
61
-
62 54
 echo Unmounting filesystem
63 55
 sudo umount $MOUNT
64 56
 

+ 0
- 1
server-files/etc/exports View File

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

+ 2
- 9
server-files/etc/samba/smb.conf View File

@@ -11,14 +11,7 @@
11 11
    printing = bsd
12 12
    printcap name = /dev/null
13 13
    disable spoolss = yes
14
+   registry shares = yes
14 15
    map to guest = Bad user
15 16
    guest account = nobody
16
-
17
-[share]
18
-   path = /share
19
-   writable = yes
20
-   guest ok = yes
21
-   force user = nobody
22
-   force group = nogroup
23
-   create mask = 0770
24
-   directory mask = 0770
17
+   username map = /etc/samba/smbusers

+ 2
- 0
server-files/etc/samba/smbusers View File

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

Loading…
Cancel
Save