You are not logged in.

#1 2020-05-08 10:46:02

zan
Member
Registered: 2020-05-08
Posts: 14

[SOLVED] Permissions of .{cache,config,local} directories in home

I finally have a clean home directory in sight but I don't know how to find out if I can also safely remove xr for go on .cache, .config and .local without breaking the ability to read files in these directories for any application or a service being ran under it's own user (I don't have any such service running at the moment though).

Is the above probable or am I worrying over nothing as all files and directories in these 3 are owned by my user and group?

drwxr-xr-x    - zan zan  5 May  0:55 .cache
drwxr-xr-x    - zan zan  5 May  2:31 .config
drwx------    - zan zan 15 Dec  2019 .gnupg
drwxr-xr-x    - zan zan 27 Dec  2019 .local
drwx------    - zan zan  6 Oct  2018 .mozilla
drwx------    - zan zan 17 Sep  2019 .pki
drwx------    - zan zan 15 Mar  4:57 .ssh
drwx------    - zan zan  1 Apr 15:19 .vscode-oss
drwx------    - zan zan  5 Apr 10:33 Books
drwx------    - zan zan  7 May 21:54 Conversations
drwx------    - zan zan  7 May 21:54 Downloads
drwx------    - zan zan  8 May 11:39 Music
.rw------- 1.1k zan zan 20 Apr 22:39 .bashrc
.rw------- 1.5k zan zan 16 Apr  6:03 .profile

Last edited by zan (2020-05-08 13:31:32)

Offline

#2 2020-05-08 11:22:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,653
Website

Re: [SOLVED] Permissions of .{cache,config,local} directories in home

Permissions matching stops at the first match.

If user 'zan' is accessing a file owned by user 'zan', then only the first three permissions (-rwx------) are of any interest.
If user 'zan' is accessing a file owned by user 'root', but group owned by group 'zan', then the first three permissions will be ignored, and the second three permissions will be used (----rwx---), assuming user 'zan' is a member of group 'zan'.
If user 'zan' is accessing a file owned by user 'root' and group 'root', then the third set of permissions is used (-------rwx), assuming user 'zan' isn't a member of group 'root'.

Moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-05-08 11:42:10

zan
Member
Registered: 2020-05-08
Posts: 14

Re: [SOLVED] Permissions of .{cache,config,local} directories in home

Beautiful, thank you. This is the clearest explanation I've ever read. Saving it for future reference.

Offline

Board footer

Powered by FluxBB