Bug 1442

Summary: Feature request: Add ability to override $HOME with a temp location
Product: Portable OpenSSH Reporter: Niall Sheridan <nsheridan>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: minor CC: hoffman9417calvin, tylercashea33, zbinyakov
Priority: P2    
Version: -current   
Hardware: Other   
OS: Linux   
Attachments:
Description Flags
Temp homedir patch tylercashea33: ok+

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]