[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh loading at startup



> trying to get ssh to load at boot
> 
> i have created a script in /etc/init.d called ssh
> i have also created a symbolic link to it from
> /etc/rc2.d called S20ssh
> 
> but upon bootup the log says
> /etc/init.d/rc: /etc/rc2.d/S20ssh:  Permission denied
> 

Does root have execute permissions on the script in /etc/init.d that
S20ssh points to? The symlink permissions are ignored.

Jason

> anyone know why, or maybe an easier way then the one explained?
> 
> 
> 
> >
> > i have made the script that i think will work /etc/init.d/ssh
> >
> > #! /bin/sh
> >
> > # /etc/init.d/ssh: start and stop the "secure shell(tm)" daemon
> >
> > test -x /usr/local/sbin/sshd || exit 0
> >
> > # Configurable options:
> >
> > case "$1" in
> >   start)
> >         echo -n "Starting Secure Shell server: sshd"
> >  start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
> > /usr/sbin/sshd
> >         echo "."
> >  ;;
> >   stop)
> >         echo -n "Stopping Secure Shell server: sshd"
> >  start-stop-daemon --stop --quiet --oknodo --pidfile
> > /var/run/sshd.pid --exec /usr/sbin/sshd
> >         echo "."
> >  ;;
> >
> >   reload|force-reload)
> >         echo -n "Reloading Secure Shell server's configuration"
> >  start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
> > /var/run/sshd.pid --exec /usr/sbin/sshd
> >  echo "."
> >  ;;
> >
> >   restart)
> >         echo -n "Restarting Secure Shell server: sshd"
> >  start-stop-daemon --stop --quiet --oknodo --pidfile
> > /var/run/sshd.pid --exec /usr/sbin/sshd
> >  start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
> > /usr/sbin/sshd
> >  echo "."
> >  ;;
> >
> >   *)
> >  echo "Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}"
> >  exit 1
> > esac
> >
> > exit 0
> >
> >
> >
> > but how do i make a symlinks
> > to it:
> >  /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
> >
> > i am a newbie
> > ls ????
> >
> >
> > ----- Original Message -----
> > From: Ron Rademaker <ron@wep.tudelft.nl>
> > To: Beavis <beavis@bidz.com>
> > Cc: debian list <debian-user@lists.debian.org>; <recipient list not shown:
> > ;>
> > Sent: Monday, March 20, 2000 3:38 PM
> > Subject: Re: ssh loading at startup
> >
> >
> > > /etc/init.d/ is where you have to put the script
> > > /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
> > >
> > > Ron
> > >
> > > On Mon, 20 Mar 2000, Beavis wrote:
> > >
> > > > everytime i reboot my linux box i have to run the ssh deamon
> > > >
> > > > where can i put a line to tell it to start the ssh service at bootup
> > > >
> > > > thankx
> > > >
> > >
> > >
> >
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 
> 


Reply to: