You are not logged in.

#1 2017-08-10 15:10:32

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

[solved] File permissions mismatch

Okay, I was trying to set up a “networktools” group so that I could use things like "tcpdump" without giving it root privileges. (cf Wireshark,) and managed to seriously muck up the file permissions in "/usr/bin". I recovered from this near fatal screw up; but now, every time I update, I am getting a warning from pacman similar to:

 [2017-08-10 14:19] [ALPM] reinstalled xfdesktop (4.12.4-1)
[2017-08-10 14:19] [ALPM] warning: directory permissions differ on /usr/bin/
filesystem: 750  package: 755 

After considerable research, I am fairly sure it is a common problem that is more annoying than serious. Would anyone care to confirm this, or am I in big trouble?

Secondly, I have suspicion that the problem is somehow related to “/usr/bin” being in group “stupidme” as oppose to “root”, who owns both the folder and packages.

 [stupidme@mine usr]$ ls -Cgl
total 404
drwxr-x---   5 stupidme 102400 Aug 10 14:24 bin
drwxr-xr-x 464 root      61440 Aug 10 14:19 include
drwxr-xr-x 229 root     192512 Aug 10 14:19 lib
drwxr-xr-x  11 root      20480 Aug 10 14:19 lib32
lrwxrwxrwx   1 root          3 Mar 26 22:57 lib64 -> lib
drwxr-xr-x  11 root       4096 Jul 19 15:40 local
drwxr-xr-x   4 root       4096 Apr  8  2016 python
lrwxrwxrwx   1 root          3 Mar 26 22:57 sbin -> bin
drwxr-xr-x 257 root      12288 Aug 10 07:24 share
drwxr-xr-x   4 root       4096 Jul 29 06:53 src
[stupidme@mine usr]$ 

Could anyone confirm this or otherwise care to comment.

Thanks in advance,
Irvine

Edited to change "owner" to "group"

Last edited by IrvineHimself (2017-08-10 15:31:15)


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

#2 2017-08-10 15:17:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [solved] File permissions mismatch

Change the permissions for /usr/bin from 0x750 (owner rwx, group r-x, other No permissions) to 0x755 ( (owner rwx, group r-x, other r-x) using chmod
Also, change the owner back to root from stupidme using chown


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-08-10 15:30:46

IrvineHimself
Member
From: Scotland
Registered: 2016-08-21
Posts: 275

Re: [solved] File permissions mismatch

After a quick test, that seems to have solved the problem:)

Thanks for your prompt reply
Irvine


Et voilà, elle arrive. La pièce, le sous, peut-être qu'il arrive avec vous!

Offline

Board footer

Powered by FluxBB