Samba server shared Optical Drive

Source: Internet
Author: User
Samba server shared optical drive-Linux general technology-Linux technology and application information. The following is a detailed description. We have discussed the configuration of the samba server. Here we will talk about the shared optical drive:
Vim/etc/samba/smb. conf
// Add the following line Content
[Cdrom]
Comment = cdrom's share
Path =/media/cdrom
Public = yes
Browseable = yes
Root preexec =/bin/mount-t iso9660/dev/hdc/media/cdrom
Root postexec =/bin/umount/media/cdrom
Note: root preexec indicates that the mount command is run as root during connection, while root postexec indicates that umount is run as root During disconnection, which can effectively share the optical drive.
Don't forget: service smb restart restarts the service !!
I have successfully tested it on the machine !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.