Mike808
2000-Dec-08 21:58 UTC
unix chmod not following NTFS/FAT attrib operation [w/patch2]
[patch of samba-2.0.7/source/param/loadparam.c] [patch of samba-2.0.7/source/smbd/dosmode.c] I forgot these on the earlier post: [patch of samba-2.0.7/source/include/proto.h] $ diff -c proto.h.orig proto.h *** proto.h.orig Tue Apr 25 18:06:48 2000 --- proto.h Wed Dec 6 23:11:03 2000 *************** *** 1220,1225 **** --- 1220,1226 ---- BOOL lp_fake_dir_create_times(int ); BOOL lp_blocking_locks(int ); BOOL lp_inherit_perms(int ); + BOOL lp_dos_chmod(int ); int lp_create_mask(int ); int lp_force_create_mode(int ); int _lp_security_mask(int ); --------------------------------------------- [patch of samba-2.0.7/docs/manpages/smb.conf.5] $ diff -c smb.conf.5.orig smb.conf.5 *** smb.conf.5.orig Tue Apr 25 20:59:00 2000 --- smb.conf.5 Wed Dec 6 23:19:47 2000 *************** *** 1025,1030 **** --- 1025,1033 ---- \fBdont descend\fP .IP .IP o + \fBdos chmod\fP + .IP + .IP o \fBdos filetime resolution\fP .IP .IP o *************** *** 2359,2364 **** --- 2362,2383 ---- .IP \fBExample:\fP \f(CW dont descend = /proc,/dev\fP + .IP + .IP "\fBdos chmod (S)\fP" + .IP + Under DOS and Windows, any user can can change the attributes of a + file\&. Under POSIX semantics, only the owner of the file + or root may change the permissions\&. By default, Samba runs with POSIX + semantics and refuses to change the permissions on a file if the user + smbd is acting on behalf of is not the file owner\&. Setting this option + to True allows DOS semantics and smbd will change the file permissions as + DOS requires\&. + .IP + \fBDefault:\fP + \f(CW dos chmod = False\fP + .IP + \fBExample:\fP + \f(CW dos chmod = True\fP .IP .IP "\fBdos filetime resolution (S)\fP" .IP --------------------------------------------- [patch of samba-2.0.7/docs/html/smb.conf.5.html] $ diff -c smb.conf.5.html.orig smb.conf.5.html *** smb.conf.5.html.orig Tue Apr 25 18:05:38 2000 --- smb.conf.5.html Wed Dec 6 23:25:41 2000 *************** *** 583,588 **** --- 583,589 ---- <p><li > <a href="smb.conf.5.html#directorymode"><strong>directory mode</stron g></a> <p><li > <a href="smb.conf.5.html#directorysecuritymask"><strong>directory sec urity mask</strong></a> <p><li > <a href="smb.conf.5.html#dontdescend"><strong>dont descend</strong></ a> + <p><li > <a href="smb.conf.5.html#doschmod"><strong>dos chmod</strong></a> <p><li > <a href="smb.conf.5.html#dosfiletimeresolution"><strong>dos filetime resolution</strong></a> <p><li > <a href="smb.conf.5.html#dosfiletimes"><strong>dos filetimes</strong> </a> <p><li > <a href="smb.conf.5.html#exec"><strong>exec</strong></a> *************** *** 1486,1491 **** --- 1487,1505 ---- <code> none (i.e., all directories are OK to descend)</code> <p><strong>Example:</strong> <code> dont descend = /proc,/dev</code> + <p><a name="doschmod"></a> + <p></p><dt><strong><strong>dos chmod (S)</strong></strong><dd> + <p>Under DOS and Windows, if any user can change the permissions of a + file. Under POSIX semantics, only the owner of the file + or root may change the permissions. By default, Samba runs with POSIX + semantics and refuses to change the permissions on a file if the user + smbd is acting on behalf of is not the file owner. Setting this option + to True allows DOS semantics and smbd will change the file permissions as + DOS requires. + <p><strong>Default:</strong> + <code> dos chmod = False</code> + <p><strong>Example:</strong> + <code> dos chmod = True</code> <p><a name="dosfiletimeresolution"></a> <p></p><dt><strong><strong>dos filetime resolution (S)</strong></strong><dd> <p>Under the DOS and Windows FAT filesystem, the finest granularity on --------------------------------------------- [patch of samba-2.0.7/docs/yodl/smb.conf.5.html] $ diff -c smb.conf.5.yo.orig smb.conf.5.yo *** smb.conf.5.yo.orig Tue Apr 25 18:05:55 2000 --- smb.conf.5.yo Wed Dec 6 23:29:39 2000 *************** *** 840,845 **** --- 840,847 ---- it() link(bf(dont descend))(dontdescend) + it() link(bf(dos chmod))(doschmod) + it() link(bf(dos filetime resolution))(dosfiletimeresolution) it() link(bf(dos filetimes))(dosfiletimes) *************** *** 2105,2110 **** --- 2107,2129 ---- bf(Example:) tt( dont descend = /proc,/dev) + + label(doschmod) + dit(bf(dos chmod (S))) + + Under DOS and Windows, if any user can change the permissions of a + file. Under POSIX semantics, only the owner of the file + or root may change the permissions. By default, Samba runs with POSIX + semantics and refuses to change the permissions on a file if the user + smbd is acting on behalf of is not the file owner. Setting this option + to True allows DOS semantics and smbd will change the file permissions as + DOS requires. + + bf(Default:) + tt( dos chmod = False) + + bf(Example:) + tt( dos chmod = True) label(dosfiletimeresolution) dit(bf(dos filetime resolution (S))) --------------------------------------------- That's all for now. Any place I missed? mike808/ -- perl -e "print pack\"H*\",\"596f752063616e277420666978207374757069642e\""