On Thu, Sep 04, 2003 at 11:25:27AM -0500, Dana Holland wrote: > [EMAIL PROTECTED] wrote: > > >Try to add an extra '-' after 'su' > > Thanks! That was it - works great now!
Perhaps I should also explain why. Simply giving "su" a command to execute will run it in the environment of the calling process, thus a shell will try to read from /root/.bashrc - which it can't for obvious reasons. The additional - creates a login shell, thus all environmental stuff is reset before going on into the command you want to execute. > >There's also a deactivate option available... > > I saw that, but it didn't have enough info - does that simply prevent > logging in? Would it affect the functioning of this vacation program in > any way (in other words, would that still work the same way it's working > now?) Reading the manual page would provide ypu with the info that it prepends a ! before the encrypted password, with the effect that the result cannot be a valid encrypted password anymore, vulgo: account locked, but reversibly locked. Steffen -- Steffen Grunewald * * * Merlin cluster admin (http://pandora.aei.mpg.de) MPI für Gravitationsphysik (Albert-Einstein-Institut) Am Mühlenberg 1, 14476 Golm, Germany (http://www.aei.mpg.de) e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298} -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list