1832964 Members
2487 Online
110048 Solutions
New Discussion

named - DNS question

 
Sundar_7
Honored Contributor

named - DNS question

All,

I am trying to figure out if there is a way in HP-UX that I can start "named" daemon under a different user name. I know in Sun-OS, named has an option -u which the root user can use to start the daemon under a different like

# /usr/sbin/named -u normaluser

Do we have something like this in HP-UX ?

Thanks,

Sundar.
Learn What to do ,How to do and more importantly When to do ?
6 REPLIES 6
Cole L.
Advisor

Re: named - DNS question

named -u normaluser should work.

make sure normaluser has execute permissions. Not sure what permissions would be needed on /etc/named.conf
Sundar_7
Honored Contributor

Re: named - DNS question


Nope, it doesnt work in HP-UX 11.0, atleast

# what /usr/sbin/named
/usr/sbin/named:
Copyright (c) 1986, 1989, 1990 The Regents of the University of California.
named 4.9.7 Mon Feb 12 07:18:56 GMT 2001 PHNE_23274
#

# named -u swamins1
Usage: named [-d #] [-q] [-r] [-X] [-p port[/localport]] [[-b] bootfile]
#
Learn What to do ,How to do and more importantly When to do ?
Cole L.
Advisor

Re: named - DNS question

11i will use it. I ran it on an 11.0 system and get the same error as you. man page on 11.0 system shows usage as ...

named [-d debuglevel] [-p port_number] [[-(b|c)] config_file] [-f] [-q] [-r] [-u user_name] [-g group_name] [-t directory] [-w directory] [config_file]

Steven E. Protter
Exalted Contributor

Re: named - DNS question

Yes.

The easiest way to do this is to run Bastille and choose the option to run named as a regular user. It will not complete the action, it will leave you a log of instructions you need to do to finish.

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6849AA

I know its hokey, but its extremely easy.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sundar_7
Honored Contributor

Re: named - DNS question


The bind version I had would not allow me to specify the -u option. I upgraded to BIND 9.2.0. Now I could start the BIND daemon under a normal user. Thanks to you both.
Learn What to do ,How to do and more importantly When to do ?
Suresh Patoria
Super Advisor

Re: named - DNS question

Hi

check the man pages

#man named

thanx