Permissions

Desertsquid081

New Member
Joined
Jun 6, 2017
Messages
15
Reaction score
0
Credits
105
I'm having troubles tdeleting directories. When I try to delete a directory from either the CL or with the GUI, I get this error msg: rm: cannot remove 'Ancestry info': Is a directory. In all the tutorials I've seen, the rmdir cmd should delete the directory. Thanks, DAve
 


Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
1,998
Reaction score
962
Credits
9,842

captain-sensible

Well-Known Member
Joined
Jun 14, 2019
Messages
2,535
Reaction score
1,673
Credits
15,122
rmdir whether with sudo or not will give you a fail; if the directory is not empty

yo ucan use rm -r
 
OP
D

Desertsquid081

New Member
Joined
Jun 6, 2017
Messages
15
Reaction score
0
Credits
105
So I tried deleting the files in the directory. I'm getting this error msg:
Error when getting information for file “/media/calamar1737/USB20FD/From 6061-DAD6copy/most recently used 20210805//╩3₧;Üká.æwæ”: Input/output error.
They are mostly text files. I use Libre Office.
 

dcbrown73

Well-Known Member
Joined
Jul 14, 2021
Messages
361
Reaction score
329
Credits
3,199
It's possible that file is still open. Are there any applications open that might have one of the files open?

If not, you may try and reboot then delete it just in case the kernel never released the file descriptor.

Finally, it's showing binary in the error which suggests more than just a text file. Hopefully nothing nefarious.

What filesystem is it? It looks like USB, so I suspect some form of FAT or NTFS? Or is it formatted in a common Linux fs?

I would also try to validate that it is a single file preventing the deletion and not all files or folder suffering from the issue.
 

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
976
Reaction score
628
Credits
7,241
I'm having troubles tdeleting directories. When I try to delete a directory from either the CL or with the GUI, I get this error msg: rm: cannot remove 'Ancestry info': Is a directory. In all the tutorials I've seen, the rmdir cmd should delete the directory. Thanks, DAve
Try it with sudo
Code:
sudo rm-rf directoryname
 

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
3,992
Reaction score
3,670
Credits
32,082
OP
D

Desertsquid081

New Member
Joined
Jun 6, 2017
Messages
15
Reaction score
0
Credits
105
It's possible that file is still open. Are there any applications open that might have one of the files open?

If not, you may try and reboot then delete it just in case the kernel never released the file descriptor.

Finally, it's showing binary in the error which suggests more than just a text file. Hopefully nothing nefarious.

What filesystem is it? It looks like USB, so I suspect some form of FAT or NTFS? Or is it formatted in a common Linux fs?

I would also try to validate that it is a single file preventing the deletion and not all files or folder suffering from the issue.

14, member: 122561"]
It's possible that file is still open. Are there any applications open that might have one of the files open?

If not, you may try and reboot then delete it just in case the kernel never released the file descriptor.

Finally, it's showing binary in the error which suggests more than just a text file. Hopefully nothing nefarious.

What filesystem is it? It looks like USB, so I suspect some form of FAT or NTFS? Or is it formatted in a common Linux fs?

I would also try to validate that it is a single file preventing the deletion and not all files or folder suffering from the issue.
[/QUOTE]
It's possible that file is still open. Are there any applications open that might have one of the files open?

If not, you may try and reboot then delete it just in case the kernel never released the file descriptor.

Finally, it's showing binary in the error which suggests more than just a text file. Hopefully nothing nefarious.

What filesystem is it? It looks like USB, so I suspect some form of FAT or NTFS? Or is it formatted in a common Linux fs?

I would also try to validate that it is a single file preventing the deletion and not all files or folder suffering from the issue.

I must admit that I don't really know how to find the info on the file system.
I am using several USB ports along with the computer Documents file to save libre office calc spread sheets that I update on a daily basis. Last week was the first signs of trouble. I started having problems copying directories. I problem I haven't experienced before. At first I thought it might be the USB memory stick so I employed an external hardrive and a new USB memory stick.
I use the memory stick because I am using multiple computers.
 
OP
D

Desertsquid081

New Member
Joined
Jun 6, 2017
Messages
15
Reaction score
0
Credits
105
I must admit that I don't really know how to find the info on the file system.
I am using several USB ports along with the computer Documents file to save libre office calc spread sheets that I update on a daily basis. Last week was the first signs of trouble. I started having problems copying directories. I problem I haven't experienced before. At first I thought it might be the USB memory stick so I employed an external hardrive and a new USB memory stick.
I use the memory stick because I am using multiple computers.
 

Fanboi

Well-Known Member
Joined
Apr 16, 2021
Messages
358
Reaction score
270
Credits
4,288
So I tried deleting the files in the directory. I'm getting this error msg:
Error when getting information for file “/media/calamar1737/USB20FD/From 6061-DAD6copy/most recently used 20210805//╩3₧;Üká.æwæ”: Input/output error.
They are mostly text files. I use Libre Office.
There maybe subdirs in that dir. Also, as @KGIII pointed out, that's a weird filename string. Notice the //? Usually *nix ignores // in paths, but if that is the file name's first char... Anyway, atomic bomb it:
- sudo -i
- cd to the directory.
- paste and run: for iiFile in *; do rm -r "$iiFile"; done
- ls -al to make sure it's empty. If so, you can remove the directory
 
OP
D

Desertsquid081

New Member
Joined
Jun 6, 2017
Messages
15
Reaction score
0
Credits
105
So there is something going on with the way the file structure. I don't know what it is. If I try and change permissions from the properties page, it rejects it. Everything is labeled as read only. I'm not sure how to proceed. Could this be a Libreoffice problem?
 

Fanboi

Well-Known Member
Joined
Apr 16, 2021
Messages
358
Reaction score
270
Credits
4,288
Did you run:
for iiFile in *; do rm -r "$iiFile"; done
as root in that directory? If so, what was the output?

Change permissions:
chmod -R a+rw <path/to/dir/>
as root.

If that doesn't work, cd into the directory and run:
for iiFile in *; do chmod a+rw "$iiFile"; done
and post that output.

It's not a Libre Office thing. It's a filesystem problem. FS error, device error, resource lock error, permissions, and so on. Technically, LO just requested the file be created (if LO created it). The FS code actually creates the file and handles the lower level stuff. There are plenty middle men involved, but that's the gist.
 
OP
D

Desertsquid081

New Member
Joined
Jun 6, 2017
Messages
15
Reaction score
0
Credits
105
Thanks for all the input. It's going to take a while for me to understand all this. My knowledge of CLI is limited.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top