-
(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
![Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black picture](/store/img/g/cEQAAOSwKIlgze4p/s-l225/Grandstream-GS-HT802-2-Port-Analog-Telephone-Adapt.jpg)
Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black
$32.00
![Lot Of 8 Cisco CP-7945G VOIP Business IP Phone w/ Stand and Handset #0358 picture](/store/img/g/2GYAAOSwzs9mWLSG/s-l225/Lot-Of-8-Cisco-CP-7945G-VOIP-Business-IP-Phone-w-S.jpg)
Lot Of 8 Cisco CP-7945G VOIP Business IP Phone w/ Stand and Handset #0358
$162.98
![Polycom VVX 411 IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION picture](/store/img/g/PZoAAOSwM3xmZJQs/s-l225/Polycom-VVX-411-IP-VOIP-POE-Gigabit-Telephone-L-N-.jpg)
Polycom VVX 411 IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION
$24.00
![Grandstream GS-GXP2170 VoIP Phone & Device 4.3](/store/img/g/fjEAAOSwe11mXhij/s-l225/Grandstream-GS-GXP2170-VoIP-Phone-Device-4-3-Color.jpg)
Grandstream GS-GXP2170 VoIP Phone & Device 4.3" Color-Screen LCD Gigabit Ports
$45.53
![Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945 picture](/store/img/g/NjUAAOSwEmNmEw4x/s-l225/Cisco-CP-7945G-VOIP-Phone-With-Stand-Handset-Busin.jpg)
Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945
$3.00
![Cisco/Linksys SPA2102 VoIP Phone Adapter Router 2FXS (Unlocked) picture](/store/img/g/OeoAAOSwT6pViLx1/s-l225/Cisco-Linksys-SPA2102-VoIP-Phone-Adapter-Router-2F.jpg)
Cisco/Linksys SPA2102 VoIP Phone Adapter Router 2FXS (Unlocked)
$16.99
![Lightly Used Cisco 8811 Series VoIP phone Factory Reset great condition picture](/store/img/g/cP8AAOSw6mhh~shy/s-l225/Lightly-Used-Cisco-8811-Series-VoIP-phone-Factory-.jpg)
Lightly Used Cisco 8811 Series VoIP phone Factory Reset great condition
$19.95
![Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone Device picture](/store/img/g/tEIAAOSwlyZmUOeh/s-l225/Grandstream-GS-HT802-2-Port-Analog-Telephone-Adapt.jpg)
Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone Device
$17.50
![Cisco CP-7841 4-Line VoIP Phone picture](/store/img/g/VfgAAOSwnaJlyo8z/s-l225/Cisco-CP-7841-4-Line-VoIP-Phone.jpg)
Cisco CP-7841 4-Line VoIP Phone
$62.99
![Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black picture](/store/img/g/NB8AAOSwMr1mQojT/s-l225/Grandstream-GS-HT802-2-Port-Analog-Telephone-Adapt.jpg)
Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black
$29.99