- 0770 = 770 octal
- 770 = 770 decimal (weird bits)
- "0770" = 770 decimal
- "770" = 770 decimal
- "1770" = 1770 decimal (different weird bits)
- 1770 = 1770 decimal
And as someone else already said, yes, the bits of the
umask are cleared
from this value. Either change your umask, or try a
chmod afterward.
-- Randal L. Schwartz, Perl hacker