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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-15-2004, 11:50 AM
|
#1
|
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Rep:
|
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.
|
|
|
|
03-15-2004, 12:31 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
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
|
|
|
|
03-15-2004, 01:03 PM
|
#3
|
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
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!
|
|
|
|
03-15-2004, 01:08 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
If it works apparently not ;)
Cheers,
Tink
|
|
|
|
03-16-2004, 12:08 AM
|
#5
|
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:10 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|