all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#33422: /etc/passwd on GuixSD can end up containing default home directories
@ 2018-11-18 22:05 Ludovic Courtès
  2018-11-18 22:43 ` Ludovic Courtès
  2018-11-18 22:44 ` Leo Famulari
  0 siblings, 2 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-11-18 22:05 UTC (permalink / raw)
  To: 33422

Hello Guix,

On IRC, fps reported this issue: their user account was declared like
this:

26   (users (cons (user-account                              
27                 (name "fps")                              
28                 (comment "fps")                           
29                 (group "users")                           
30                 (supplementary-groups '("wheel" "netdev"  
31                                         "audio" "video")) 
32                 (home-directory "/home/bob"))    ;<--- notice “bob”!

… yet /etc/passwd would refer to /home/fps for user “fps” (this is on a
fresh GuixSD 0.15.0 install.)

This in turn would prevent logging in as “fps” because /home/fps didn’t
exist (meaning the ‘user-homes’ Shepherd service created /home/bob, not
/home/fps.)

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33422: /etc/passwd on GuixSD can end up containing default home directories
  2018-11-18 22:05 bug#33422: /etc/passwd on GuixSD can end up containing default home directories Ludovic Courtès
@ 2018-11-18 22:43 ` Ludovic Courtès
  2018-11-18 22:44 ` Leo Famulari
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-11-18 22:43 UTC (permalink / raw)
  To: 33422-done

ludo@gnu.org (Ludovic Courtès) skribis:

> On IRC, fps reported this issue: their user account was declared like
> this:
>
> 26   (users (cons (user-account                              
> 27                 (name "fps")                              
> 28                 (comment "fps")                           
> 29                 (group "users")                           
> 30                 (supplementary-groups '("wheel" "netdev"  
> 31                                         "audio" "video")) 
> 32                 (home-directory "/home/bob"))    ;<--- notice “bob”!
>
> … yet /etc/passwd would refer to /home/fps for user “fps” (this is on a
> fresh GuixSD 0.15.0 install.)

Fixed in b297934437932de730432629b361fcb422accbb7.

Ludo'.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33422: /etc/passwd on GuixSD can end up containing default home directories
  2018-11-18 22:05 bug#33422: /etc/passwd on GuixSD can end up containing default home directories Ludovic Courtès
  2018-11-18 22:43 ` Ludovic Courtès
@ 2018-11-18 22:44 ` Leo Famulari
  2018-11-19 16:19   ` Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2018-11-18 22:44 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 33422

[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]

On Sun, Nov 18, 2018 at 11:05:26PM +0100, Ludovic Courtès wrote:
> On IRC, fps reported this issue: their user account was declared like
> this:
> 
> 26   (users (cons (user-account                              
> 27                 (name "fps")                              
> 28                 (comment "fps")                           
> 29                 (group "users")                           
> 30                 (supplementary-groups '("wheel" "netdev"  
> 31                                         "audio" "video")) 
> 32                 (home-directory "/home/bob"))    ;<--- notice “bob”!
> 
> … yet /etc/passwd would refer to /home/fps for user “fps” (this is on a
> fresh GuixSD 0.15.0 install.)
> 
> This in turn would prevent logging in as “fps” because /home/fps didn’t
> exist (meaning the ‘user-homes’ Shepherd service created /home/bob, not
> /home/fps.)

It slightly obscures a part of config.scm that is otherwise
straightforward, but I do this:

(home-directory (string-append "/home/" name))

... which would have avoided the issue. Maybe the value of
home-directory should be implicit when unspecified.

But, that is missing the point, which I think is that home directories
are not being handled in a consistent and unified way.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33422: /etc/passwd on GuixSD can end up containing default home directories
  2018-11-18 22:44 ` Leo Famulari
@ 2018-11-19 16:19   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-11-19 16:19 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 33422

Leo Famulari <leo@famulari.name> skribis:

> On Sun, Nov 18, 2018 at 11:05:26PM +0100, Ludovic Courtès wrote:
>> On IRC, fps reported this issue: their user account was declared like
>> this:
>> 
>> 26   (users (cons (user-account                              
>> 27                 (name "fps")                              
>> 28                 (comment "fps")                           
>> 29                 (group "users")                           
>> 30                 (supplementary-groups '("wheel" "netdev"  
>> 31                                         "audio" "video")) 
>> 32                 (home-directory "/home/bob"))    ;<--- notice “bob”!
>> 
>> … yet /etc/passwd would refer to /home/fps for user “fps” (this is on a
>> fresh GuixSD 0.15.0 install.)
>> 
>> This in turn would prevent logging in as “fps” because /home/fps didn’t
>> exist (meaning the ‘user-homes’ Shepherd service created /home/bob, not
>> /home/fps.)
>
> It slightly obscures a part of config.scm that is otherwise
> straightforward, but I do this:
>
> (home-directory (string-append "/home/" name))
>
> ... which would have avoided the issue. Maybe the value of
> home-directory should be implicit when unspecified.
>
> But, that is missing the point, which I think is that home directories
> are not being handled in a consistent and unified way.

Exactly, that home directory was a typo, but the point of this bug is
that non-default home directories were not correctly handled.

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-19 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-18 22:05 bug#33422: /etc/passwd on GuixSD can end up containing default home directories Ludovic Courtès
2018-11-18 22:43 ` Ludovic Courtès
2018-11-18 22:44 ` Leo Famulari
2018-11-19 16:19   ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.