Permission on /root

since I do updates on tty and the output in konsole is very fast, I can’t reed the install log completely, sometimes I check the pacman log but sometimes I forget to check…
yesterday scrolling the log of a old update I found:
warning: directory permissions differ on /root
filesystem: 755 package: 750

should I chmod to 750?

Well, mine is:

$ stat /root
File: /root
Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 259,2   Inode: 3670017     Links: 19
Access: (0750/drwxr-x---)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-03-31 16:08:41.513514589 +0200
Modify: 2025-05-15 16:06:40.732746583 +0200
Change: 2025-05-15 16:06:40.732746583 +0200
Birth: 2024-10-14 14:13:45.923929445 +0200

So I think that’d be a good idea.

(In any case, it just removes all permissions for some users, so it makes it more secure.z)

2 Likes
[tracy@daphne /]$ stat /root
  File: /root
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 8,2     Inode: 3407873     Links: 8
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-08-21 11:19:07.000000000 +1000
Modify: 2025-05-16 10:14:01.001077102 +1000
Change: 2025-05-16 10:14:01.001077102 +1000
 Birth: 2024-09-10 20:08:04.722676071 +1000

1 Like

To either 750 or — better still — to 700. No one other than the root account should have access to that directory.

3 Likes

mine is like this now

LC_ALL=C stat /root
  File: /root
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 259,2   Inode: 21757953    Links: 7
Access: (0750/drwxr-x---)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-10-12 00:11:07.066647898 +0200
Modify: 2024-11-14 23:05:15.353215527 +0100
Change: 2025-05-16 17:50:58.356197583 +0200
Birth: 2024-07-31 15:11:49.642240905 +0200

with 700 is like this

LC_ALL=C stat /root
  File: /root
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 259,2   Inode: 21757953    Links: 7
Access: (0700/drwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-10-12 00:11:07.066647898 +0200
Modify: 2024-11-14 23:05:15.353215527 +0100
Change: 2025-05-16 17:57:50.752737608 +0200
Birth: 2024-07-31 15:11:49.642240905 +0200

2 Likes

I will stay with 700 for now and see…

1 Like

It’s what I have too. :wink:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.