LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-30-2009, 05:45 PM   #1
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Rep: Reputation: 30
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.
 
Old 09-30-2009, 06:12 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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.
 
Old 09-30-2009, 06:32 PM   #3
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
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.
 
Old 09-30-2009, 06:50 PM   #4
dwr1
Member
 
Registered: Aug 2009
Distribution: slack-current
Posts: 46

Rep: Reputation: 17
try it from the console as root with rm.
 
Old 09-30-2009, 06:52 PM   #5
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
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 ?
 
Old 09-30-2009, 07:02 PM   #6
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by dxqcanada View Post
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?
 
Old 09-30-2009, 07:21 PM   #7
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Quote:
Originally Posted by M$ISBS View Post
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 ?
 
Old 09-30-2009, 07:43 PM   #8
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by dxqcanada View Post
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.
 
Old 10-01-2009, 01:26 AM   #9
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 10-01-2009, 04:43 AM   #10
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
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.
 
Old 10-01-2009, 07:17 PM   #11
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by gnashley View Post
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?
 
Old 10-01-2009, 07:51 PM   #12
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 10-01-2009, 07:57 PM   #13
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bgeddy View Post
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.

Last edited by M$ISBS; 10-01-2009 at 08:04 PM.
 
Old 10-02-2009, 04:43 AM   #14
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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

Last edited by Drakeo; 10-02-2009 at 04:57 AM.
 
Old 10-02-2009, 06:00 AM   #15
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
"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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script to delete tmp files Iyyappan Linux - Newbie 8 08-02-2009 06:40 AM
Slackbuild files in /tmp. Ok to delete? Romanus81 Slackware 9 11-05-2008 09:45 PM
How To Delete tmp Files In FC5 zenarcher Fedora 3 09-07-2006 12:51 AM
Can't delete files that are in the trash opto Linux - Newbie 3 06-25-2006 01:36 AM
can i delete /tmp files? demmylls Linux - General 1 03-01-2004 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration