Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

2 Answers

Normally as root:

mkdir /etc/bind
chown bind:bind /etc/bind
share|improve this answer
add comment
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
add comment

Your Answer

 
discard

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.