Re: different ssh settings for different users(solved)

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

 



On Sun, 2006-06-04 at 20:26 -0400, William Hooper wrote:
> Ankush Grover wrote:
> >> Can you start the 3 instances yourself using the command
> >> line instead of the init script?  If so, your script changes aren't doing
> >> what you expect to use the right config files.
> >>
> >
> > yes I can start the 3 instances from the command line but not from the
> > init script even though I have mentioned in the init script which config
> > file to use for example for sshd1
> >
> > KEYGEN=/usr/bin/ssh-keygen
> > SSHD=/usr/sbin/sshd1
> > RSA1_KEY=/etc/ssh/ssh_host_key
> > RSA_KEY=/etc/ssh/ssh_host_rsa_key
> > DSA_KEY=/etc/ssh/ssh_host_dsa_key
> > PID_FILE=/var/run/sshd1.pid     ---> pid
> > CONFIG_FILE=/etc/ssh/sshd_config1   ---> config file
> 
> I see no "CONFIG_FILE" entry in the default init script.  Have you tried
> specifying the "-f" option on the line that starts the program?
> 
The default init script does however do a source on /etc/sysconfig/sshd
which does not exist by default.

Why not put a line in there that can be used by the init command that
actually starts sshd.
        $SSHD $OPTIONS && success || failure
$OPTIONS has no value by default, so if something like
   OPTIONS="-f /your/config/file"
were put into the specialized sshd file in /etc/sysconfig (or even into
the beginning of the specialized init script) it should work. 

> -- 
> William Hooper
> 

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux