
chmod permissions calculator
Calculate chmod permissions calculator using the values and assumptions you provide.
Your inputs stay in your browser. Displayed results are rounded to a maximum of 12 significant digits.
Method and assumptions
Method version 1.0.0 · Updated
Calculate
Formula: Octal permission = owner digit · group digit · others digit
Calculate chmod permissions calculator using the values and assumptions you provide.
- user
- user
- group
- group
- other
- other
Results depend on the assumptions entered; verify professional or safety-critical decisions independently.
Calculate with code
These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.
JavaScript
const owner = 7, group = 5, other = 4;
console.log(owner * 64 + group * 8 + other); // 754 octal permissionsTypeScript
const owner = 7, group = 5, other = 4;
const mode: number = owner * 64 + group * 8 + other;
console.log(mode); // 492 decimal = 0754 octalPython
print(oct(0o700 | 0o050 | 0o004)) # 0o754Java
int mode = (7 << 6) | (5 << 3) | 4;
System.out.printf("%o%n", mode); // 754C#
int mode = (7 << 6) | (5 << 3) | 4;
Console.WriteLine(Convert.ToString(mode, 8)); // 754