[Pkg-shadow-devel] Bug#425363: Bug#425363: DEFAULT_HOME in /etc/login.defs is ignored

Christian Perrier bubulle at debian.org
Mon May 21 16:43:05 UTC 2007


Quoting Hubert Mercier (hubert.mercier at unilim.fr):
> Package: login
> Version: 1:4.0.18.1-7
> Severity: normal
> 
> Hi,
> 
> Setting DEFAULT_HOME to "no" in /etc/login.defs has no effect : users
> without valid homedir are still able to log in.

Well, partly in French dans le texte:

root at mykerinos:~> grep DEFAULT_HOME /etc/login.defs
DEFAULT_HOME    no
root at mykerinos:~> grep spongebob /etc/passwd
spongebob:x:1002:1002:Sponge Bob SquarePants,,,:/home/spongebob_has_no_home_but_a_pine_apple:/bin/bash
root at mykerinos:~> login
mykerinos login : spongebob
Password:
Last login: Mon May 21 18:36:18 2007 on pts/2
Linux cc-mykerinos 2.6.20-1-686 #1 SMP Tue Apr 24 21:52:11 UTC 2007 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Impossible d'aller dans le répertoire « /home/spongebob_has_no_home_but_a_pine_apple »


So, nothing wrong in my own environment.

The same happens with "su -". Login is still possible with "su" alone,
but that's the intended behaviour as, in such case, $HOME is inherited
from the environment of the user who calls "su".


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20070521/845d5abf/attachment.pgp 


More information about the Pkg-shadow-devel mailing list