Re: ssh



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 10/31/07, Michael Grant wrote:
If I'm sued as root and I ssh somewhere, ssh/scp reads it's files from
/root/.ssh/. The docs say it reads from ~/.ssh which is what I want,
but it's not doing that. When sued, the shell is properly expanding ~
to my home dir.

Anyone know of a way around this behavior?

Instead of just 'su' use 'su -' and that should do the trick.

- --
Andy Harrison
public key: 0x67518262
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHKHvaNTm8fWdRgmIRAhFhAJ46R6bNuvJy3BY4ooAdaI3vcsRp8gCgzAYU
nynWAduwbQCBu3x/DLJbhRg=
=9XV1
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [SLE] compare dir
    ... Hash: SHA1 ... Instead of using typed commands in the shell, ... opens in 'split' view... ...
    (SuSE)
  • Re: shell or bash extension that allows browsing inside an archive
    ... Hash: SHA1 ... Ittay Dror em comp.unix.shell escreveu: ... shell, in a way similar to that offered by many file managers. ...
    (comp.unix.shell)
  • [SLE] Setting PATH??
    ... Hash: SHA1 ... On SuSE 8.2, default shell ...
    (SuSE)
  • Re: Where am I? :)
    ... Hash: SHA1 ... it could have different reasons then: ... your box has been hacked, and you have a somewhat crippled login or ... shell, try to replace that things with clean ones. ...
    (freebsd-questions)
  • Re: ssh
    ... the shell is properly expanding ~ ... Paul Schmehl ... The University of Texas at Dallas ...
    (freebsd-questions)