This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
aix:scripts_tips [2022/12/23 09:46] manu |
aix:scripts_tips [2023/06/07 17:38] (current) manu |
||
---|---|---|---|
Line 130: | Line 130: | ||
===== List file permissions in octal ===== | ===== List file permissions in octal ===== | ||
+ | |||
+ | If you have the rpm package installed : coreutils | ||
+ | <cli prompt='#'> | ||
+ | root@aixtest /etc> /opt/freeware/bin/stat -c "%a %n" /var/adm/wtmp.1.gz | ||
+ | 664 /var/adm/wtmp.1.gz | ||
+ | root@aixtest /etc> /opt/freeware/bin/stat -c "%a %n" /var | ||
+ | 755 /var | ||
+ | </cli> | ||
+ | |||
+ | |||
To be able to apply permissions on files, first save the permissions in octal format, it will be easier to recover all permissions: | To be able to apply permissions on files, first save the permissions in octal format, it will be easier to recover all permissions: |