Re: [orca-list] Confidential diary/journaling with Orca and Ubuntu 18.04



First think of a matrix.  Let's say it has three rows and three columns
for this example.  It actually has 4 columns since the 4th is what's
described as the sticky bit and the sticky bit when employed is the first
of what will be four digits if digits are used.  The second digit is the
user digit and it points at your own user account.  The third digit is the
group digit and it points at anyone in your group.  The fourth digit is
the world digit and points at the rest of the world whenever they have or
don't have access to your equipment and files.  Now let's talk about
matrix rows.  Three rows exist.  The first row is read.  The second row is
write.  The third row is execute.  The execute row is what's used to make
a shell script executable so it can run on a machine assuming all other
elements in it are correct.
If you want to put something in the read row in terms of numbers you have
a choice of 0 or 4.  To put something in the write row you have a choice
of 0 or 2.  To put something in the execute row you have a choice of 0 or
1.  So, to generate a numerical value for any file or directory permission
you total the columns and remember to multiply the first column by 1,000
if using 4 digits or 100 if not using the sticky bit column  The fourth
column isn't multiplied but the third column is multiplied by 10.  Those
numbers when totaled give you a file permissions number or directory
permissions number and you adjust those using chmod.  Usually chmod number
file/directory gets the job done.  When permissions get adjusted on a
particular directory they apply to that directory's contents and
subdirectories under it if I'm not completely mistaken.  The next utility
to know about is chown which changes ownership of files and directories on
a system.  Usual format for that is chown name
directory(or)directory/filename(or)directory/filename(s) use wildcards
where applicable for the last case.


--



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]