On 05/12/2019 15.00, David T-G wrote:
Carlos, et al --
...and then Carlos E. R. said... % % On 05/12/2019 02.41, David Haller wrote: % > % > On Wed, 04 Dec 2019, Carlos E. R. wrote: %
... % >> /usr/bin/chmod u+r+w+x\,g+w+x\,o-r-w-x\,+t * cer Telcontar = % >> (root) /usr/bin/chmod u+r+w\,g+r+w\,o+r-w-x\,-t * % > % > Why not use numeric modes here, should be much easier to read: % > % > chmod 0660 chmod 1770 % % Not to me, the text is easier to read :-)
You could, FWIW, simplify those as
u+rwx,o-rwx # u+a,g-a ... o+r-wx
to make the reading simpler. It's a little change, but maybe helpful.
But to me it is easier as I wrote it :-) chmod u+r+w,g+r+w,o+r-w-x,-t The escapes are for the sudoers, not for the command itself. Sudoers doesn't like the commas. So your version would end in the sudoers file like this:
u+rwx\,o-rwx
% % Numeric mode makes me consult my tables or do maths [snip]
*grin* I get it, even though I'm one of those that can just look at octal and see the perms :-)
:-) To me, I would do it like "+++++?+--". Ie, the same as "ls -" prints them. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)