On Sat, 2021-12-18 at 19:22 +0100, Bill Allombert wrote: > This seems to be a misunderstanding of the purpose of --no-create-home. > This option does not say that the user does not have a home directory, > but that it should not be created by adduser, and instead will be create > later by some other procedure, for example by setting pam_mkhomedir > to create it on first login, or by mounting a NFS filesystem on /home, > etc. > > In this bug report, users used --no-create-home but failed to create the > home directory themselves. > It seems that what they wanted to do was '--home /nonexistent'
Agreed. I see the difference now. I suppose I had thought that the discussion on this report happened before the usage of /nonexistent was standard. > I would suggest you add an option --no-homedir that do '--home /nonexistent' > or whatever is appropriate and close this bug. This is an interesting idea. It would at least provide a distinction for the intended result and it would guide people toward complying with Debian Policy in the case that a user is not supposed to have a home directory. -- Jason Franklin