Link to home
Start Free TrialLog in
Avatar of fsimo
fsimo

asked on

Samba and CD shared

Hi,
      I recently upgrade my Linux to 2.0.29 version and samba 1.9.16p10.
      Now, my cdrom (Sony CD33A) directory is a share, but I can't run any program or open any file from W95. Win reports:

      Can not open the file..... when I make a double-click in a .txt file
      The media is write-protected... when I make double-click in a .exe file

      I can browse th cd perfectly.
      All others shares over ext2 and msdos FS are OK.
Avatar of unicorntech
unicorntech

It sounds to me like the permissions have changed. make sure that the permissions for the shared CD drive have the read, write and execute bits set on it

ie chmod 777 username sharedir

This should fix the problem.

Regards,

Jason
Avatar of fsimo

ASKER

Permission has not changed, and are equal to oders shares
Right,,
      Seems like this is a problem with the smb.conf file..
      
Heres the cdrom bit from mine..

[CDROM]
      comment = cdorm
      path = /mnt/cdrom
      public = yes
      writable = yes
      printable = no
      write list = @staff

try that ..
Shane
Avatar of fsimo

ASKER

I try with

     write list = @staff

and
 
     write list = fsimo

It doesn't work. The other params are same.
Thanks anyway
Could it be a problem with upper and lowercase filenames?
I had the same problem once on a harddrive with '95 clients.
Adding the entries case sensitive = no to smb.conf solved
the problems in my case.
Avatar of fsimo

ASKER

I'm very sorry, but nothing seems work.

I'll get the source distribution and recompile it
Try a read only share device , make sure that your cdrom is mount before starting samba and try this configuration ...

[CDROM]
comment = cdorm
path = /mnt/cdrom
public = yes
writable = no
printable = no
Avatar of fsimo

ASKER

I tryed it already.
Hi

I have the same problem, my solution was to install the MARS-NWE
Novell server emulation and it worked fine
This software can be found at
http://www.SerNet.DE/vl/linux-lan/

Regards
Michael

When you omunted the cdrom under linux is it mounted RO (read-only) for local users to that system. My guess is that there is a file perms problem still and it could well have something to do with the mount. Check your mount parameters and let me know how you go...

Regards,

Jason
Hi Jason Unicorntech,

i had the same problem with Samba but not with marsnwe.
So i think it has nothing to do with permissions.

Regards Michael
Avatar of fsimo

ASKER

No... The permissions are allways RO for a RO device.
I have Samba for 2 years and never have this problem with CD.
Now, I download the latest Samba source I will recompile it...
How konows?
ASKER CERTIFIED SOLUTION
Avatar of dirge
dirge

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial