LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-22-2007, 02:19 PM   #1
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Rep: Reputation: 15
Bind


I'm trying to set up Bind. Here I add the user named for Bind.

All of these were used as Root.

useradd -r -d /var/named -s /sbin/nologin named

Here I create the chroot jail.
rm -rf /var/named

Make my directories.
mkdir -p /var/named/chroot/dev
mkdir -p /var/named/chroot/etc
mkdir -p /var/named/chroot/var/run
mkdir -p /var/named/chroot/var/named

Now comes the ERROR.

Here I'm trying to give the proper permissions to the directories.

When I run this:
chown -R root:named /var/named

I get this error: chown: root:named : invalid group
What am I doing wrong?

When I'm doing these I am at:
xyz:~ #
 
Old 01-22-2007, 02:22 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You never created a group named, just a user named. man addgroup will help you.

The statement "chown -R root:named /var/named" makes user root of group named the owner of those directories recursively. You need to create the group named, or make named:users the owners.

Peace,
JimBass
 
Old 01-22-2007, 04:07 PM   #3
cthomas
Member
 
Registered: Aug 2005
Posts: 91

Original Poster
Rep: Reputation: 15
Red face

Quote:
Originally Posted by JimBass
You never created a group named, just a user named. man addgroup will help you.

The statement "chown -R root:named /var/named" makes user root of group named the owner of those directories recursively. You need to create the group named, or make named:users the owners.

Peace,
JimBass
Makes sense now.

Would Named group be a system group?
 
Old 01-22-2007, 06:31 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I don't know what you mean by "system group". Groups are just like users, they exist everywhere on the computer. I think groups came about because of security. You needed cases where every member of group A would need read and write access to file Z, yet if the file was owned by any single member of the group, say person M, then the only way things would work would be if the permissions were set to world-writable, which is very dangerous. The group acts as a buffer. Every member of group A gets the second set of permissions on a file. That way a permission of 664 on a file owned by root:named means root (the owner) can read and write, named (the group) can read and write, and everyone else can read, but not write. Obviously not everyone can be root, but if your user has membership in group named, then you also have permission to write to the file.

Checkout the security model, particularly permissions for users and groups, and post back with any questions.

Peace,
JimBass
 
  


Reply



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
How do I import bind ".hosts" files into another BIND server chantman Linux - Software 0 06-30-2006 11:51 AM
LXer: DNS: The Bind Leading the Bind LXer Syndicated Linux News 0 06-15-2006 10:33 PM
How to update BIND ./etc/bind/db.coaxcables AndeAnderson Debian 0 03-03-2006 09:35 AM
How do I revert to Bind 8 from Bind 9? digging4roots Linux - Newbie 3 06-08-2002 04:40 PM
To 'Bind' or not to 'Bind' that is the question jsurgeson Linux - Newbie 2 03-24-2002 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:18 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
Open Source Consulting | Domain Registration