EDIT: I tried doing an “su” and realized I never set up a root account when I started up the system for the first time. I’m assuming that’s the problem. I’ll have to look around and see if I can figure out how to fix that. If someone happens to know how to do that, please let me know.
OP:Yesterday, I re-installed Fedora 35. Because the automatic partitioning part of the previous install didn’t give me my own /home partition, I lost all my data. Knowing this would happen, I prepared by doing a “tar -cvpzf …” on my /home folder and restored everything (on my new, separate /home partition) with “tar -xvpzf …”. But, I’m now having trouble copy files to non-home areas of the file system.
For instance, right now, I’m trying to copy my Windows fonts (from a backup image) over to /usr/share/fonts. There’s no indication that anything in that path is locked (or requiring sudo). But, in that folder, I can’t paste my fonts. Nor can I create a subdirectory there to stick them in. When I try to copy things there, I get:
Error while copying ‘xxx’.
There was an error copying the file into /usr/share/fonts.
Error opening file ‘xxx’: Permission denied
I get the same kind of issue trying to copy .desktop files into /usr/share/applications. I never get any prompts for elevation.
If I navigate there in a terminal window, and do an ll at various points, I get:
- In root: drwxr-xr-x. 14 root root 4096 May 8 22:40 usr
- In /usr: drwxr-xr-x. 398 root root 12288 May 9 07:47 share
- In /usr/share: drwxr-xr-x. 42 root root 4096 May 8 22:51 fonts
- In /usr/share/fonts: rwxr-xr-x. 2 root root on all the files.
Everything all down the path seem to be owner/group of root.
Doing an id in the console says:
uid=1000(dave) gid=1000(dave) groups=1000(dave),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
In a properly configured system, what are these things supposed to be? Is there any way for me to make things right?