Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
access denied plasma Cant delete files move icons on desktop
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
psycophobia
Guru
Guru


Joined: 08 May 2005
Posts: 503
Location: uk

PostPosted: Wed Sep 21, 2022 7:42 am    Post subject: access denied plasma Cant delete files move icons on desktop Reply with quote

I cant save files delete files or move folders and icons on desktop and other areas Saving files in my home directory seems fine that's about it.
If i download a PDF on Firefox for instants and try save to desktop i get access denied
I thought i would start here with this as i have never had the issue.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 19296

PostPosted: Wed Sep 21, 2022 12:52 pm    Post subject: Reply with quote

For a directory which fails, what is the output of namei -l directory?
Back to top
View user's profile Send private message
psycophobia
Guru
Guru


Joined: 08 May 2005
Posts: 503
Location: uk

PostPosted: Wed Sep 21, 2022 2:53 pm    Post subject: Reply with quote

Hu wrote:
For a directory which fails, what is the output of namei -l directory?


Code:
namei -l  Desktop
f: Desktop
drwxr-xr-x root root Desktop
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 19296

PostPosted: Wed Sep 21, 2022 3:23 pm    Post subject: Reply with quote

I was hoping to see the full path, not just the leaf, but even that output seems wrong. Why does root own your Desktop directory?
Back to top
View user's profile Send private message
psycophobia
Guru
Guru


Joined: 08 May 2005
Posts: 503
Location: uk

PostPosted: Wed Sep 21, 2022 3:34 pm    Post subject: Reply with quote

Hu wrote:
I was hoping to see the full path, not just the leaf, but even that output seems wrong. Why does root own your Desktop directory?


I have no idea that's why I am here it was fine it must of been after the recent update or kernel upgrade I cant do nothing on my desktop at all.


Code:
namei -l /home/psycophobia/Desktop/
f: /home/psycophobia/Desktop/
drwxr-xr-x root        root        /
drwxr-xr-x root        root        home
drwxr-xr-x psycophobia psycophobia psycophobia
drwxr-xr-x root        root        Desktop



would somthing like this work?

Code:
sudo chown -R /home/your_user
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 19296

PostPosted: Wed Sep 21, 2022 4:11 pm    Post subject: Reply with quote

Your original post just reported a permission error, and wasn't even clear to me that it was definitely ~/Desktop that was affected. Now we have a specific explanation for the immediate problem: wrong directory ownership. It could also have been wrong permissions on the directory, or missing search on any of the parent directories. That is why I wanted to see the full path.

No kernel update or package update should be changing the ownership of directories in your home directory. The good news is that only root can change this ownership, and as you appear to be a sudo user, you likely have sudo audit logs that could report when the current change was made. You might be able to know the exact time of the change by inspecting the ctime on the directory, assuming nothing else has caused a ctime update since the bad ownership was set. Once you have the time at which it happened, you can narrow your search for the command that broke it.

Yes, recursively changing the ownership of all your files to fix one directory would probably work. It seems like overkill though. Also, it would update the ctime, making further forensics more difficult.
Back to top
View user's profile Send private message
psycophobia
Guru
Guru


Joined: 08 May 2005
Posts: 503
Location: uk

PostPosted: Wed Sep 21, 2022 4:43 pm    Post subject: Reply with quote

The only strange thing i could see was what my daughter typed by mistake

Code:
439  %lpe
  440  %lpr
  441  % lpr
  442  % Ipr



I just did
Code:
chown -R user:user /home
That seems to have worked
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 19296

PostPosted: Thu Sep 22, 2022 1:23 am    Post subject: Reply with quote

On a multi-user system, that is also wrong. You just changed the ownership of all users other than your own, and took control of the directory meant to contain all user home directories. Why did you do a recursive chown of a whole tree, when only one directory was known to be wrong?
Back to top
View user's profile Send private message
psycophobia
Guru
Guru


Joined: 08 May 2005
Posts: 503
Location: uk

PostPosted: Thu Sep 22, 2022 12:49 pm    Post subject: Reply with quote

Hu wrote:
On a multi-user system, that is also wrong. You just changed the ownership of all users other than your own, and took control of the directory meant to contain all user home directories. Why did you do a recursive chown of a whole tree, when only one directory was known to be wrong?


I did put
Code:
psycophobia:psycophobia



Code:
namei -l /home/psycophobia/Desktop/
f: /home/psycophobia/Desktop/
drwxr-xr-x root        root        /
drwxr-xr-x psycophobia psycophobia home
drwxr-xr-x psycophobia psycophobia psycophobia
drwxrwxr-x psycophobia psycophobia Desktop
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 19296

PostPosted: Thu Sep 22, 2022 2:02 pm    Post subject: Reply with quote

Right, so now /home has the wrong ownership, as does every directory under /home other than /home/psycophobia.
Back to top
View user's profile Send private message
psycophobia
Guru
Guru


Joined: 08 May 2005
Posts: 503
Location: uk

PostPosted: Thu Sep 22, 2022 9:43 pm    Post subject: Reply with quote

Hu wrote:
Right, so now /home has the wrong ownership, as does every directory under /home other than /home/psycophobia.


What would you sugest to reverse Please?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum