adduser --encrypt-home fails if umask is 077

Asked by Ronan Mooney

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:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

If you suspect a bug, create one

Revision history for this message
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 :)

Revision history for this message
Ronan Mooney (roomey) said :
#3

Thanks actionparsnip, that solved my question.