Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm trying to get the No-IP client to start automatically so I can SSH in to my computer from anywhere. Right now what I tried does not work, It doesn't start on boot. Their directions don't seem in line with how the startup scripts are set up for Slackware so I tried to do my own.
Here's what I did:
chmod 700 /usr/local/bin/noip2
chown root:root /usr/local/bin/noip2
chmod 600 /usr/local/etc/no-ip2.conf
chown root:root /usr/local/etc/no-ip2.conf
Then made /etc/rc.d/rc.no-ip abd added the following to the end of /etc/rc.d/rc.M
#Start the no-ip client
if [ -x /etc/rc.d/rc.no-ip ]; then
and here's what /etc/rc.d/rc.no-ip looks like
if [ -x /usr/local/bin/noip2 -a -r /usr/local/etc/no-ip2.conf ]; then
echo "Starting No-IP: /usr/local/bin/noip2"
case "$1" in
So my main question is why doesn't this work? But also I know -x means exists and is executable, -r means exists and is readable, but what does -a mean? I just copied this script pretty much from the rc.samba file so I'm not entirely sure it's right. The No-IP directions suggest a different script. They first have you find the default runlevel (i think) by doing this:
for me that returns 3 so they say name the file rc.3. I wanted to try to stay in line with Slackware style and not add this file by instead doing what I did above. But anyway here is what their script looks like:
Another thing I don't understand is why the case statement, I believe the $1 refers to the first parameter passed when the script is called, how/when is this done? And why do you think they used killproc? Don't almost all Unix/Unix-look-a-like's have kill for sending the TERM signal to processes? As you can see that's what I used in my script.
BTW I can get it to start if I actually do su and manually start it, yet the USER seems odd TOP says its user is "nobody" Shouldn't be root?
As my post said I had them set to 700 but I set the to 777 and rebooted and it still did not start up. Plus wouldn't I want the no-ip client to only be run with root permission since I pretty much dont want any user to be able to stop it or mess with it's settings?
You might put an echo statement in the if block in /etc/rc.d/rc.M to make sure that it is seeing /etc/rc.d/rc.no-ip and trying to execute it. Also, I think I see another issue -- you mention having some douby about the $1 in the case statement -- that is the first parameter passed, but you never pass a parameter. The start|stop|restart parameters are passed automatically in SysV style initilization, but not in BSD style, which is what Slackware uses -- try adding "start" as an argument to your script. Also, the case statement should have start) not 'start').
As for permissions, no one except for root and nobody will be able to kill nobody's processes. Nobody is an account that no one should have access to, so unless you've made a massive security mistake, you're safe.
I removed the 'start' and made it start, likewise with the others. I added the extra echo. And also although I explicity remember changing the permission on the executable, and again to full permissions it was not set correctly. I have no idea why this happened but I set it to 700 and all worked! Excellent. Also yeah -a means and, 30 sec of messing around at a prompt let me figure out what was working and what wasn't. Now only to test it. Who wants my login and password so we can test this thing?