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!
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.
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.
The variable $OPTIONS should be unset since it isn't set anywhere in that script. But you'd get an "illegal instruction" if it is set improperly.
As root, enter "echo $OPTIONS" and report on what it says. Should give a blank line.
Also, that line 102 has to be wrong; that is a left brace. I suggest you put some debug echo statements into the script in order to figure out exactly what line the script is failing on.
The variable $OPTIONS should be unset since it isn't set anywhere in that script. But you'd get an "illegal instruction" if it is set improperly.
As root, enter "echo $OPTIONS" and report on what it says. Should give a blank line.
Not entirely accurate. You're right that the script does not set the value of OPTIONS, but the script does indeed source other files:
Code:
# source function library
. /etc/rc.d/init.d/functions
# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
I used Red Hat many moons ago. The functions file contains generic utilities used across all startup scripts. Granted, this is CentOS, but I see no reason why they'd change things.
My bet would be that /etc/sysconfig/sshd is where OPTIONS gets set. Also, if I'm not mistaken, those sysconfig files are updated through some gui helper-config app. So, I'm thinking the OP used that app, changed some things without knowing exactly what was going on.
And if I'm right, OPTIONS wouldn't be an environment variable--meaning that trying to echo it wouldn't yield any useful info.
So, amartlk, please post the entire contents of /etc/sysconfig/sshd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.