Samba and hidden files problem

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Thu Nov 1 06:22:03 GMT 2001


Rodney,
the 'hidden' attribute is handled by Samba by using the execute bit for
'other'.
with map hidden=yes, ANY file in the directory that has this unix permission
bit set, is going to show up as hidden.  Any files that you do NOT want to
be hidden, you must make sure that the unix other execute bit is NOT set.
For example:

file1   rw-rw-rw-     IS NOT going to be hidden.
file2   rwxrwxrwx     IS going to be hidden  (last 'x' is what is doing
this).

Check out the "Using Samba" book that comes in html form with Samba.

Hope this helps,
don

-----Original Message-----
From: Rodney Arne Karlsen [mailto:samba at strangeminds.org]
Sent: Thursday, November 01, 2001 4:32 AM
To: samba at lists.samba.org
Subject: Samba and hidden files problem


Hi all

I have a not so little problem.

I have recently installed a samba file server at a clients premises. All
works fine until the decided to run a rather old dos based program.

For some unknown reason this software will not run unless cirtain files are
hidden. My problem now is that hidden files on linux filesystems and dos
filesystems are rather different. In linux all you do is put a . (dot) in
the beginning of the file name. In windows you set the hidden file
attribute.

The server is being accessed from windows 9x clients.

If you try to set the hidden attribute via the windows client the attribute
does not stick. No error messages or anything, it just reverts to not being
hidden.

Now I managed to find an option in samba "map hidden = yes" almost solves
my problem. With this set all files in the share are hidden and cannot be
unhidden. The hidden check box in the windows file properties box is also
greyed out.

I found another option "dos filemode = yes" which once set un-greys the
hidden box but everything still stays hidden.

The problem I have now is that all files are either hidden or un-hidden and
the client wants their software working.

I am using 2.2.0a on slackware 8. Any ideas?

Thanks

Rodney Arne Karlsen
P-)




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list