[quote=“bloodaxe70”]Salut,
Que donne un
echo $LOGNAME
Chez moi, ca affiche root.[/quote]
Bonjour ;
Oui, je suis bien d’accord. En fait, cette variable (d’envirronement ???) contient le pseudo de l’utilisateur actuellement connecté. Ce faisant, dans mon cas cette variable ne semble pas être affectée dans le chroot du système minimal géré par pbuilder lors du procéssus de construction (sudo pbuilder build …). Dans mon envirronement normal, elle l’est bien.
Par ailleurs, lorsque je me logue dans le chroot (hors processus de construction), j’obtiens :
nuxwin@ahtlon64:~$ sudo pbuilder login
Password:
load the specific nuxwin team configuration file...
The location of build will be in /home/nuxwin/Desktop/home_pbuilder/work_build/. ..
The result will be in /home/nuxwin/Desktop/home_pbuilder/paquets_construits...
The location of cache for APT will be in /home/nuxwin/Desktop/home_pbuilder/aptc ache/...
Building the build Environment
-> extracting base tarball [/home/nuxwin/Desktop/home_pbuilder/base/base.tgz]
-> creating local configuration
-> copying local configuration
-> mounting /proc filesystem
-> mounting /dev/pts filesystem
-> policy-rc.d already exists
Obtaining the cached apt archive contents
-> entering the shell
File extracted to: /home/nuxwin/Desktop/home_pbuilder/work_build//12809
root@ahtlon64:/# echo $LOGNAME
root
Enfin, le fichier utml est bien présent également dans le chroot :
root@ahtlon64:/var/run# ls
motd utmp
Mais il est vide :
-rw-rw-r-- 1 root utmp 0 Nov 4 03:39 utmp