LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-22-2005, 06:07 AM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 680

Rep: Reputation: 46
copying files from linux to window with samba


I am running samba on debian 3.1 unstable. I can copy files from my linux box to my windows box with no problem. But, I can not copy files from windows to linux.

I am sure it's something simple.
 
Old 09-22-2005, 06:23 AM   #2
dereut
LQ Newbie
 
Registered: Apr 2005
Posts: 23

Rep: Reputation: 0
I am not sure I understand here,

do you try to copy from windows to linux using windows ? if yes, there is tools to mount linux partition on to a windows, but it is not safe to write, I personally use winscp to write from windows to linux, it use ssh and is very safe (windows gui version of scp)

reup
 
Old 09-22-2005, 08:07 AM   #3
cyto
Member
 
Registered: Aug 2004
Location: London
Distribution: FreeBSD 6.0, Freebsd 5.3, Freebsd 4.10, SuSE 9.2 pro, Slackware 10.1, FreeBSD 5.4 RC3
Posts: 270

Rep: Reputation: 30
You need to mount windows share using samba tools like smb mount. Check out this page http://linuxgazette.net/issue19/micro.html .

Last edited by cyto; 09-22-2005 at 08:10 AM.
 
Old 09-22-2005, 04:09 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,527

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
But, I can not copy files from windows to linux.

If you are trying to use the windows machine to copy to the linux box, do you have file sharing enabled for the users home folder? Does the share have write permissions to the /home folder? Samba needs to be running too.

Post you smb.conf file. Not the whole thing, just the relevant parts.

It does not matter what file system the machine has if you are trying to write to it over the network. But having write permissions does.
 
Old 09-23-2005, 03:57 AM   #5
walterbyrd
Member
 
Registered: Apr 2004
Posts: 680

Original Poster
Rep: Reputation: 46
>do you have file sharing enabled for the users home folder?

not sure.

>Does the share have write permissions to the /home folder?

yes.

>Samba needs to be running too.

Samba is running.

smb.conf:

[homes]
comment = Home Directories
browseable = no

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0700

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
 
Old 09-23-2005, 04:36 AM   #6
cyto
Member
 
Registered: Aug 2004
Location: London
Distribution: FreeBSD 6.0, Freebsd 5.3, Freebsd 4.10, SuSE 9.2 pro, Slackware 10.1, FreeBSD 5.4 RC3
Posts: 270

Rep: Reputation: 30
Quote:
Originally posted by walterbyrd
>
smb.conf:

[homes]

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = no

Try changing that to yes. Cheers
 
  


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
Weird problem copying files with Samba... iammike Linux - Networking 2 04-12-2005 06:19 PM
samba? copying files via lan from linux to winNT? egypt Linux - Networking 3 09-28-2004 08:30 AM
Samba hangs up at copying many large files ogcu Linux - Networking 1 05-19-2004 02:29 AM
Samba + Copying files akarako Linux - Networking 0 03-19-2004 10:15 AM
Copying files from Win98 to Samba spandit Linux - Networking 2 11-19-2003 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration