/usr permissions changing for converted packages?
I've just noticed that the permissions on my /usr folder are not owned by root....
Code:
[ricky][1][darkstar|~] However if i grep /usr/bin , i notice these permissions are only set from packages converted with rpm2tgz / deb2tgz, and they somehow changed the permissions of the top level folders. How can i stop the permissions on /usr from messing up in the future when installing packages like this? Code:
[ricky][2][darkstar|/usr/bin] |
Okay i think i messed something up doing "chown root:root -R /usr"...
Code:
[ricky][3][darkstar|~] |
Quote:
|
Quote:
The other option would be to try running those conversion scripts as root, but I don't think it is normally required, so it might've been some option you passed when you ran them that adjusted the ownership of the files (I'm not really familiar with either since I refuse to use them -- I'd much rather repackage it by hand or develop a SlackBuild for it rather than use those). |
Quote:
As for me stupidly chowning my entire /usr, this shouldn't break my system should it? So far i've only found "sudo" to be a problem so far. |
Quote:
|
Quote:
Yes there could be, especially for suid programs. Below is a Q&D list of files under /usr/ on my system that are not chown root:root ( I also excluded stuff that may not affect your operation ). Your list will vary because we've installed different packages and I don't have a pure-D Slackware64 14.2 System up-and-running at this minute, but it is a start. The ones to fix are the ones with one-or more 's' bits set in the permissions column. HTH. -- kjh Code:
# find . -type f -print0 | xargs -0 ls -lad |grep -v -e 'root *root' -e ./share/ -e ./local/ -e ./man/ |
Alright thanks... i just restarted the xserver, and it failed to load, so i just went and reinstalled xorg* packages, this fixed that.
Rebooted, everything seems fine, except for networkmanager not working. I had to use wpa_supplicant/dhcpcd manually to get online. I think i'm just going to do this: Code:
rsync -avP rsync://ftp.osuosl.org/slackware/slackware64-current/ . |
coralfang --
Yep, that outta do it :) -- kjh |
Ok, lesson learned:
DO NOT RECURSIVELY CHOWN TOP LEVEL DIRECTORIES UNDER / Took a while, but after reinstalling every package set to be safe, everything is back working as it should. In case anyone reads this, having the same problem, you'll want to basically reinstall every package to get back the correct permissions. Seems to be the simplest way to go about doing this, as opposed to looking up each files individual permissions. Solved i guess, and i'll probably stop installing converted deb/rpm packages in future to avoid this happening again. |
Quote:
|
I built kodi in -current from slackbuilds about year ago without issue, worked fine.
|
All times are GMT -5. The time now is 08:23 AM. |