Need some Samba help

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
I can map my home dir on a FreeBSD machine to a Windows drive. I can see files, move them around or create new files, save them etc. on Explorer.

I just can't copy a file from Windows to the box via the mapped drive. It will just create a 0 byte file, asks me to confirm overwriting the 0 byte file, and throws an error message saying that "Access is denied".

I can, however, create a new empty file on the BSD box, open that file in Windows, paste text in it and save it.

Help?
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
try chmod 777 dirname on BSD...

if that works, then it was permissions related. Make sure the samba user has the right permissions in smb.conf AND in the file system.
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
No, it's definitely not file system permissions related

I have a 'writable = true' (or something like that) in my smb.conf.. is that what you're talking about?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: screw3d
No, it's definitely not file system permissions related

I have a 'writable = true' (or something like that) in my smb.conf.. is that what you're talking about?

No. If the user that smbd runs under does not have write permissions to the directory it is trying to write to, the write will fail. His test would eliminate this as an issue. My method would be looking at the logs instead. His is probably more newbie friendly. ;)

I think that was nweaver's point anyhow. :)
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
Originally posted by: n0cmonkey
Originally posted by: screw3d
No, it's definitely not file system permissions related

I have a 'writable = true' (or something like that) in my smb.conf.. is that what you're talking about?

No. If the user that smbd runs under does not have write permissions to the directory it is trying to write to, the write will fail. His test would eliminate this as an issue. My method would be looking at the logs instead. His is probably more newbie friendly. ;)

I think that was nweaver's point anyhow. :)

chmod -R 777 / is the answer to it all.......

yeah, I usually just hit logs...sometimes I'll bump the log level. tail -f is one of the greatest tools for troubleshooting :D
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: nweaver
chmod -R 777 / is the answer to it all.......

:shocked:

yeah, I usually just hit logs...sometimes I'll bump the log level. tail -f is one of the greatest tools for troubleshooting :D

:beer: I'm always tailing something...
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
I just realized that it's actually working, but only fails on TortoiseCVS-enabled files. Anyone seen this before?