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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
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: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
All times are GMT -5. The time now is 07:17 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
|
|