LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-16-2007, 07:27 PM   #1
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
as root can not delete files in users home


i'm using slak12

a few days ago this box has been really lagging logged in as joe.
i'm figuring maybe theres a lot a junk in joe's home.

so as root i goto /home/joe and do a clean up(since logged in as joe it's totaly lagged).

problem:
logged in as root using konqueror
selected file(s) "move to trash" i get
Code:
Could not write to file /home/.Trash-0/info/.mcop.trashinfo.
in shell:

rm -f [any file] or any try with rm "permission denied"
chown root:root * only gives "permission denied"

cant delete /home/joe

theres 8 files i never noticed before there
.serverauth.1234

i'm stumped. right now i'd like to just dump the entire /home/joe dir!
all files there that are worth anything are symlinked to another drive or network.

anyone see this before oir can help me dump this dir?


thanks
 
Old 11-16-2007, 07:43 PM   #2
slaxative
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Rights issues

Can you switch to single user mode and try rm -rf /home/joe?
"telinit 1"
 
Old 11-16-2007, 08:12 PM   #3
tagno25
Member
 
Registered: Jun 2007
Posts: 53

Rep: Reputation: 15
try using "shred -fu /home/joe"
 
Old 11-16-2007, 09:52 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
I practically never use the trash. However you had the same problem in the shell. What are the permissions of files in /home/joe, as well as the directories /home and /home/joe. Look with "getattr", "getfattr" and "lasttr" as well. If a file has the immutable bit set, even root can't delete files. If you are running selinux or apparmor, a misconfiguration could cause problems as well.

Also, look how the filesystem is mounted. If there was a problem with the filesystem, that partition might be mounted readonly.

As far as the server lagging, does top show anything interesting? If /home isn't on it's own partition, /var and /tmp might be full. I had a problem with YaST previously on my laptop. The /var/tmp directory was filling up with thousands of temporary directories, exceeding the inode limit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba users cannot create directories / delete files habiem Linux - Server 1 09-21-2007 04:59 PM
Grant a user root privileges to add and delete users Maranza Linux - Security 6 11-02-2006 10:10 AM
Root delete files problems macushk Linux - Security 5 10-23-2006 05:55 AM
vsftpd: allow users to write and delete files me3 Linux - Software 4 03-04-2005 07:22 PM
log what files users create, delete etc. Goma_2 Linux - General 3 09-26-2003 06:12 PM


All times are GMT -5. The time now is 04:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration