Solved

SAMBA and Win2k  revisited

Posted on 2002-06-14
11
242 Views
Last Modified: 2013-12-16
I'm having issues with SAMBA on a RedHat 7.2 and my win 2k machine.  I have the shares setup so that browsing works from the 2k machine, and I can read and copy everything from the SAMBA share to the windows box.  But when I copy a file from the wndows machine to the share I get this error on the windows box:

Sharing violation. File may be in use.

Or something like that.  I made that sure I'm not using the file on the windows machine and I can copy the file elswhere.  Also I checked the conf file for SAMBA and I made sure that read only is no, etc . . .  
0
Comment
Question by:spcmnspff
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 5

Author Comment

by:spcmnspff
ID: 7078298
Oops! Double Post please ignore . . .
0
 

Expert Comment

by:81ncpappy
ID: 7159751
This may be overly simplified but have you checked the UNIX permissions on the directory from which you are sharing via SAMBA?  What I mean is to check the permissions from the UNIX perspective (not the Windows perspective).  I have had that error message come up on Windows when my UNIX permissions didn't allow access to anyone, much less SAMBA.

Hope this helps.

Nick
0
 

Expert Comment

by:81ncpappy
ID: 7159760
In addition, it seems that the directories which are shared via SAMBA have the read and execute bits set on the UNIX end...  In other words.

chmod -R 555 /dir/shared/via/samba

or whatever your directory is called...

:-)
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 5

Author Comment

by:spcmnspff
ID: 7159886
The only way I seem to get SAMBA working is to
chmod 777 /home/shared in samba.conf, I set up share mode access and I allow a guest user to read and write to the share.  Basically a wide open share.  This isn't a big deal on my home lan behind an ipchains firewall.  But still, I would like to be able to learn how to make things more secure. I've tried user mode with mappings from windows users to unix users and domain mode pointing to my NT4 PDC while adding the SAMBA pc to my domain.  Nothing has worked.  I even tried switching encryption on and off in SAMBA to no avail.  It seems that SAMBA authentication issues can be really frustrating.

0
 

Expert Comment

by:81ncpappy
ID: 7159946
I suppose I would have to see your smb.conf file to give more feedback.  

Nick
0
 
LVL 5

Author Comment

by:spcmnspff
ID: 7160165
Thanks, I'm not home at the moment. I'll send it to you tonight.
0
 

Expert Comment

by:Relifram
ID: 7267573
I don't know if this question was ever answered for spcmnsspff, however I was having similar problems. I was working with mp3's, and quite often when I tried to copy or rename (from my w2k box) a file/directory on the samba share I would get sharing violations.

Tthe fix: Turn off "enable web content in folders" in the Tools/Folder Options menu. My best guess is that windows was trying to load some portion of the file in the background to display a thumbnail of it and thus I was getting the sharing violations.

0
 

Expert Comment

by:CleanupPing
ID: 9077003
spcmnspff:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 1

Expert Comment

by:drewber
ID: 9220374
This question has been classified abandoned. I will make a recommendation to the moderators on its resolution in a week or two. I appreciate any comments that would help me to make a recommendation.
 

Unless it is clear to me that the question has been answered I will recommend delete. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

 
If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp
 
drewber
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 10380072
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ - no points refunded

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

paullamhkg
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 10420903
PAQed - no points refunded (of 100)

Computer101
E-E Admin
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

751 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