Re: Sharing CD-ROM over Samba on Fedora 8

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

 



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





--
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