Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-2009, 07:11 AM
Advanced Member
 
Posts: 206
Default Split-DNS: dedicated named user recommended?

Hello,

I am in the process of setting up Split-DNS (under Ubuntu for the NE- and under Debian
for the OSS-version. No, we are not going to run them at the same time :-)



I am wondering why the following document recommends "to make sure that yourdomain.com.zone (Redhat?)
is owned by named, not root"
( Making Zimbra & BIND Work Together » Zimbra :: Blog )


but in the following installation HowTo(Ubuntu), that matter is not even mentioned....

Ubuntu 6.06 Server (Dapper Drake) Beginner's Install Guide - Zimbra :: Wiki
Ubuntu 8.04 LTS Server (Hardy Heron) Install Guide - Zimbra :: Wiki


2.
Is it in Ubuntu- and Debain-environments recommended to add a dedicated user? How should that user be named?



Thank you very much!

John
Reply With Quote
  #2 (permalink)  
Old 06-23-2009, 07:18 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

Install it as whatever user you like, except root, that's your choice.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-23-2009, 07:30 AM
Advanced Member
 
Posts: 206
Default

Quote:
Originally Posted by phoenix View Post
Install it as whatever user you like, except root, that's your choice.
Wow phoenix, that was nearly realtime :-)

Ups, I already installed bind9 at the same time as the OS (as root :-)... Since I am not very confident
with Linux access right, it would probably be easier to remove bind9 at all and to re-install in in an
other user context. Even re-installing the whole OS would be not problem at this point in time..

What would you suggest?


Thank's a lot!

John
Reply With Quote
  #4 (permalink)  
Old 06-23-2009, 08:03 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

If you're using your distributions package manager then it will usually(?) install it as a different user, on my CentOS system it gets installed as the 'named' user. You might also want to see if there's a chroot version in your distribution and install that. Are you actually sure that BIND (named) is installed as the root user or are you just assuming that because you installed it when you did the initial install?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 06-24-2009, 12:48 AM
Advanced Member
 
Posts: 206
Default

Thanks for the promt reply.

Ok, i reinstalled the OS(Debian for the nameserver), added the user "named"
finished the OS installation and rebooted the machine.

Then:
Login to the system as user named
(since I could not install bind9 in this user context, i did su)
# su
/home/named
# apt-get install bind9


Is this approach correct ?


Thank's a lot for any help!

John
Reply With Quote
  #6 (permalink)  
Old 06-24-2009, 01:19 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

When you need to become root you should always use the "su -" format, the hyphen is important and sets the user environment correctly. Yes, installing software as root is the normal way to it.

If you're not used to managing a server then you'd probably find using Webmin a good option, have a look at this page: Webmin Installation and Configuration in Debian and Ubuntu Linux -- Debian Admin Webmin is a useful web interface for managing your server, I'd suggest you install it and become familiar with it.

You should be able to see if you have the named group with the following:

Code:
goups named
and see which user named is running with (obviously, start it first):

Code:
ps aux | grep named
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 06-24-2009, 02:33 AM
Advanced Member
 
Posts: 206
Default

Quote:
Originally Posted by phoenix View Post
When you need to become root you should always use the "su -" format, the hyphen is important and sets the user environment correctly.[/CODE]
Thanks this way it seems to work. At least no bind error message is showed during starting the OS (unlike before) :-)

Quote:
Originally Posted by phoenix View Post
You should be able to see if you have the named group with the following:
Code:
goups named
and see which user named is running with (obviously, start it first):
[/CODE]
Seems the following output to be ok?
named dialout cdrom floppy audio viedeo player


Hopefully the last question:
Should the Split-DNS related files (/etc/resolv.conf, named.conf.options, db.mydomain.com) be edited as user "root" or as user "named" an su - ?

Thank's a lot!

John
Reply With Quote
  #8 (permalink)  
Old 06-24-2009, 06:14 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

I'm not a debian user but I've just installed it on a VM and apparently the user & group for BIND is actually 'bind'. The answer to your question is yes, they should be edited by root. You should not normally switch to the root user but rather use sudo to run a root command (but I'm sure you know this already).
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.