Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Chroot Bind9

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
threepwood
Posts: 2
Joined: 2017-08-29 12:32

Chroot Bind9

#1 Post by threepwood »

Hello,

I just mounted a Debian 9.1, basic installation, with nothing, just ssh.
I installed Bind9: apt-get install bind9
I have not modified the bind configuration.
Then I would chroot my Bind, I followed the procedure here:
http://www.debianuserforums.org/ucp.php ... 92Y6L66TXM

Once restarted, my bind works, but I have errors:

couldn't mkdir '//run': Permission denied
generating session key for dynamic DNS
couldn't mkdir '//run': Permission denied
could not create //run/named/session.key
failed to generate session key for dynamic DNS: permission denied

I tried to play with the permissions, but it has not changed, I do not know too much or look.

Thank you for your help.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Chroot Bind9

#2 Post by GarryRicketson »

I don't think you can create a double // directory. Also you would need to be
root to make a directory there.
The link does not link to any specific thread, I don't feel like browsing that entire forum
trying to figure out which thread it is.
I tried to play with the permissions, but it has not changed,
Changing and "playing" with the permissions, when " I do not know too much" you don't even know what the changes will do is not very wise.
Changing the permissions won't fix this, hope you saved the info on what the original
permissions were.
See

Code: Select all

man mkdir
EXAMPLES
Create a directory named foobar:

$ mkdir foobar

Create a directory named foobar and set its file mode to 700:

$ mkdir -m 700 foobar

Create a directory named cow/horse/monkey, creating any non-existent
intermediate directories as necessary:

$ mkdir -p cow/horse/monkey
Hint, just because it say "permission denied" does not mean that it is the permissions settings, it can also mean the operation simply is not permitted, in this case the // is
what is not permitted, as far as I know,...of course I could be wrong , since I do not know everything.
Something like this would work :

Code: Select all

$ mkdir -p run/foobar/this 
 cd run/foobar/this
$ pwd
/home/garry/run/foobar/this
==================== edited ==============
P.S.
Like I said this does not link to any thread, but in any event, if you are following
a procedure or "how to", on that forum, it would probably be best to ask the author of
the procedure, ... why their procedure does not work for you. If you want help form here,
please post the details on exactly what you did. Please use "code boxes" for the commands, and code.

threepwood
Posts: 2
Joined: 2017-08-29 12:32

Re: Chroot Bind9

#3 Post by threepwood »

Thank you for your information and comments.

Post Reply