Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-22-2005, 09:44 PM   #16
Registered: Nov 2003
Location: india
Posts: 46
Blog Entries: 1

Rep: Reputation: 15

Edit the /etc/ssh/sshd_config file and change the value "Permitrootlogin" to "yes" in the server box
then u can do the rest using the client box
Old 11-22-2005, 10:13 PM   #17
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
/me coughs ... suchi, you're kidding, right?

hueofwind: instead of making a shell-script
suid create a sudoers file and give the sysauto
user permission to run /etc/init.d/dhcpd restart
password-less (again with your ssh-mechanism).

And even though I know you didn't like my suggestion...
How about running a test (check whether file was modified
in the last six minutes every five minutes from cron and
if it was restart the dhcp-daemon).
find /etc -ctime -6 -iname dhcpd.conf -exec /etc/init.d/dhcpd restart \;
and a crontab entry:
*/5 * * * *

Old 11-23-2005, 07:07 AM   #18
LQ Newbie
Registered: Sep 2003
Location: Dunsany, Ireland
Distribution: Debian, Ubuntu, Redhat, OpenELEC
Posts: 10

Rep: Reputation: 1
It's a shell script.
The shell itself is not setuid.

Run chmod +s /bin/bash and it'll work just dandy for you!

DON'T. :-)

Spend five minutes setting up the complicated remote execution environment,
and then all the logical flow of stopping and restarting the two servers and
getting the file across is under the control of one process.

Is it necessary to have two DHCP servers? In general they hate each other.
You might look into setting B to watch A, and only launch dhcpd if the service
on A fails.

If they're on seperate subnets, you could also look at using a relay instead.

Good luck with it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't SSH until restart service Da Puff Mandriva 4 09-14-2005 09:51 PM
SSH restart makes new keys? Consul Linux - Security 1 07-08-2005 10:14 PM
restart linux from SSH connection? deWin Linux - Newbie 6 09-28-2004 11:22 PM
X apps in ssh and vpn through dhcpd jimjactin Linux - Newbie 2 11-05-2003 12:22 AM
dhcpd (server) doesn't work !!! exalik Mandriva 1 09-03-2003 05:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration