LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-27-2003, 11:06 PM   #1
tornadoburn
LQ Newbie
 
Registered: Nov 2003
Location: Montreal, Canada
Distribution: RH 7.1
Posts: 23

Rep: Reputation: 15
Samba/Winbloze Sharing headaches


Hi, I'm demoralized at this point - it must be 2 weeks that I've been screwing around with Samba and Winbloze but to no vail.

Error Message when tryin gto copy a file from Winbloze to Linux box via WIN Network Neighborhood
**Cannot copy [file]: Access is Denied. The source fiel may be in use.

I would copy and past my smb.conf file if only I knew how - more then just Ctrl-C Ctrl-V .. I'm must be a moron or just unliky lately ;-)

Any ideas would be more then Appreciated.
 
Old 11-28-2003, 03:38 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
To copy it, you could either


Open up a terminal window, type
cat /etc/smb.conf
Select the contents of the file with the mouse, then Edit-->Copy and paste into the web browser.

or

Open up the file with kedit (or another editor) and cut and paste it into the browser.

(or a few other ways...)
 
Old 11-28-2003, 10:42 AM   #3
tornadoburn
LQ Newbie
 
Registered: Nov 2003
Location: Montreal, Canada
Distribution: RH 7.1
Posts: 23

Original Poster
Rep: Reputation: 15
OK - this doesn't make sense but I could only past using K0nquerer- anyhow this ismy smb.conf file:

[global]
path = /home
printing = lprng
create mode = 0777
allow hosts = 192.168.1. 127.
dns proxy = No
encrypt passwords = yes
null passwords = yes
socket options = SO_KEEPALIVE TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
keepalive = 9999
wins support = Yes
max log size = 0
writeable = yes
prefered master = no
directory mode = 0766
security = SHARE
workgroup = JS
server string = Samba Server
comment = Shared Drive
log file = /var/log/samba/%m.log
netbios name = COMPAQ
guest account = me
public = yes
locking = no

[homes]
comment = Home Directories
path = /home
browseable = yes
writeable = yes
valid users = %s

[share]
comment = Music Folder
path = /home/music
writeable = yes
browseable = yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

For some reason I always get the error message:
Cannot Copy [file]. Access denied. The source file may be in use.

I don't have any ideas why it keeps on giving this message - from the command line I can grab anything from the Winbloze machine and paste it in the Samba share.
Thanks in advance for any help.


_________________________
 
Old 11-28-2003, 04:46 PM   #4
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Just to check what you can do. You can mount the share on Windows (which version?).
Can you view, edit, delete and create files on the share from Windows?

Is it just via Win Network Neighbourhood that you have this problem? You say that it works OK from the command line (I assume the DOS command prompt) but not from Win.

Can you copy files into the share in any other way (not sure about this; would Win Explorer be different to Network Neighbourhood?)

Is there anything which is not working correctly, other than using the NN interface in Windows to copy files from local disk to the share?
 
Old 11-29-2003, 10:07 PM   #5
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
it makes alot of different in X and terminal.
See i had a laptop which was sharing it's home dir.
Then i can see it using samba in linux.
if you just do copy past in X it only goes up to 10k and i have a 100MB ethenet connection!!!
After i tried add a single line to /etc/fstab. use cp to do this . It goes up to 800 K??? still slow
Anybody have any ideas?
 
Old 11-30-2003, 04:54 AM   #6
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
I'm too lazy to maintain smb user and password lists so use "force user" and "force group". Users can share their home dirs by themselves with Konqueror (all that's required for read-only access), then I use webmin (https://computername: port 10000) to set the force parms remotely (for write access). Anyone connecting to the share will then connect as the owner. No need to edit smb files directly with webmin, but my smb.conf entry looks like this if you want to:

[HOME_CRITO]
comment = /home/crito
force user = crito
writeable = yes
wide links = no
public = yes
force group = crito
path = /home/crito

Someday I may figure out how to use Samba as an NT domain controller, but it's over my head at the moment (or just plain buggy).

Last edited by Crito; 11-30-2003 at 04:56 AM.
 
Old 11-30-2003, 06:56 AM   #7
EyesOnly
Member
 
Registered: Aug 2003
Location: The Netherlands
Distribution: SlackWare
Posts: 202

Rep: Reputation: 30
Quote:
if you just do copy past in X it only goes up to 10k and i have a 100MB ethenet connection!!!
After i tried add a single line to /etc/fstab. use cp to do this . It goes up to 800 K??? still slow
Anybody have any ideas?
you don't have a 100MegaByte connection, but a 100Megabit connection.
so some litte calculations here(it might be wrong, i am a little tired..)

100Mb=100000000 bits/second
=12500000 Bytes/sec
=12207 Kbytes/sec
=11Mbytes/sec

and this is the absolute maximum peak speed. Take of all the redundancy(for errorcontrol and such) so it will be slower than that.

I have a mixed 100/10 Mbit lan, connected whit hubs, so actaully the whole thing is running at 10Mbit. the maximum speed in theory is a little more than 1MB/sec.
in reality when moving data I get an average from about 500Kbytes/sec.(when doing copy in KDE)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
winbloze question buffed317 General 2 04-14-2005 08:27 AM
Winbloze 9x through XP jatcan General 1 10-09-2004 09:15 AM
Copy Winbloze file to Samba Share -Sharing Violation tornadoburn Linux - Software 1 11-25-2003 12:07 AM
Winbloze killed my root partition Half_Elf Linux - General 8 11-20-2002 10:55 AM


All times are GMT -5. The time now is 03:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration