Forum archive
Error when adding new user (EC2 AMI instance)
Hi,
I have successfully launched my EC2 instance and I am able to access it using ssh connection.
If I try to create a new user account I get the following error:
# sudo adduser test
Adding user `test' ...
Adding new group `test' (1001) ...
groupadd: cannot rewrite group file
adduser: `/usr/sbin/groupadd -g 1001 test' returned error code 10. Exiting.
If I check the permissions for /etc/group it gives me:
# ls -la /etc/group
lrwxrwxrwx 1 root root 14 Dec 15 12:59 /etc/group -> /vol/etc/group
I am using EBS volume that I have attached to my instance. I don't know if this is causing the problems somehow.
Any idea?
Regards,
Kimmo
I have the same issue. I installed postgres on the image on the mounted drive (/vol/PostgreSQL/8.4/) because I wanted Apache/Tomcat/Postgres on the same image (plus we are using Postgres 8.4 and you guys don't yet have an image for it.
When postgres installs it tries to create a user 'postgres' and fails...manually trying to create the user also fails. So I cannot start postgres. :(
Odd....
Thanks,
Andy