Discussion Locked

Shared directory on Linux using Samba

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am attempting to share a directory on my Linux box which is accesible from Windows 2000. I have set up an account on Linux which is the same as my Windows 2000 logon and also run smbpasswd -a #my Windows 2000 logon.

in smb.conf I have added:-
[global]
workgroup = #my workgroup
os level = 2
kernal oplocks = No
smb passwd file = #direction to sambapasswd
security = share
encrypt passwords = Yes
guest account = Nobody
map to guest = Bad User

[Homes]
comment = Home Directories
guest ok = Yes
read only = No
create mask = 0700
directory mask = 0700
browsable = Yes

[swap]
comment = Shared files on Linux
path = #path to shared directory
read only = No
create mask = 0775
directory mask = 0775
browsable = Yes#end

Here I have just listed the parts where I think I may be going wrong.
The problem is that although I can view the shared directory from the windows 2000 box (in this case "swap")and enter it, I cannot transfer files to it. I receive the message:-
"Cannot copy #name of file: Access is denied. The source file may be in use."

Thanks for any assistance.
Steve

6 replies

by lintadsl

Looks good to me.
You may want to check permission/ownership of the folder.
chown nobody:nobody /swap
chmod 775 /swap

This should fix for you.
Regards,

by searogue

Hello,
I am somewhat of a newbie to Linux but, something that stands out to me which appears to be incorrect is that you are trying to copy something into swap. The error you are getting makes perfect sense to me. You cannot copy to (access) something which is in use. When your pc is on, the swap is in use & therefore you cannot manipulate it as you are trying & that explains the error "The source file may be in use".

HTH

Best Regards,

Tony

This discussion is closed to new replies.