LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-25-2003, 11:22 PM   #1
awolff01
LQ Newbie
 
Registered: Feb 2003
Posts: 5

Rep: Reputation: 0
Angry permission denied even as root


Hi. I am currently on Suse 8.1. I was trying to delete a directory
/tmp/courier-imap/authlib/ as root but I get the following errors on the files contained within:

rm: cannot lstat preauthmysql.c : permission denied
rm: canoot lstat ...
rm: cannot lstat ...etc, etc

I've tried removing the files and directory as root and as the user who owns the file to no avail.

I saw a similar post here and followed the directions specified but it did not work.

Anybody have any other suggestions?

Thank You.

Some more background info:
The orginal directory was where I was compiling an imap mail server; I was trying to delete the whole directory by using "rm -r courier-imap" when I started getting the errors.. I had run make as non-root (since the install instructions specified this)

Thanks for the help.
 
Old 02-25-2003, 11:40 PM   #2
Zac2003
Member
 
Registered: Feb 2003
Posts: 35

Rep: Reputation: 15
not sure if you tried this but use

rm -rf directory thats how you have to remove the directories its for recursive and force read man rm or rm --help

Zac
 
Old 02-25-2003, 11:49 PM   #3
awolff01
LQ Newbie
 
Registered: Feb 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Angry Did not work!

castor:/tmp/courier-imap-1.7.0 # rm -rf unicode
rm: cannot remove `unicode/unicode.h': Permission denied
rm: cannot remove `unicode/big5.c': Permission denied
rm: cannot remove `unicode/big5.h': Permission denied
rm: cannot remove `unicode/iso88591.c': Permission denied
rm: cannot remove `unicode/iso88592.c': Permission denied
rm: cannot remove `unicode/iso88593.c': Permission denied
rm: cannot remove `unicode/iso88594.c': Permission denied
rm: cannot remove `unicode/iso88595.c': Permission denied

The strange thing is I was having the same problem with files in a nother directory in the same parent directory and all of a sudden I was able to delete it.

Any other suggestions??

Thanks.
 
Old 02-25-2003, 11:56 PM   #4
Zac2003
Member
 
Registered: Feb 2003
Posts: 35

Rep: Reputation: 15
i've never expierienced this wierd heh

maybe try chmod -R 777 unicode then try to remove it? I don't know thats just a shot in the dark
 
Old 02-26-2003, 02:13 AM   #5
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
maybe

man chattr
 
Old 02-26-2003, 04:22 PM   #6
bobhasahat
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Rep: Reputation: 0
I'm having a similar problem... even as root I can't edit /etc/fstab ... I can read it but I cannot save over it/delete it/write to it. I tried chattr, and chmod, and neither seemed to work. I realize this is a system file, but how does one make changes to it?
 
Old 02-26-2003, 05:24 PM   #7
lachlan
Member
 
Registered: Jan 2002
Location: New Zealand
Distribution: Mandrake 9.1,Suse 8.2
Posts: 139

Rep: Reputation: 15
SU in a terminal-vi /etc/fstab-I for insert,make your changes,save your changes.semi-colon enter) then wq(enter) and then your finished.
 
Old 02-26-2003, 07:54 PM   #8
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
if you su to root, you should be able to vi /etc/fstab

if not, then boot a linux floppy and mount your / from there, and try to inspect your /etc/fstab like that.
 
Old 02-28-2003, 08:51 PM   #9
bobhasahat
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Rep: Reputation: 0
ok i figured out the problem. linux was mounting it as read only, so I just used the rw option at boot time. Anyone know why it would mount it as read only? Thanks for your help, by the way. oh and lachlan... i do know how to use vi
 
  


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
permission denied as root Foosed Slackware 6 06-06-2005 01:38 AM
permission denied when root? TaNeK Linux - Software 8 02-01-2005 01:39 PM
Permission denied as root Cynric Linux - General 4 08-15-2004 12:47 PM
Even as root, Permission Denied RevX Linux - Software 7 04-25-2004 12:10 AM
Permission denied as Root! Thewyzewun Linux - Newbie 3 03-13-2004 12:51 PM


All times are GMT -5. The time now is 08:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration