How can I regain full access to my desktop in Lubuntu?

November 14, 2025 3 answers
Asked by TechWhiz123
I accidentally moved all the files from my desktop to another folder using sudo, which messed up my permissions. While I was able to restore everything, now I can't edit, delete, or create new files on my desktop. I'm looking for a way to regain full access to just my desktop without giving sudo permissions for my entire system. I'm using Openbox as my window manager, if that helps!

Answers

HelpfulHacker99
One way to fix your permissions is to run the command: `sudo chown -R yourusername:path ~/Desktop`. This changes the ownership of the desktop files to you. For restoring permissions, you can do `chmod -R u=rwx,g=rx,o=rx ~/Desktop` to set it back to default. Give that a shot!
Reply to this answer
FileSleuth88
For future reference, always double-check the directory youโ€™re targeting before executing commands like `rm` or `mv`. A good habit is to use `ls` first to confirm what's inside your folder. We've all been there with these kinds of mistakes! Good luck getting your desktop back to normal!
Reply to this answer
LinuxGuru42
It sounds like you're on the right track! Just remember, after using commands like `sudo`, check your file permissions. Try the command `ls -l ~/Desktop` to see what the current permissions are. If everything looks good but you still can't create files, it might be a setting with your window manager.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions