[Samba] Access denied when copy file via batch script to samba shre
manuel.piessnegger at straumann.com
manuel.piessnegger at straumann.com
Tue Oct 21 15:41:25 GMT 2003
Hello,
I want to replicate some files from one linux samba share (share=install)
to another one (share=install).
When I copy these files manually over the Windows Explorer (drag/drop), I
have no problem I can create,overwrite a existing file.
When I do it via a dos batch (robocopy) I have the error message "Access
denied". I'm authenticated as the same user in both steps.
OS:Linus Suse 7.3
Samba: Version : 2.2.8a
Vendor: SuSE AG, Nuernberg, Germany
Release : 34 Build Date: Tue
Jul 1 13:41:31 2003
smb.conf
=========================================================================
# Global parameters
[global]
workgroup = xx
netbios name = xx
server string = Samba %v on %L - Primary
security = DOMAIN
encrypt passwords = Yes
map to guest = Bad Password
password server = xx
keepalive = 30
os level = 2
local master = No
domain master = no
kernel oplocks = No
allow trusted domains = yes
guest account = guest
add user script = /usr/sbin/sambauser %u Samba_created
wins support = no
log level = 1
syslog = 0
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
[install]
comment = Installshare for unattend Installations
path=/data/install
guest ok = yes
browseable = no
readonly = no
create mask = 2775
directory mask = 2775
=========================================================================
The only information from the samba log is:
=========================================================================
unix_clean_name [clients/USWAAD00_cfg.ini]
[2003/10/21 03:25:19, 3] smbd/trans2.c:call_trans2setfilepathinfo(2394)
call_trans2setfilepathinfo(8) clients/USWAAD00_cfg.ini info_level=1004
totdata=40
[2003/10/21 03:25:19, 3] smbd/dosmode.c:unix_mode(111)
unix_mode(clients/USWAAD00_cfg.ini) returning 0764
[2003/10/21 03:25:19, 2] smbd/trans2.c:call_trans2setfilepathinfo(2870)
chmod of clients/USWAAD00_cfg.ini failed (Operation not permitted)
[2003/10/21 03:25:19, 3] smbd/error.c:error_packet(94)
error string = Operation not permitted
[2003/10/21 03:25:19, 3] smbd/error.c:error_packet(113)
error packet at smbd/trans2.c(2871) cmd=50 (SMBtrans2)
NT_STATUS_ACCESS_DENIED
[2003/10/21 03:25:20, 3] smbd/process.c:process_smb(846)
Transaction 156 of length 45
[2003/10/21 03:25:20, 3] smbd/process.c:switch_message(685)
switch message SMBclose (pid 3526)
[2003/10/21 03:25:20, 3] smbd/reply.c:reply_close(3192)
close fd=-1 fnum=13770 (numopen=1)
=========================================================================
Thank's a lot for your input
Manuel Piessnegger
The life is too short for reboots
More information about the samba
mailing list