Submitted 20-Jun-00 by Andrew George:
> I'd try it in the .login script

See my response above for how this can be a problem

> or (never tried this but would the following command work in rc.local)
> exec command << 'su user' << 'user password'

Because rc.local runs as root, no password is required to change euid
for running a command.  Also, see above for the preferred method of
invoking su for a particular user/command.

> Huge security hole though

It would be if the password were required.

-- 
       _
     _|_|_
      ( )   *    Anton Graham
      /v\  /     <[EMAIL PROTECTED]>
    /(   )X
     (m_m)       GPG ID: 18F78541
Penguin Powered!

Reply via email to