Discussion Locked

Shared directory on Linux using Samba

0 helpful
1 reply
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

1 reply

by les

Check your overiding permissions on the Linux Server. Even though you have enabled access in smb.conf you may not have given the user access rights into the actual folder on the Server. i.e. if you have a structure /home/users and you share users under smb.conf then the valid usernames that connect to the share must be able to get in at the top level, homes.

This discussion is closed to new replies.