Re: Sharing CD-ROM over Samba on Fedora 8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Max,

Please explain in one syllable terms if possible.
I want to share the cdrom drive over the network.
Why don't you just copy the contents of the cd to a folder and share the folder with samba?
Cause I dont just want to share 1 particular cd, if I did then that would be one way to achieve it.
As you pointed out the path to the cd is /media/? so why are you trying to share /media/cdrom(is the cd named cdrom?)?
The path to the cd isn't /media at all I never said that.... xfce that comes with fedora mounts the cdrom in /media/<enter name of cdrom here>/

I want to be able to access any cd I put in the drive via samba and I was told that I would need to get samba to mount the cd in one single folder which name would never change i.e. /media/cdrom the gui that comes with fedora mount the cdrom differently in that the folder is the name of the cdrom which makes it very difficult to share the cdrom as the folder name keeps changing.

The lines I posted below are meant to mount/unmount the cdrom in the same folder each and everytime when I try to access it but I dont know how to get these to work.

root preexec = /sbin/mount /media/cdrom
root postexec = /sbin/umount /media/cdrom

Which brings me back to the below comment from the smb.conf file.

# If you want to run scripts (preexec/root prexec/print command/...) please
# put them into the /var/lib/samba/scripts directory so that smbd will be
# allowed to run them.
# Make sure you COPY them and not MOVE them so that the right SELinux context
# is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts

I dont understand where to get the scripts from to put them in that folder.

max wrote:
Daniel Tweedy wrote:
Thank you for the reply but it didn't work, the problem I think I am having is one of it not mounting and unmounting the cdrom.

Fedora 8 mounts the cdroms in the /media folder however a folder with the name of the cdrom shows up there, i.e. say for example I had a cdrom with the name "FedoraList" I would have /media/FedoraList in that folder which makes it difficult to share the cdrom drive itself.

Also would it be possible for someone to explain this to me as I didn't understand it :-

# If you want to run scripts (preexec/root prexec/print command/...) please # put them into the /var/lib/samba/scripts directory so that smbd will be
# allowed to run them.
# Make sure you COPY them and not MOVE them so that the right SELinux context # is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts

I dont understand where to get the scripts from to put them in that folder.

I am using ;-

root preexec = /sbin/mount /media/cdrom
root postexec = /sbin/umount /media/cdrom

[homes]
       comment = Home Directories
       browseable = no
       writable = yes

[cdrom]
       comment = Linux CD-ROM
       path = /media/cdrom
       read only = yes
       locking = no
       writable = no

The home directories work fine with security = user, however they disappear leaving on the cdrom folder showing with security = share, the cdrom folder however still doesn't share the contents of the cdrom though.

I've got selinux disabled, and also this is my output from df -k.

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                    114016724  83634920  24496672  78% /
/dev/sda1               194442     19022    165381  11% /boot
tmpfs                   509304         0    509304   0% /dev/shm

Nicolae Ghimbovschi wrote:
Try to change

security = user
to
security = share

It might help you.

On Thu, Jun 5, 2008 at 12:42 AM, Daniel Tweedy <daniel.tweedy@xxxxxxxxx> wrote:
I was just wondering if any of you have any experience of sharing a cd-rom over samba, i'm not having very much luck in getting it working you see, have googled and search a lot and I think I am very close to getting it working, but am kinda stuck as to what else I could do from where I am, so I
am really looking for a few pointers/tips/ideas.

[cdrom]
comment = CD-ROM
path = /cdrom
writable = no
locking = no
public = yes
read only = yes
valid users = %S

This is what i'm using at the moment and it shows up on the windows pc but it asks for a password when I try to connect, but none of the users set up on the box or in the smbpasswd file work and root doesn't work either, it just keeps poping up asking for the password again no matter what I try.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list





Why don't you just copy the contents of the cd to a folder and share the folder with samba? why do you want to share the cdrom device( i am not sure you can anyway)? As you pointed out the path to the cd is /media/? so why are you trying to share /media/cdrom(is the cd named cdrom?)? Either your making things to complicated or I don't understand what you are doing. Please explain in one syllable terms if possible.


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux