Modewise
Menu

The converter

chmod, umask and chown, worked out.

Turn a number into letters and back, apply a change such as g+w to a mode step by step, see what a umask gives new files, and read a chown in plain words. Worked out in your browser by the same rules GNU coreutils uses on most Linux systems.

1 A mode, both ways

Three or four octal digits (755, 2775) or letters (rw-r-----).

2 Apply a chmod change

Who (u, g, o, a), then +, - or =, then r, w, x, X, s, t; or a number. The umask matters only when no who is given (as in +x).

3 What a umask gives

Octal (022, 0027) or as umask -S prints it (u=rwx,g=rx,o=).

4 Read a chown

Worked examples

Numbers and letters

755rwxr-xr-x

644rw-r--r--

2775rwxrwsr-x

1777rwxrwxrwt

640rw-r-----

chmod changes (umask 022)

644u+x744

755go-rx700

640g=u660

755g+ws on a folder2775

2775755 on a folder2755

umask results

umask 022filesrw-r--r--foldersrwxr-xr-x

umask 002filesrw-rw-r--foldersrwxrwxr-x

umask 027filesrw-r-----foldersrwxr-x---

umask 077filesrw-------foldersrwx------