I have a new install of Manjaro KDE. (switched from Linux Mint yesterday) I am absolutely new to Linux. This is only day 3 using it.
I was having issues with the root folder not showing up in Dolphin file explorer. Once I was able to view inside /root, I tried to click a file to view and was faced with "Could not enter folder /var/tmp/sysemd-private-…-ModemManager.service-kmVGPD
I’d not had that issue in Linux Mint. On googling it, I found a forum where it was suggested to use: sudo chown username -R / to gain access.
I’m panicking now that I see what it does!! Luckily, many of the entries in the terminal say " chown: changing ownership of '/sys/firmware/efi/efivars/DeployedMode-8be4df61-93ca-11d2-a a0d-00e098032b8c’: Operation not permitted "
What do I do? Has the entire root ownership been changed or has the chown failed? And why am I having permission issues with ModemManager.service when viewing files? I don’t know what to do. 'Please help!
Most should be owned by root in a fresh install. Question is why you want to look into /root/ folder, there is nothing of interest there, it is a place for the root user config files, this is traditionally a different folder then /home/[username] since /home/ could be on a different drive or even network.
/sys/ is a virtual filesystem (everything is a file) and changing things does indeed produce errors
Since your new to Linux this post is a good way to start getting up to speed.
The only help / advice here is to reverse the command to see if it fixes it (remember to make your user the owner of their own home folder) or easier, reinstall to have fresh working system.
I have no idea how to reverse a sudo chown. Can you provide the code please?
ls -l returns all as being owned by me, not root.
I was simply going in to delete tmp files. This is a normal easy thing in Windows. That’s why I was in the root folder.
I may have to reinstall. Can’t use terminal now… this is what I get.
[myusername ~]$ sudo pacman -S latte-dock
sudo: /etc/sudo.conf is owned by uid 1000, should be 0
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
[myusername ~]$ pacman -S latte-dock
error: you cannot perform this operation unless you are root.
If you have a Manjaro Install Disk change the permissions there like explained above.
If not, then try this:
Change to another TTY: CTRL + ALT + F3
You will get a basic login prompt.
Login as root with password (Maybe it is the same as your username)
Then change it there. Root should have full access.
That are tmp files created by systemd. There is a reason why you could not delete or view them, because these files are system files owned by root and needed to work properly.
Your Temp files are located here: $HOME/.cache. /tmp or /var/tmp are commonly used for programs. If you need to delete it, then better mount these folders as tmpfs (it is a ram disk and the files are deleted after reboot).
Something like this:
# RAM DISK which uses up to 50% RAM by default
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
That is really great suggestion @sawdoctor .Honestly, I don’t want it to be too similar to Winwoes. I really want to learn linux. I’ve learned a ton already… and love it! Just the start was a little rough, lol. But it’s levelling out now. Rocking along with a fresh install.
And I must say, you guys here in the Manjaro community are incredible. Such a massive difference from my previous experiences with “support forums”. Just, wow.
I’ve marked this answer as the solution to your question as Hanzel was the first to point out to reinstall (which will help you in your Linux learning curve anyway )
However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or or if you agree)
P.S. In the future, please don’t forget to come back and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.
P.P.S. Next time, look for solutions here on the forum instead of executing random code from the Internet that goes like:
Hey, you should try this funny command on Linux, it’ll blow your mind away: