[Nix-dev] groupmod failing in nixos

2012-04-02 Thread Lluís Batlle i Rossell
Hello,

our activation script runs 'groupmod --gid num x' for the groups not maching the
gid expected by nixos. In my system, this command fails.

# grep dovecot2 /etc/group
dovecot2:x:45:

# LANG=C groupmod --gid 46 dovecot2
groupmod: Cannot determine your user name.

(LANG=C is to have the message in English).

Any idea of what fails?

Regards,
Lluís.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] groupmod failing in nixos

2012-04-02 Thread Eelco Dolstra
Hi,

On 02/04/12 23:36, Lluís Batlle i Rossell wrote:

 our activation script runs 'groupmod --gid num x' for the groups not maching 
 the
 gid expected by nixos. In my system, this command fails.
 
 # grep dovecot2 /etc/group
 dovecot2:x:45:

The numerical gid of dovecot2 must be 46 since r33346.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] groupmod failing in nixos

2012-04-02 Thread Lluís Batlle i Rossell
On Mon, Apr 02, 2012 at 11:41:32PM +0200, Eelco Dolstra wrote:
 Hi,
 
 On 02/04/12 23:36, Lluís Batlle i Rossell wrote:
 
  our activation script runs 'groupmod --gid num x' for the groups not 
  maching the
  gid expected by nixos. In my system, this command fails.
  
  # grep dovecot2 /etc/group
  dovecot2:x:45:
 
 The numerical gid of dovecot2 must be 46 since r33346.

I understand. That's why the activation script runs groupmod. But groupmod fails
on my system to change it to 46. :)

Shouldn't it work and change it to 46?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev