You are not logged in.
after installing the arch successfully. i noticed that virtualbox does not work and gives a message about permission. i noticed that the ownership of /usr is not root. because i had this problem before on arch, i changed the ownership by "chown root:root /usr -R" .
Now i can not do su , mount a win drive ...... and get error for permission. How can i undo that command?????
Last edited by hadian (2013-10-06 12:59:44)
Offline
chown root:root /usr -R
I don't know what you have going on.
/usr should have been
ls -ld /usr
drwxr-xr-x 9 root root 4096 Aug 2 11:22 /usrAnd su should be
ls -l /usr/bin/su
-rwsr-xr-x 1 root root 27496 Jul 31 08:15 /usr/bin/suDid you remove suid on mount and su?
ls -l /usr/bin | grep rws
-rwsr-sr-x 1 daemon daemon 46064 May 12 09:31 at
-rwsr-xr-x 1 root root 55736 May 30 08:17 chage
-rwsr-xr-x 1 root root 23520 Jul 31 08:15 chfn
-rwsr-xr-x 1 root root 19360 Jul 31 08:15 chsh
-rwsr-xr-x 1 root root 44296 Jun 23 04:17 crontab
-rwsr-xr-x 1 root root 24000 May 30 08:17 expiry
-rwsr-xr-x 1 root root 31384 Jul 31 11:25 fusermount
-rwsr-xr-x 1 root root 69200 May 30 08:17 gpasswd
-rwsr-xr-x 1 root root 52104 Jun 10 01:46 ksu
-rwsr-xr-x 1 root root 40104 Jul 31 08:15 mount
-rwsr-sr-x 1 root root 39704 Jul 4 03:19 mount.cifs
-rwsr-xr-x 1 root root 10608 Jul 31 08:15 newgrp
-rwsr-xr-x 1 root root 47816 May 30 08:17 passwd
-rwsr-xr-x 1 root root 23304 Jun 14 09:57 pkexec
-rwsrwxr-x 1 root root 56464 May 29 23:31 rcp
-rwsrwxr-x 1 root root 52552 May 29 23:31 rlogin
-rwsrwxr-x 1 root root 52296 May 29 23:31 rsh
-rwsr-xr-x 1 root root 33272 May 30 08:17 sg
-rwsr-xr-x 1 root root 27496 Jul 31 08:15 su
-rwsr-xr-x 1 root root 129384 Jun 14 03:58 sudo
-rwsr-xr-x 1 root root 27544 Jul 31 08:15 umount
-rwsr-sr-x 1 root root 31344 May 19 10:04 unix_chkpwd
-rwsr-xr-x 1 root root 2133544 Sep 13 06:29 XorgEDIT:
Also everything in /usr isn't suppose to be owned by root
find /usr ! -user root
......
/usr/share/polkit-1/rules.d
/usr/bin/atLast edited by teckk (2013-09-26 18:09:33)
Offline
As teckk says, /usr should already be owned by root. Who did own it, if not root?
Something is seriously wrong if /usr is not owned by root and chowning stuff is unlikely to fix it. How exactly did you install? More specifically, what sort of file systems did you use?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
the owner and owner group was a number.
Offline
Did you remove suid on mount and su?
that was the only command i used and after that i got message about suid on virtualbox!!!!
Offline
the owner and owner group was a number.
Well, what numbers?
I bet the numbers correspond to your old system, rather than the values in /etc/passwd and /etc/group for your new system.
Offline
Well, what numbers?.
i do not remember!
Offline
it seems i should reinstall the system!
Offline
I recommend that you recreate the filesystem using mkfs this time.
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
I recommend that you recreate the filesystem using mkfs this time.
i did it
Offline
i reinstalled the system and the packages i need except virtualbox. now, there are some files in /usr that are not owned by root:
$ find /usr ! -user root
/usr
/usr/share/polkit-1/rules.d
find: `/usr/share/polkit-1/rules.d': Permission denied
MY TRUE TYPE FONTS ADDED BY MYSELF
find: `/usr/bin/.gnome-desktop': Permission denied
find: `/usr/bin/Desktop': Permission denied
/usr/lib
/usr/lib/libtiff.so.3
/usr/lib/libtiff.so.3.6.1
/usr/lib/libtiff.soi will backup the system and install virtualbox and will post here the other files that are not owned by root.
Offline
libtiff.so.3{,.6.1} are provided by the "libtiff3" AUR package, which I'm assuming you built yourself. How did you install this package?
Also, why do you have user directories in /usr/bin? You shouldn't have Desktop/ or .gnome-desktop/ in there.
EDIT: I was mistaken, libtiff3 provides libtiff.so.3{,.9.5}.. Where did you get libtiff.so.3{,.6.1} from?
Last edited by WorMzy (2013-09-28 17:26:13)
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
libtiff.so.3{,.6.1} are provided by the "libtiff3" AUR package, which I'm assuming you built yourself. How did you install this package?
Also, why do you have user directories in /usr/bin? You shouldn't have Desktop/ or .gnome-desktop/ in there.
EDIT: I was mistaken, libtiff3 provides libtiff.so.3{,.9.5}.. Where did you get libtiff.so.3{,.6.1} from?
i installed yaourt using its repository and then installed pacmanxg4 and dropbox ysing yaourt.
Offline
What is the output of:
pacman -Qo /usr/lib/libtiff.so.3.6.1 /usr/bin/Desktop /usr/bin/.gnome-desktopOffline
Also, it is a bad idea to install true type fonts there in the way you seem to have done. Either install them outside the system tree or create pacman packages and install them there (in which case, they'd be owned by root).
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
[root@civil-cfd ~]# pacman -Qo /usr/lib/libtiff.so.3.6.1 /usr/bin/Desktop /usr/bin/.gnome-desktop
error: No package owns /usr/lib/libtiff.so.3.6.1
error: No package owns /usr/bin/Desktop
error: No package owns /usr/bin/.gnome-desktopfor installing the fonts i copied the ttf files to /usr/share/fonts/TrueType folder and installed them by "fc-cache -f -v"
Last edited by hadian (2013-09-29 05:48:31)
Offline
OK, so either you put them there manually, you have some really strange program that put them there, or you (again) didn't actually format your partition and have leftover crap.
cfr's point about the fonts is that you should not be putting things in /usr/share manually. Use /usr/local/share, something in your home dir, or make a PKGBUILD for them.
Last edited by Scimmia (2013-09-29 07:00:45)
Offline
ok. o moved my fonts to .fonts folder in my home. now this is the result:
$ find /usr ! -user root
/usr
/usr/share/polkit-1/rules.d
find: `/usr/share/polkit-1/rules.d': Permission denied
find: `/usr/bin/.gnome-desktop': Permission denied
find: `/usr/bin/Desktop': Permission denied
/usr/lib
/usr/lib/libtiff.so.3
/usr/lib/libtiff.so.3.6.1
/usr/lib/libtiff.soi will install virtualbos to see what will change!!!
Offline
i installed virtualbox successfully and it did not change any permission in /usr but when i want to install the extention pack it fails with following message:
Failed to install the Extension Pack /home/hadian/Oracle_VM_VirtualBox_Extension_Pack-4.2.10-84104.vbox-extpack.
The installer failed with exit code 1: VBoxExtPackHelperApp: error: The owner is not root: '/usr'.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ExtPackManager
Interface: IExtPackManager {3295e6ce-b051-47b2-9514-2c588bfe7554}Offline
Yeah, you already told us that /usr is not owned by root, what did you expect?
Walk us through *exactly* what you're doing when you reinstall Arch. Specifically when you set up partitions and users
Last edited by Scimmia (2013-09-29 10:18:17)
Offline
1- i did not change the partition table of my hard disk. i have an arch linux already installed but has a problem that i can not use it (here is the problem:https://bbs.archlinux.org/viewtopic.php?id=168057).
So i installed arch using this installed arch!. before installing the new arch i used "mkfs.ext4 /dev/sda9" and then i installed arch.
2- before installing my needed packages, the user of /usr was root and i did not noticed which program changed its ownership.
3- my first post on this topic was about my problem when i changed the ownership of /usr by "chown root:root /usr -R" and ...... then i reinstalled the system from the first. and now i have problem to install virtualbox extension pack.
4- i hope you do not recommend to reinstall the system again and find which package installation has changed the ownership of /usr!!!!!!!!!!!!!1
Offline
hadian,
Don't use yaoguuuurt. Use pacman, cower (from AUR), and makepkg. That's it. When you start putting abstraction layers between you and your system you are inevitably going to end up with undefined behavior. You are also bordering on help-vampirism. That is not good either. You can spend hours and hours trying to reconfigure your system but, honestly, from the moment you chown'd /usr you are pursuing a lost cause.
Reinstall. From scratch. Don't use any "do it all" package managers, that is the path to ruin.
Offline
Reinstall. From scratch. Don't use any "do it all" package managers, that is the path to ruin.
it seems there is no other way!!!!
Offline
I'd still like to know how you got libtiff.so.3 and libtiff.so.3.6.1 from, and why pacman doesn't know about them.
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
1- i did not change the partition table of my hard disk. i have an arch linux already installed but has a problem that i can not use it (here is the problem:https://bbs.archlinux.org/viewtopic.php?id=168057).
So i installed arch using this installed arch!. before installing the new arch i used "mkfs.ext4 /dev/sda9" and then i installed arch.
2- before installing my needed packages, the user of /usr was root and i did not noticed which program changed its ownership.
3- my first post on this topic was about my problem when i changed the ownership of /usr by "chown root:root /usr -R" and ...... then i reinstalled the system from the first. and now i have problem to install virtualbox extension pack.
4- i hope you do not recommend to reinstall the system again and find which package installation has changed the ownership of /usr!!!!!!!!!!!!!1
1. Are you trying to share a partition between installations? You formatted /dev/sda9, do you have no other partitions mounted? What does fstab look like?
2. If something is changing the permissions of /usr, the package is very, very broken. There's nothing in the official repos that does that and the other packages you mentioned are pretty popular, someone would have found this before if one of them was doing it. Are you copying over any configs or anything from a different install? You're giving us no details here.
3. Yeah, we got that. It means that something you're doing is making this happen.
4. Reinstallation takes what, 20-30 minutes depending on connection speed? You've got files in /usr/lib that are not tracked by pacman and you have no idea how they got there. Something in your installation procedure is borked.
Offline