LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2004, 11:50 AM   #1
zzero
Member
 
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43

Rep: Reputation: 15
named -u named at startup


I've got what's probably a quick question.

I have to manually start named everytime I start my machine. I created a permissions problem. I was following someone's instructions and created a user "named" and set permissions for named to run as that user.

Now, when my box starts up and tries to run named automatically, my /var/log/messages file shows a permissions error so it doesn't run. I have to manually type "named -u named" to get it to start correctly.

Is there a way I can get it to start automatically as that user?

Thanks in advance.
 
Old 03-15-2004, 12:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You could always use rc.local to achieve that ...
Just put a line like this:
Code:
/bin/su - named /path/to/named -u
into rc.local


Cheers,
Tink
 
Old 03-15-2004, 01:03 PM   #3
zzero
Member
 
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43

Original Poster
Rep: Reputation: 15
I didn't understand exactly what you typed, but rc.local was the file I was looking for.

I edited the line to read:

/usr/local/sbin/named -u named


and it worked perfectly. Is there a problem doing it the way I typed it?


Thanks so much for the help!
 
Old 03-15-2004, 01:08 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
If it works apparently not ;)


Cheers,
Tink
 
Old 03-16-2004, 12:08 AM   #5
zzero
Member
 
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43

Original Poster
Rep: Reputation: 15
Talking

Heh, ok. Thanks man.

Just checking. I basically have no idea what I'm doing in Linux half the time, so just thought I'd be safe and ask. LOL


Thanks again,

ZZ
 
  


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
named at startup dburch@yousq.ne Linux - Newbie 1 10-19-2004 10:56 PM
how to make named start automatically at startup nazzymac *BSD 3 04-20-2004 10:58 AM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 12:49 PM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 05:27 PM
named... sudo Linux - Networking 10 12-09-2002 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 PM.

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