-
(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
![Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch picture](/store/img/g/d3AAAOSw35dlrsCo/s-l225/Cisco-Nexus-N9K-C92160YC-X-48P-25GbE-SFP28-6P-QSFP.jpg)
Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch
$499.00
![Cisco Nexus N3K-C3064PQ-10GX 48P 10GbE SFP+ 4P QSFP+ Switch (Fair) picture](/store/img/g/K9MAAOSw-4JmfV3v/s-l225/Cisco-Nexus-N3K-C3064PQ-10GX-48P-10GbE-SFP-4P-QSFP.jpg)
Cisco Nexus N3K-C3064PQ-10GX 48P 10GbE SFP+ 4P QSFP+ Switch (Fair)
$85.00
![Cisco Nexus N3K-C3172PQ-10GE 48P 10GbE 6P QSFP+ Switch N3K-C3172PQ-10GE picture](/store/img/g/FnMAAOSwAO9lrsAL/s-l225/Cisco-Nexus-N3K-C3172PQ-10GE-48P-10GbE-6P-QSFP-Swi.jpg)
Cisco Nexus N3K-C3172PQ-10GE 48P 10GbE 6P QSFP+ Switch N3K-C3172PQ-10GE
$189.00
![CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED picture](/store/img/g/uj4AAOSw8hhmYQRm/s-l225/CISCO-MERAKI-MS120-24P-HW-24-PORT-GIGABIT-CLOUD-MA.jpg)
CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED
$98.55
![Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture](/store/img/g/yEAAAOSwxVReIhma/s-l225/Cisco-C3850-NM-2-10G-2-Port-Network-Exp-Module-for.jpg)
Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850
$30.99
![🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥 picture](/store/img/g/KTkAAOSwcmBisISE/s-l225/-CISCO-SFP-10G-SR-V03-10-2415-03-850nm-10GBASE-SR-.jpg)
🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥
$6.80
![Cisco Fibre Channel Shortwave SFP+ (DS-SFP-FC32G-SW) Sealed With Hologram picture](/store/img/g/Q6gAAOSwbK5mg0U3/s-l225/Cisco-Fibre-Channel-Shortwave-SFP-DS-SFP-FC32G-SW-.jpg)
Cisco Fibre Channel Shortwave SFP+ (DS-SFP-FC32G-SW) Sealed With Hologram
$54.19
![GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03 picture](/store/img/g/tAkAAOSwdENkHItI/s-l225/GENUINE-Cisco-SFP-10G-SR-V03-SFP-GBIC-Transceiver-.jpg)
GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03
$6.80
![Cisco Nexus 48-Port 10G SFP+ Switch N9K-93128TX w/ 9K-M12PQ 12-Port 40G QSFP picture](/store/img/g/IwQAAOSw5A9mS3oa/s-l225/Cisco-Nexus-48-Port-10G-SFP-Switch-N9K-93128TX-w-9.jpg)
Cisco Nexus 48-Port 10G SFP+ Switch N9K-93128TX w/ 9K-M12PQ 12-Port 40G QSFP
$112.49
![Cisco WS-C2960X-48FPD-L 48 V07 POE+ GE+2 10G SFP+, LAN BASE 740W w/ C2960X-Stack picture](/store/img/g/cqoAAOSwtYVmS7LQ/s-l225/Cisco-WS-C2960X-48FPD-L-48-V07-POE-GE-2-10G-SFP-LA.jpg)
Cisco WS-C2960X-48FPD-L 48 V07 POE+ GE+2 10G SFP+, LAN BASE 740W w/ C2960X-Stack
$110.00