LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2006, 12:48 AM   #1
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Rep: Reputation: 30
trying to undo my bind-chroot setup attempt


i tried to setup a bind-chroot server. i did it terriably wrong and i just want to start over. so first i uninstalled bind, then i went to delete all the chroot files and diretroies i made. but i keep getting permission denied (im logged in as root)

how can i fix this.?

(btw i have been fallowing these directions)
http://www.linux.org/docs/ldp/howto/...D-HOWTO-2.html
 
Old 11-04-2006, 04:09 PM   #2
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
sorry to bump but this is argivating me.

heres my console output copy and pasted

-bash-3.00# rm -R bind
rm: descend into write-protected directory `bind/chroot/named/etc'? y
rm: cannot remove directory `bind/chroot/named/etc/namedb': Permission denied
rm: remove write-protected regular file `bind/chroot/named/etc/localtime'? y
rm: cannot remove `bind/chroot/named/etc/localtime': Permission denied
rm: cannot remove `bind/chroot/named/etc/named.conf': Permission denied
rm: descend into write-protected directory `bind/chroot/named/var'? y
rm: cannot remove directory `bind/chroot/named/var/run': Permission denied

i tried chmodding everything i just get chmod: changing permissions of `etc': Operation not permitted


so it seems the chroot business works, but it's working against me

Last edited by MrSako; 11-04-2006 at 04:13 PM.
 
Old 11-04-2006, 04:17 PM   #3
MrSako
Member
 
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185

Original Poster
Rep: Reputation: 30
ok i seemed to solve my own problem.

# cd /chroot/named
# chattr +i etc etc/localtime var
(from the URL above)
appiled some kind of protection that i had to unset. so i did the same thing but -i instead of +i and i was able to delete everything


just posting for archive purposes
 
  


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
chroot and bind rickl Linux - General 2 01-12-2011 02:21 PM
Fedora bind-chroot permissions wrong rhoekstra Linux - Networking 1 08-07-2005 09:47 PM
Chroot bind 9.3.0 in slackware 10 - noobie houler Linux - Security 8 04-01-2005 05:53 PM
Bind chroot problem dementiaa Linux - Software 3 12-26-2004 04:14 AM
Bind 9 - Chroot problems Nauseous Linux - Networking 2 11-01-2003 04:51 AM


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

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