Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to write to a samba share from win2k

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello everybody,
I´m having a strange problem when I try to write from my win2k professional (sp2) to a samba share located in one linux machine.
I can browse through the share, and it is possible to copy files from the samba share to the win2k machine.
Bu if I try to "paste" a file in the shared directory, I get the following message: "Cannot copy XXX. Access denied. File of origin may be in use."
Here is my smb.conf contens:
# Samba config file created using SWAT
# from elena.casa.es (192.168.0.1)
# Date: 2002/01/13 20:17:21

# Global parameters
[global]
workgroup = CASA
interfaces = 192.168.0.1/255.255.255.0
security = SHARE
log file = /var/log/samba-log.%m
nt acl support = No
keepalive = 30
guest account = marcos
writeable = Yes
hosts allow = 192.168.0.0/255.255.255.0
hosts deny = ALL
printing = cups
print command = lpr -r -P %p %s

[cdrom]
comment = CD-ROM en linux
path = /cdrom
writeable = No
create mask = 0750
guest ok = Yes
locking = No

[MySQL]
comment = Directorio con la BD en MySQL
path = /var/mysql
create mask = 0750
guest ok = Yes
locking = No

[comun]
comment = Carpeta comun para Daniela y Marcos en elena
path = /home/marcos/backups
create mask = 0750
guest ok = Yes
locking = No

[printers]
comment = All Printers
path = /tmp
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr -r -h -P %p %s
printer = lp
browseable = No
I have been browsing the log file with no success.
Can anybody give a hint to solve this annoying problem?
 
Hi,



There are a couple of ways. You can add :



read only=no



to a share definition. However that basically ignores the linux permissions are permits general read/write/create/delete access. To be more specific its better to use 'write list' with a list of users or groups that can write and leave the 'read only=' at its default of yes for everyone else. For example :



write list=user1



or



write list=user1 @group1



(where @group1 means all members of the linux 'group' group1)



You already have a global 'writeable=yes' which is the same as 'read only=no' but I'd suggest you try putting this in the actual share definitions (as per cdrom example).



The other possibility is that its a sp2 problem. There are known issues with samba 2.2.0 and w2k/sp2 and joining domains but perhaps the problem is wider than just that --> . If you are on 2.2.0 or earlier try the latest version, i.e. 2.2.2 .



Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top