LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can I delete files in /mnt/tmp? and Files in the trash can will not delete? (https://www.linuxquestions.org/questions/slackware-14/can-i-delete-files-in-mnt-tmp-and-files-in-the-trash-can-will-not-delete-758775/)

M$ISBS 09-30-2009 05:45 PM

Can I delete files in /mnt/tmp? and Files in the trash can will not delete?
 
There are files in this directory that I do not access.
Can I delete them manually?

There are also files that I can view that belong to another user, I thought each users files were hidden from other users in linux?

Also, I have 3 files in the trash that will not delete, I get a message saying " Could not delete file /mnt/tmp/.Trash-1000/files/filename.txt"

Is there a way to force a delete?

Thanks.
:)

Drakeo 09-30-2009 06:12 PM

in slackware12 press alt F2 and type in. kdesu konqueror press enter then root password now go delete them. there is a lot of things you can see but are not able to read and write to them.
That is left up to the users set up.

M$ISBS 09-30-2009 06:32 PM

I just tried that and all that happened is konqueror opened up.
I tried to delete them and the same thing happens.

I forgot to add that it doesnt matter if I am root or not, they still will not delete.

dwr1 09-30-2009 06:50 PM

try it from the console as root with rm.

dxqcanada 09-30-2009 06:52 PM

Files created by other users may have permissions allowing other user's to R, W, or X.

Normally files in a user's home directory are "hidden".

What is the permissions/ownership of the files/directories in /mnt/test ?

M$ISBS 09-30-2009 07:02 PM

Quote:

Originally Posted by dxqcanada (Post 3702544)
Files created by other users may have permissions allowing other user's to R, W, or X.

Normally files in a user's home directory are "hidden".

What is the permissions/ownership of the files/directories in /mnt/test ?

I dont have a directory called /mnt/test

I have tried to delete the files in the trash from command line as root but I dont know where the trash is?

dxqcanada 09-30-2009 07:21 PM

Quote:

Originally Posted by M$ISBS (Post 3702556)
I dont have a directory called /mnt/test

Sorry, typo on my part.
I meant /mnt/tmp

What are the permissions on the .Trash-1000 directory ?
What are the permissions on the files sub-directory ?
What are the permissions on the filename.txt file ?

M$ISBS 09-30-2009 07:43 PM

Quote:

Originally Posted by dxqcanada (Post 3702578)
Sorry, typo on my part.
I meant /mnt/tmp

What are the permissions on the .Trash-1000 directory ?
What are the permissions on the files sub-directory ?
What are the permissions on the filename.txt file ?

Permissions for the trash allows all access.

Where is the .Trash-1000 directory?

The premissions for the files that will not delete are greyed out.

gnashley 10-01-2009 01:26 AM

The undeleatable files probably have wrong ownerships. Use 'chmod root:root filename' to change them to be owned by root. Then you should be able to remove them -maybe need to 'chown a-s filename', if not.

Franklin 10-01-2009 04:43 AM

Quote:

Can I delete files in /mnt/tmp? and Files in the trash can will not delete?
There are files in this directory that I do not access.
Can I delete them manually?
In the past, I have used /mnt/tmp or /mnt/hd as mount points for removable drives or when I chrooted when using a live cd for rescue purposes. Maybe if you could determine how this mount point is/was being used, you could determine why the files are still there and why they can't be deleted. I don't think you/we can know if these are safe to delete until you can ID what device is using /mnt/tmp.

M$ISBS 10-01-2009 07:17 PM

Quote:

Originally Posted by gnashley (Post 3702924)
The undeleatable files probably have wrong ownerships. Use 'chmod root:root filename' to change them to be owned by root. Then you should be able to remove them -maybe need to 'chown a-s filename', if not.

Ok, but how do I get to the trash bin from the command line?

The files in /mnt/tmp are from by external hard drive.
I think they are just links or some kind of cache right?

bgeddy 10-01-2009 07:51 PM

Quote:

Ok, but how do I get to the trash bin from the command line?
Look at ~/.local/share/Trash/files for a user's Trashbin.

M$ISBS 10-01-2009 07:57 PM

Quote:

Originally Posted by bgeddy (Post 3704393)
Look at ~/.local/share/Trash/files for a user's Trashbin.

The files are actually located in /mnt/tmp/Trash-1000/files but they will not delete.
I am trying as root but it says I cant because I am not the owner, read only.

Drakeo 10-02-2009 04:43 AM

if you have a file that cant be deleted as root. then as root you can change it to read and write and then delete it. there are plenty of files in the system that will not allow root to delete them. Until as root you change there permission in properties.
right click the file > properties > permissions
for command line
Quote:

/home/your-user/.local/share/Trash/files

gnashley 10-02-2009 06:00 AM

"I am trying as root but it says I cant because I am not the owner, read only"
As I said, the files don't belong to you or even root:
Use 'chmod root:root filename'

In Slackware, owner and group names may not be the same as for other distros. In Slack, the root group is '0' -zero, user '0' -zero. Files created on other systems may belong to a group which is not present in /etc/groups.


All times are GMT -5. The time now is 09:41 AM.