Groups > eComStation > eComStation networking > Re: Samba DOS file attribute support non existant?




Samba DOS file attribute support non existant?

Samba DOS file attribute support non existant?
Mon, 03 Sep 2007 11:40:09 GMT
Ok, I finally gave up on NFS, so you can ignore that thread.  I now have 
finally got Samba running, and it's working great other than the fact I 
seem to have absolutely no support for old dos attributes like
"hidden" 
and "read only" and such.  I've tried all sorts of different tricks
and 
commands in the smb.conf, but nothing seems to work.  Is it possible to 
support this, or is missing them just a neccesary evil?  If it is 
possible, could someone kindly explain to me how to do it under 
ecomstation?  Maybe an example smb.conf would help...

Thanks in advance,

-Raymond Beehler
Post Reply
Re: Samba DOS file attribute support non existant?
Tue, 04 Sep 2007 23:16:00 +020
Raymond Beehler wrote:
> Ok, I finally gave up on NFS, so you can ignore that thread.  I now have 
> finally got Samba running, and it's working great other than the fact I 
> seem to have absolutely no support for old dos attributes like
"hidden" 
> and "read only" and such.  I've tried all sorts of different
tricks and 
> commands in the smb.conf, but nothing seems to work. 

Maybe it already works without you realizing it?

The DOS attributes Read Only, Archive, Hidden and System were introduced 
in samba because UNIX filesystems did not have DOS, read FAT file 
attributes like "hidden" and read only.

They made no sense on multi-user filesystems that really could hide and 
protect files from users other then root. Fi "- rwx --- ---" is only 
readable by root and teh owner.

As you know "hidden" has little relevance when filemanagers have
options 
like "show hidden files". Under UNIX the equivalent of pseudo hidden
is 
a point file (.hiddenfile.txt).

But because DOS, Windows and OS/2 programs using samba shares expected 
to find these FAT attributes, they were introduced in samba.


  Is it possible to
> support this, or is missing them just a neccesary evil?  If it is 
> possible, could someone kindly explain to me how to do it under 
> ecomstation?  Maybe an example smb.conf would help...

Just set the attributes and see if it works. Here it does without 
special smb.conf entries as the OS/2 filesystems support them natively.

> Thanks in advance,
> 
> -Raymond Beehler
> 




Post Reply
Re: Samba DOS file attribute support non existant?
Wed, 05 Sep 2007 01:44:17 GMT
No, it doesn't seem to support them.  They seem to set but upon closer 
inspection they never really change, they revert back to their old 
properties.  Nothing truly changes on the network drive.

What's your config file look like?  Perhaps I am missing something...  But 
I can't seem to actually use such attributes.  I'm using JFS if that makes 
a difference.
Post Reply
Re: Samba DOS file attribute support non existant?
Wed, 05 Sep 2007 19:54:20 +020
Raymond Beehler wrote:
> No, it doesn't seem to support them.  They seem to set but upon closer 
> inspection they never really change, they revert back to their old 
> properties.  Nothing truly changes on the network drive.

You are right.

This is the case when 'store dos attributes = Yes' is not set (no seems 
to be the default):

[global]
store dos attributes = Yes


> What's your config file look like?  Perhaps I am missing something...  
> But I can't seem to actually use such attributes.  I'm using JFS if that 
> makes a difference.
> 

[global]
[global]
workgroup = VPC
netbios name = os2server
server string = Samba %v op %h
interfaces = 192.168.123.6/255.255.255.0
bind interfaces only = Yes
; Again, bind to LAN interface only
hosts allow = 192.168.123.0/255.255.255.0
hosts deny = 0.0.0.0/0
os level = 40
lm announce = Yes
wins support = No
; name resolve order = hosts bcast
name resolve order =  hosts bcast lmhosts
;My Linux samba server is the domain master on thuis
;This one uses the domain VPC
preferred master = Yes
local master = Yes
domain logons = Yes
domain master = Yes
printing = bsd
printcap name = f:/mptn/etc/printcap
; printing = cups
; printcap name = cups
print command = lpr
printer name = HPColorL
load printers = no

guest account = guest
; null passwords = no
security = USER
encrypt passwords = Yes
; An alternative: not needed for the LANMAN2 encrypted passwords from OS/2
; encrypt passwords = No
; update encrypted = Yes
; unix password sync probably dos not work under OS/2 (not tested yet).
unix password sync = no
log level = 2
dos charset = CP850
unix charset = CP850
display charset = LOCALE
ea support = Yes
; staat standaard uit.
store dos attributes = Yes


Post Reply
Re: Samba DOS file attribute support non existant?
Thu, 06 Sep 2007 10:37:02 +020
Raymond Beehler schrieb:
> Ok, I finally gave up on NFS, so you can ignore that thread.  I now have
> finally got Samba running, and it's working great other than the fact I
> seem to have absolutely no support for old dos attributes like
"hidden"
> and "read only" and such.

That is broken in current OS/2 Samba builds. It is a known problem,
see http://svn.netlabs.org/samba/ticket/15


Kind regards,
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact