GithubHelp home page GithubHelp logo

Comments (12)

kevva avatar kevva commented on July 28, 2024

That's expected if you aren't running as sudo. To remove users along with their home directories (and other files) you should run userdel --remove-all-files <username>.

from trash.

srijanshetty avatar srijanshetty commented on July 28, 2024

It's not running in any folder, I just mentioned home as an example.

from trash.

sindresorhus avatar sindresorhus commented on July 28, 2024

@srijanshetty Can you be a bit more specific of what kind of path you tried to remove then?

from trash.

srijanshetty avatar srijanshetty commented on July 28, 2024

@sindresorhus Sorry for the arcane replies.
Ever since I've updated to [email protected], deleting any file in any of the subdirectories of /home/ leads to the error "EACCES, mkdir '/home/.Trash-1000'"

from trash.

kevva avatar kevva commented on July 28, 2024

Do you have the correct permissions over your home directory? chown -R $USER:$USER $HOME. And can you run df -kP <file> on the file you're trying to remove and paste the output here? It sounds like /home/ is mounted somewhere else than / which is weird.

from trash.

Rowno avatar Rowno commented on July 28, 2024

I'm having the same problem on Ubuntu 14.04. I'm just trying to trash a regular file in my ~/projects/ subdirectory (a .sublime-workspace file to be precise). trash was working fine for me before I upgraded to 1.2.0.

Here's my output for df -kP <file>:

Filesystem     1024-blocks     Used Available Capacity Mounted on
/dev/sda6         40269400 14836096  23364672      39% /home

from trash.

kevva avatar kevva commented on July 28, 2024

Ok, it's because it's mounted on /home instead of /.

from trash.

Rowno avatar Rowno commented on July 28, 2024

Yep, I mount /home on a separate partition to make reinstalling the OS simpler. πŸ˜‰

from trash.

kevva avatar kevva commented on July 28, 2024

Need to find a way to get the home partition then. Python has a function for this while node doesn't. I've added a small fix for /home though kevva/xdg-trashdir@6272144.

from trash.

srijanshetty avatar srijanshetty commented on July 28, 2024

I have the same setup πŸ˜‰

from trash.

sindresorhus avatar sindresorhus commented on July 28, 2024

@kevva Can you open an issue for this on xdg-trashdir so this issue can be closed?

from trash.

kevva avatar kevva commented on July 28, 2024

You can close this. I've partially fixed it for people having the home partition on /home. If it's something else it won't work though.

from trash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.