Artifact 98dcba365d767668e8c8678d1feb537146da6d0c6ae6cc6e1b2438bac03c012c:

Ticket change [98dcba365d] - New ticket [12b97e8a619935a4|12b97e8a61] <i>Description of `file attributes&#39; in `file&#39; manual page</i>. by anonymous 2018-12-14 22:33:13.
D 2018-12-14T22:33:13.175
J foundin 8.6
J icomment The\spart\sof\sthe\s`file'\smanual\spage\sexplaining\show\sthe\s`attributes'\ssub-command\r\nworks\son\sUnix\ssystems\scurrently\slooks\slike\sthis:\r\n\r\n\s\sOn\sUnix,\s-group\sgets\sor\ssets\sthe\sgroup\sname\sfor\sthe\sfile.\sA\sgroup\sid\scan\sbe\r\n\s\sgiven\sto\sthe\scommand,\sbut\sit\sreturns\sa\sgroup\sname.\s-owner\sgets\sor\ssets\sthe\r\n\s\suser\sname\sof\sthe\sowner\sof\sthe\sfile.\sThe\scommand\sreturns\sthe\sowner\sname,\sbut\r\n\s\sthe\snumerical\sid\scan\sbe\spassed\swhen\ssetting\sthe\sowner.\s-permissions\ssets\sor\r\n\s\sretrieves\sthe\soctal\scode\sthat\schmod(1)\suses.\sThis\scommand\sdoes\salso\shas\r\n\s\slimited\ssupport\sfor\ssetting\susing\sthe\ssymbolic\sattributes\sfor\schmod(1),\sof\sthe\r\n\s\sform\s[ugo]?[[+-=][rwxst],[...]],\swhere\smultiple\ssymbolic\sattributes\scan\sbe\r\n\s\sseparated\sby\scommas\s(example:\su+s,go-rw\sadd\ssticky\sbit\sfor\suser,\sremove\sread\r\n\s\sand\swrite\spermissions\sfor\sgroup\sand\sother).\sA\ssimplified\sls\sstyle\sstring,\sof\r\n\s\sthe\sform\srwxrwxrwx\s(must\sbe\s9\scharacters),\sis\salso\ssupported\s(example:\r\n\s\srwxr-xr-t\sis\sequivalent\sto\s01755).\sOn\sversions\sof\sUnix\ssupporting\sfile\sflags,\r\n\s\s-readonly\sgives\sthe\svalue\sor\ssets\sor\sclears\sthe\sreadonly\sattribute\sof\sthe\r\n\s\sfile,\si.e.\sthe\suser\simmutable\sflag\suchg\sto\schflags(1).\r\n\r\nThere\sare\sseveral\sproblems\swith\sthis.\r\n\r\n1.\sThe\sword\s"id"\sshould\sbe\scapitalized\swhere\sit\smeans\sID,\si.e.,\sidentity\sor\r\n\s\s\sidentification.\r\n\r\n2.\sI\ssuggest\schanging\sthe\s3rd\ssentence\sto:\r\n\r\nThe\s-owner\soption\sgets\sor\ssets\sthe\suser\sname\sof\sthe\sfile's\sowner.\r\n\r\n3.\sI\ssuggest\schanging\sthe\s4th\ssentence\sto:\r\n\r\nWhen\ssetting\sthe\sowner,\sthe\snumerical\suser\sID\smay\sbe\sused\sinstead\sof\sthe\suser\r\nname.\r\n\r\n4.\sI\ssuggest\sreplacing\sthe\s5th\ssentence\swith:\r\n\r\nThe\s-permissions\soption\ssets\sor\tretrieves\sthe\soctal\scode\sused\sby\schmod(1).\r\n\r\n5.\sThe\s6th\ssentence\sis\sa\spretty\smess\sand\sI'm\snot\sentirely\ssure\show\sto\sfix\sit\r\n\s\s\sproperly.\sLet's\shave\sa\slook:\r\n\r\n\s\sThis\scommand\sdoes\salso\shas\slimited\ssupport\sfor\ssetting\susing\sthe\ssymbolic\r\n\s\sattributes\sfor\schmod(1),\sof\sthe\sform\s[ugo]?[[+-=][rwxst],[...]],\swhere\r\n\s\smultiple\ssymbolic\sattributes\scan\sbe\tseparated\sby\scommas\s(example:\su+s,go-rw\r\n\s\sadd\ssticky\sbit\sfor\suser,\sremove\sread\sand\swrite\spermissions\sfor\sgroup\sand\r\n\s\sother).\r\n\r\n\s\s*\sIt\sshould,\sof\scourse,\sbe\s"does\salso\shave"\sor\s"also\shas\slimited\ssupport".\r\n\s\s\s\s*\sApart\sfrom\sthat,\s"command"\sshould\sbe\sreplaced\swith\s"option".\r\n\s\s*\s"for\ssetting\susing\sthe\ssymbolic\sattributes"\r\n\s\s\s\s*\sSetting\swhat?\sFile\sattributes.\r\n\s\s\s\s*\sUsing\swhat?\sPOSIX\scalls\sthat\s"symbolic\smode"[1].\r\n\s\s*\s"where\smultiple\ssymbolic\sattributes\scan\sbe\sseparated\sby\scommas"\r\n\s\s\s\s*\sPOSIX\ssays\s"symbolic_mode\sexpression"[1],\sso\sI'd\sgo\swith\s"symbolic\r\n\s\s\s\s\s\sexpressions".\r\n\s\s*\sMake\sthe\spart\sin\sparantheses\sinto\sa\ssentence\sof\sits\sown,\slike:\r\n\s\s\s\s*\sFor\sexample,\su+s,go-rw\swill\sset\sthe\ssticky\sbit\sfor\sthe\r\n\s\s\s\s\s\s[user|file|file\sowner],\sremove\sread\sand\swrite\spermissions\sfor\sgroup\sand\r\n\s\s\s\s\s\sother.\r\n\s\s\s\s\s\s*\sThe\sproblem\shere\sis\sthat\s"user",\s"group"\sand\s"other"\sare\sactually\r\n\s\s\s\s\s\s\s\snames\sof\sfile\smode\sbits.\sMaybe\sthey\sshould\ssimply\sbe\sformatted\sitalic.\r\n\r\n6.\sIn\sthe\s7th\ssentence:\r\n\r\n\s\s*\sIt\sshould\sbe\s"ls-style"\s(hyphenated),\sprovided\sthat\sthis\sis\sthe\sright\sterm\r\n\s\s\s\sin\sthe\sfirst\splace.\r\n\s\s\s\s*\sThe\spart\sin\sparantheses\sshould\sbe\smade\sinto\sa\ssentence\sof\sits\sown\shere\sas\r\n\s\s\s\s\s\swell.\r\n\r\n7.\sThe\slast\ssentence\sneeds\ssome\skind\sof\sfix-up\sas\swell.\r\n\r\n\r\nBest,\r\n\r\nmsi\r\n\r\n\r\n[1]\shttp://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html#tag_20_17_13
J login anonymous
J mimetype text/x-fossil-plain
J private_contact b0023a032b39bf3293cac200ed7049f93754ec84
J severity Minor
J status Open
J title Description\sof\s`file\sattributes'\sin\s`file'\smanual\spage
J type Documentation
K 12b97e8a619935a4ef626dfcb69a1c9077074bc8
U anonymous
Z 72bdfd7e07699179e4bdd1de8049c6fd