Comments (12)
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.
It's not running in any folder, I just mentioned home as an example.
from trash.
@srijanshetty Can you be a bit more specific of what kind of path you tried to remove then?
from trash.
@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.
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.
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.
Ok, it's because it's mounted on /home
instead of /
.
from trash.
Yep, I mount /home
on a separate partition to make reinstalling the OS simpler. π
from trash.
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.
I have the same setup π
from trash.
@kevva Can you open an issue for this on xdg-trashdir
so this issue can be closed?
from trash.
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)
- can not use in win32 os HOT 1
- Remove from trash bin? HOT 1
- Confusion for Windows + WSL HOT 2
- zsh: command not found: trash HOT 2
- Trouble deteting some files HOT 3
- Trashing a file on Windows deletes it unrecoverably if no recycle bin is enabled HOT 5
- Error on Linux if user never deleted any files HOT 2
- feat: read the recycle bin/trash folder HOT 1
- ERR_REQUIRE_ESM when including this in another project HOT 2
- A quote about express
- The import Trash will report ERROR HOT 1
- Webpack is not supported HOT 1
- no such built-in module HOT 2
- Contribution π¬: Perhaps 'procfs' dependency isn't really needed? HOT 1
- θ½ζδΎθΏεε ι€ηζΉζ³ε Can you provide a method for restoring deletion HOT 1
- On Windows, whose trash is used? HOT 1
- Doesn't find correct Trash folder on NixOS
- Files are renamed to a hash in KDE HOT 1
- Windows support no Win 7? HOT 1
- Readme should mention how to include the binaries HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trash.