Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I create (if the folder is new) or change (if the folder was already existent) permissions for a folder?

In particular, I want to create a subdirectory in /etc/bind/ where I can put the named_dump.db file, so I've to create the new directory with write permission for bind user and group.
First of all, is it right?
And if I want to change /etc/bind/ permissions and save there named_dump.db?

share|improve this question

Normally as root:

mkdir /etc/bind
chown bind:bind /etc/bind
share|improve this answer
mkdir /etc/bind
chown bind:bind /etc/bind
chown bind:bind /etc/bind/named_dump.db

Should do the trick. The last command should done after named_dump.db is created or copied into place. You need to do this as root, or if sudo is implemented on your distribution using sudo if you are in the sudoers group.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.