Bug 1442 - Feature request: Add ability to override $HOME with a temp location
Summary: Feature request: Add ability to override $HOME with a temp location
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: -current
Hardware: Other Linux
: P2 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-27 04:37 AEDT by Niall Sheridan
Modified: 2022-07-31 00:27 AEST (History)
3 users (show)

See Also:


Attachments
Temp homedir patch (12.27 KB, patch)
2008-02-27 04:37 AEDT, Niall Sheridan
tylercashea33: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Niall Sheridan 2008-02-27 04:37:29 AEDT
Created attachment 1457 [details]
Temp homedir patch

On hosts with nfs homedirs, it can be useful to have an option of not using your real $HOME from time to time. I've put together a patch which allows a client to request a temp homedir using the option RequestTempHomedir. On the server, I've added a PermitTempHomedir option to allow this feature. It can also be triggered selectively using a Match directive.
Comment 1 Alexey Zbinyakov 2012-04-17 04:30:21 AEST
I think it should be allowed always to use $HOME, according to getpwnam(3):

"An  application  that  wants  to  determine  its  user's  home  directory  should  inspect  the  value  of  HOME  (rather than the value getpwuid(getuid())->pw_dir) since this allows the user to modify their notion of "the home directory" during a login session."

I see no reason to get initial homedir.
Comment 2 Hoff 2019-08-31 23:22:33 AEST
[spam deleted]