adduser --encrypt-home fails if umask is 077

Asked by Ronan Mooney on 2011-02-28

Hi,
When I run
adduser --encrypt-home

It does not work as expected. When you are asked to set the users password, it says:

passwd: permission denied

This happens if umask is set to 077 in /etc/profiles

Is this a bug? It seems like it is to me. I *think* adduser script is creating .ecryptfs for the first time as root, and trying to write to is as a user.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu adduser Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2011-02-28
Last query:
2011-02-28
Last reply:
2011-02-28

If you suspect a bug, create one

Ronan Mooney (roomey) said : #2

done-

I actually though the answer would be something like- you should not set umask in /etc/profiles but in XXXXX :)

Ronan Mooney (roomey) said : #3

Thanks actionparsnip, that solved my question.