Problems with map hidden (and possibly map system)
MCCALL,DON (HP-USA,ex1)
don_mccall at hp.com
Wed Nov 6 18:58:01 GMT 2002
Hi Glen,
Just to confirm, this also happens with Samba 3.0alpha20.
If I make a file on my c drive, drag it onto the share
(defined below) named 'mccall' (unix perms 777), that works.
If I THEN mark that file readonly on my c drive, and drag it
onto the share 'mccall' again, it asks me if I want to overwrite
the existing file, I say yes, and I get the error:
"Cannot copy filename: Access is denied.
Make sure the disk is not full or write-protected
and that the file is not currently in use."
My smb.conf:
# Global parameters
[global]
workgroup = TEST
netbios name = ECL2000
server string = Samba Server
smb passwd file = /var/opt/samba/locks/smbpasswd
username map = /usr/local/samba/lib/username.map
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
lock dir = /var/opt/samba/locks
read only = No
short preserve case = No
dos filetime resolution = Yes
[homes]
comment = Home Directories
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
[mccall]
path = /tmp/mccall
create mask = 0777
map hidden = Yes
Hope this helps,
Don
> -----Original Message-----
> From: Glen Gibb [mailto:grg at ridley.unimelb.edu.au]
> Sent: Tuesday, November 05, 2002 20:03
> To: jra at dp.samba.org
> Cc: samba-technical at lists.samba.org
> Subject: Re: Problems with map hidden (and possibly map system)
>
>
> On Wed, 6 Nov 2002, Glen Gibb wrote:
>
> > > Have you tested this against a Windows 2000 or XP server ? What is
> > > the behavior there ?
> > >
> >
> > No, sorry. I don't have access to a 2k/XP server (at least
> not for at
> > a month or so).
>
>
> I've done a little more testing (between a Win2K and an NT4
> server at a
> site that I don't manage), and I can cofirm that this is a Samba only
> problem.
>
>
> New Test Case:
> ==============
>
> 1. Create a file on a local drive
> 2. Copy the file to the server (eg. by dragging).
> 3. Change the hidden attribute of the local file
> 4. Copy file to server
> 5. A message will appear asking if you want to replace the
> file. Say yes
>
>
> Copying from 2k to NT works fine.
> Copying from 2k to Samba with map hidden = no works fine
> Copying from 2k to Samba with map hidden = yes FAILS (ps.
> make sure the
> create mask doesn't clear the world execute bit).
>
>
> Hope this helps.
> Glen
>
More information about the samba-technical
mailing list