Nov. 16th, 2011

victor_sudakov: (Default)
При "store dos attributes = yes" samba хранит DOS-атрибуты файлов:

Bit 0 Read-Only
Bit 1 Hidden
Bit 2 System
Bit 3 Volume Label
Bit 4 Directory
Bit 5 Archive

в extended attributes UFS в псевдо-hex виде, а на самом деле в виде строк:

$ getextattr user DOSATTRIB file.txt
file.txt 0x20
$ getextattr -x user DOSATTRIB file.txt
file.txt 30 78 32 30

Сбросить все атрибуты
$ setextattr user DOSATTRIB 0x0 file.txt
victor_sudakov: (Default)
Сухое белое, Испания. Ничего особенного, пить можно.

Profile

victor_sudakov: (Default)
Виктор Судаков

December 2024

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 2nd, 2025 06:39 pm
Powered by Dreamwidth Studios