I saw in school a system that set permissions using binary string.
Let\'s say 101001 = 41
So :
Since it's binary & decimal you can convert it back & forth with decbin and bindec. It's just a different base to count with...
EDIT: bitwise is sweet, do that ^_^