Re: X-Forwarding without writeable $HOME

From: Richard E. Silverman (res_at_qoxp.net)
Date: 08/21/03

  • Next message: phil-news-nospam_at_ipal.net: "installing openssh man pages in /usr/man/man*"
    Date: 21 Aug 2003 12:55:15 -0400
    
    

    >>>>> "LR" == Lars Rehe <lars.rehe@web.de> writes:

        LR> Hi all. Maybe someone can help me with this one.

        LR> We set up a Solaris9 machine with OpenSSH3.6.1p2 for our users to
        LR> use it as a secure gateway to machines in our internal
        LR> network. There are no user directories (NFS based) available,
        LR> every user finds himself in / after successfull login.

    My first thought is that, because OpenSSH maintains a number of per-user
    variables in the home directory that users might want to alter, you should
    give them home directories.

        LR> Having $HOME set to '/' we are no longer able to use ssh
        LR> X-Forwarding because xauth is not allowed to write
        LR> $HOME/.Xauthority. Of course we would like to use this feature
        LR> since it is much more convenient for the user instead of using
        LR> 'xhost' and 'setenv DISPLAY'.

    If you're using public-key authentication, you can use something like
    this per user:

    environment="XAUTHORITY=/tmp/user.xauth" ssh-dss AAAAB3NzaC1kc3MAAACBAMXX...

    Or, you could use ~/.ssh/environment, but you probably have a single such
    file for all your accounts.

    Or, you could use ~/.ssh/rc to store the xauth cookie, but you'd have to
    find a way to get that location into the login environment.

    -- 
      Richard Silverman
      res@qoxp.net
    

  • Next message: phil-news-nospam_at_ipal.net: "installing openssh man pages in /usr/man/man*"

    Relevant Pages

    • Re: Cant see FreeBSD machine in Macs Finder
      ... |>Preferences tells me that other machines on the network can access as ... You can use howl to advertise an NFS service that MacOS X will ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ...
      (freebsd-questions)
    • Re: What linux lacks most - a decent remote fs
      ... openings right and it depends on uid's matching at the client and server ... What I mostly see is every imaginable problem on different machines ... to "support" NFS, but which together are highly unreliable (especially ... TCP, but if your network is a mess, it needs to be cleaned up. ...
      (Fedora)
    • Re: Help understanding error?
      ... > Running a specific program on each of the 10 machines ... I usually don't have that many machines trying to access an NFS export, ... I've also run into problems using NFS where the network infrastructure is ... I was trying to do network installs of RH9 on several ...
      (comp.os.linux.misc)
    • Re: Network File serving options
      ... > Openserver machines acting as cash registers and one machine that interfaces ... > a file server (it doesn't have nearly as much activity as the registers). ... > reliability, etc, or is NFS the perfect way to go? ... > The network is a 10mb/s network. ...
      (comp.unix.sco.misc)
    • Linux/FreeBSD NFS incompatibilities (was: Connection refusal for an NFS mount)
      ... On an old Redhat box, I'm trying to mount an NFS ... export from a FreeBSD box. ... Both machines are on the same ... network segment, and neither have any onboard firewalling rules. ...
      (freebsd-questions)