-
(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
![Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2 picture](/store/img/g/2mYAAOSwmulmdXzA/s-l225/Dell-OptiPlex-3060-MICRO-DESKTOP-PC-COMPUTER-I5-8T.jpg)
Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2
$350.00
![HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA picture](/store/img/g/rIQAAOSwN9Nlnw4a/s-l225/HP-Workstation-Z640-2x-Xeon-E5-2623V4-32GB-Ram-Dua.jpg)
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA
$214.98
![Dell 14](/store/img/g/6CgAAOSw80lltRSe/s-l225/Dell-14-TOUCHSCREN-Laptop-8th-Gen-Core-i5-16GB-RAM.jpg)
Dell 14" TOUCHSCREN Laptop 8th Gen Core i5 16GB RAM 512GB SSD/256 Bluetooth W11
$235.00
![Lenovo IdeaCentre 3 07IRB8 Desktop Intel Core i5-13400 16GB 512GB SSD W11H picture](/store/img/g/1UcAAOSwYS9lXgtq/s-l225/Lenovo-IdeaCentre-3-07IRB8-Desktop-Intel-Core-i5-1.jpg)
Lenovo IdeaCentre 3 07IRB8 Desktop Intel Core i5-13400 16GB 512GB SSD W11H
$349.99
![Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor picture](/store/img/g/rfsAAOSwEFBma4Yr/s-l225/Intel-Xeon-E5-2667-V2-LGA-2011-3-3GHz-8-Core-130W-.jpg)
Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor
$14.99
![AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket A... picture](/store/img/g/3isAAOSw~lNmI3aE/s-l225/AMD-Ryzen-7-7800X3D-8-Core-16-Thread-4-2-GHz-5-0-G.jpg)
AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket A...
$304.95
![HP Chromebase Desktop PC 21.5](/store/img/g/Ia0AAOSwtYpmKD3S/s-l225/HP-Chromebase-Desktop-PC-21-5-FHD-Core-i3-10110U-I.jpg)
HP Chromebase Desktop PC 21.5" FHD Core i3-10110U Intel UHD 8GB DDR4 128GB SSD
$208.99
![Dell Inspiron 15 Touch Screen Laptop Intel Core i5 8GB 512GB SSD - Carb... picture](/store/img/g/wCYAAOSwzLdmIYgC/s-l225/Dell-Inspiron-15-Touch-Screen-Laptop-Intel-Core-i5.jpg)
Dell Inspiron 15 Touch Screen Laptop Intel Core i5 8GB 512GB SSD - Carb...
$399.99
![Dell Latitude 3500 Core i5-8265U @1.60GHz 8GB RAM 256GB SSD 15.6](/store/img/g/9wcAAOSwhONmaDoW/s-l225/Dell-Latitude-3500-Core-i5-8265U-1-60GHz-8GB-RAM-2.jpg)
Dell Latitude 3500 Core i5-8265U @1.60GHz 8GB RAM 256GB SSD 15.6" Win 11 H391
$119.99
![New HP 24](/store/img/g/TWcAAOSw2QlmXTVp/s-l225/New-HP-24-All-In-One-Desktop-Computer-11th-Gen-i3-.jpg)
New HP 24" All In One Desktop Computer 11th Gen i3 Up To 32GB RAM 2TB SSD Win 11
$329.99