TurnKey Linux Virtual Appliance Library

start-stop-daemon, --chuid and keychain

pjfoley's picture

Hi all,

I am hoping someone can help this init script newbie.

For my init script I would like to switch to a different user account for security reasons.  Using the start-stop-daemon I have used the "--chuid" option to switch users.

This works fine however I have found that the user account does not make use keychain for ssh connections.

Is this normal behaviour for the start-stop-daemon?

To work around this issue I have just created a seperate wrapper script "invoke_app" that manually calls keychain and then invokes the application.

Is there another more standard way to do this?



Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)