The synthesis of "n"-octyl-β--thioglucopyranoside starts from D-glucose (I) which is prepared with acetic anhydride and concentrated sulfuric acid to give α--glucopyranose pentaacetate (pentaacetylglucose) (II).