[H-GEN] Re: [Linux-SA] file permisions (fwd)

The Fuzzy One s335810 at student.uq.edu.au
Wed Feb 11 20:36:37 EST 1998


On Thu, 12 Feb 1998, Andrae Muys wrote:

> Now convert each of the 4 triplets into a octal number

> sst rwx rwx rwx
>  7   7   7   7

	Everything that Andrae said is good and valid, but not being and
engineer, I prefer to think about it a little differently for my own
recollection.

	Firstly, you hardly ever have to worry about sst for normal files
:)  So I ignore that part.  If I do need it, I just use the old +/-
notation.  So for you average file you've got a three digit number

	eg 664, or 666

	The first digit is your permisions.
	The second digit is group permissions.
	The third digit is everyone else's permissions.

	executable = 1  (2^0)
	writable   = 2  (2^1)
	readable   = 4  (2^2)

	So just add up the permissions you want for each digit, and go :)
You don't have to worry that you're in octal, because you cant get more
than 7 by adding those digits up anyway ;)

        fuzzy BSc.

                                //////      //////    ///  ///
         ////////   // //    ////   ///  ////   ///  ///  ///
                            ///    ///  ///    ///  ///  ///
       // // //  ////////  ///    ///  ///    ///  ///  ///
                          ///    ///  ///    ///  ///  ///

            <A href="http://student.uq.edu.au/~s335810">
            <A href="mailto:s335810 at student.uq.edu.au">



----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe



More information about the General mailing list