Solved

Samba and CD shared

Posted on 1997-12-21
13
251 Views
Last Modified: 2010-05-18
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.
0
Comment
Question by:fsimo
  • 5
  • 2
  • 2
  • +4
13 Comments
 
LVL 4

Expert Comment

by:unicorntech
ID: 1587239
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
0
 

Author Comment

by:fsimo
ID: 1587240
Permission has not changed, and are equal to oders shares
0
 

Expert Comment

by:shaneo072197
ID: 1587241
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
0
 

Author Comment

by:fsimo
ID: 1587242
I try with

     write list = @staff

and
 
     write list = fsimo

It doesn't work. The other params are same.
Thanks anyway
0
 
LVL 2

Expert Comment

by:alexbik
ID: 1587243
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.
0
 

Author Comment

by:fsimo
ID: 1587244
I'm very sorry, but nothing seems work.

I'll get the source distribution and recompile it
0
Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

 

Expert Comment

by:sfavre
ID: 1587245
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
0
 

Author Comment

by:fsimo
ID: 1587246
I tryed it already.
0
 
LVL 3

Expert Comment

by:handrich
ID: 1587247
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

0
 
LVL 4

Expert Comment

by:unicorntech
ID: 1587248
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
0
 
LVL 3

Expert Comment

by:handrich
ID: 1587249
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
0
 

Author Comment

by:fsimo
ID: 1587250
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?
0
 
LVL 1

Accepted Solution

by:
dirge earned 200 total points
ID: 1587251
Hi. I know this is back-to-permissions, but this worked for me, strangely enough:

chmod g+s /cdrom

where /cdrom is the mount point.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now