-
(v5.0.1)Start samba server: Export all drives does not work
Hi, when I start samba server, and choose YES when a dialog ask me "Export all drives so that....", but it does not export all drives.
I check the /etc/samba/smb.conf file, no additional configs is appended.
but v4.0.2 works fine.
-
Okay, I found what cause this problem:
Open /usr/sbin/sambastart, goto line 86, column 45, I found the script try to find mount point contains /mnt from /etc/fstab, but, it seems both Fedora Core 5 and Knoppix 5 move the mount point to /media instead of /mnt, so of course, the script can't find any drives/mount points...
Code:
#ask user and export hardisks if he decides to do so
#can be done with append to smb.conf as its always a fresh copy
#(made above)
if $FORCEEXPORT || $DIALOG --title "$TITLE" --defaultno --yesno "$MESSAGE_EXPORTS" 0 0 ; then
for HD in $(cut -d " " -f 2 /etc/fstab|grep /mnt) ; do # change /mnt to /media
NAME=$(basename $HD)
cat >>$SMBCONF <<EOF
[$NAME]
comment = $HD
browseable = yes
path = $HD
writeable = yes
preexec = /bin/mount $HD
postexec = /bin/umount $HD
EOF
done
fi
Similar Threads
-
By cct3000 in forum Networking
Replies: 12
Last Post: 12-22-2010, 02:30 AM
-
By BALDRICK in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 03-28-2006, 11:20 AM
-
By ben1440 in forum Networking
Replies: 2
Last Post: 02-23-2006, 07:25 AM
-
By jMon54 in forum Networking
Replies: 2
Last Post: 03-28-2005, 03:23 PM
-
By InstallScript in forum General Support
Replies: 2
Last Post: 02-09-2003, 10:58 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture](/store/img/g/RCAAAOSweqdeWaui/s-l225/A-Tech-8GB-DDR3-1600-PC3-12800-Laptop-SODIMM-204-P.jpg)
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
![Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture](/store/img/g/mecAAOSw2Vlkv6Ot/s-l225/Crucial-DDR3L-16GB-1600-2x-8GB-PC3-12800-Laptop-SO.jpg)
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$22.45
![Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture](/store/img/g/~u4AAOSwK-liKn7t/s-l225/Team-T-FORCE-VULCAN-Z-32GB-2-x-16GB-PC-RAM-DDR4-32.jpg)
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$54.99
![Hynix 2x 8GB (16GB) PC4-19200 DDR4-2400MHz 288Pin Desktop Memory Module picture](/store/img/g/jTYAAOSwgURmeYqk/s-l225/Hynix-2x-8GB-16GB-PC4-19200-DDR4-2400MHz-288Pin-De.jpg)
Hynix 2x 8GB (16GB) PC4-19200 DDR4-2400MHz 288Pin Desktop Memory Module
$19.99
![HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture](/store/img/g/XNYAAOSwg81kv6CG/s-l225/HyperX-FURY-DDR3-8GB-16GB-32GB-1600-MHz-PC3-12800-.jpg)
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$23.95
![HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture](/store/img/g/AhQAAOSwWi1kv6Pb/s-l225/HyperX-FURY-RAM-DDR4-16GB-8GB-32GB-4GB-3200-2666-2.jpg)
HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM
$9.64
![Micron/Samsung/SKHynix 32GB(16GBX2) 1Rx8 PC4-3200AA DDR4 Laptop RAM Memory picture](/store/img/g/QL8AAOSwPFpmfIyW/s-l225/Micron-Samsung-SKHynix-32GB-16GBX2-1Rx8-PC4-3200AA.jpg)
Micron/Samsung/SKHynix 32GB(16GBX2) 1Rx8 PC4-3200AA DDR4 Laptop RAM Memory
$42.99
![A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture](/store/img/g/HVQAAOSwZR1fWlxU/s-l225/A-Tech-8GB-PC3-12800-Desktop-DDR3-1600-MHz-Non-ECC.jpg)
A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G
$13.99
![256 GIGABYTES - LOT OF 16 LAPTOP MEMORY RAM MODULES 16GB EACH TOP BRANDS picture](/store/img/g/7~gAAOSwXcFmf3q3/s-l225/256-GIGABYTES-LOT-OF-16-LAPTOP-MEMORY-RAM-MODULES-.jpg)
256 GIGABYTES - LOT OF 16 LAPTOP MEMORY RAM MODULES 16GB EACH TOP BRANDS
$299.99
![72 GIGABYTES - LOT OF 9 LAPTOP MEMORY RAM MODULES 8GB EACH TOP BRANDS picture](/store/img/g/DgkAAOSw1YNmf4oe/s-l225/72-GIGABYTES-LOT-OF-9-LAPTOP-MEMORY-RAM-MODULES-8G.jpg)
72 GIGABYTES - LOT OF 9 LAPTOP MEMORY RAM MODULES 8GB EACH TOP BRANDS
$139.99