View Full Version : [ubuntu] Cant add new user!
samer19
September 16th, 2010, 03:33 PM
Hello,
When I go to user settings and try to add a new user, I get this error message:
"This configuration could not be saved" You are not allowed to modify..
Even though i'm logged in as the admin. I'm running Ubuntu, the latest version.
As of now, my account is labeled as "custom". I try to make it admin, yet it reverts back to custom.
linuxonbute
September 16th, 2010, 03:49 PM
Hello,
When I go to user settings and try to add a new user, I get this error message:
"This configuration could not be saved" You are not allowed to modify..
Even though i'm logged in as the admin. I'm running Ubuntu, the latest version.
As of now, my account is labeled as "custom". I try to make it admin, yet it reverts back to custom.
When you say you are logged in as the admin do you mean a user you created?
The first user you create at install time should be a member of the sudoers group by default.
This user should be able to do what you want.
samer19
September 16th, 2010, 04:04 PM
I'm logged as in the user created during the installation process.
CharlesA
September 16th, 2010, 04:05 PM
You should be able to create a user. You may have to "unlock" it first tho.
samer19
September 16th, 2010, 04:16 PM
how can i unlock it?
SlugSlug
September 16th, 2010, 04:20 PM
sudo adduser 'username'
CharlesA
September 16th, 2010, 04:23 PM
Hrm, I just tried it and it wouldn't do anything.
How are you connected?
You could try adding the user thru the useradd
samer19
September 16th, 2010, 04:26 PM
sudo adduser 'username'
boss@boss-laptop:~$ sudo adduser feline
Adding user `feline' ...
Adding new group `feline' (1002) ...
groupadd: cannot lock /etc/group; try again later.
adduser: `/usr/sbin/groupadd -g 1002 feline' returned error code 10. Exiting.
boss@boss-laptop:~$
SlugSlug
September 16th, 2010, 04:43 PM
boss@boss-laptop:~$ sudo adduser feline
Adding user `feline' ...
Adding new group `feline' (1002) ...
groupadd: cannot lock /etc/group; try again later.
adduser: `/usr/sbin/groupadd -g 1002 feline' returned error code 10. Exiting.
boss@boss-laptop:~$
try close your add user program and try again -- if not reboot and try again -- if not you may need to remove two files from /ect..
/etc/group.lock and /etc/gshadow.lock.
samer19
September 16th, 2010, 04:56 PM
try close your add user program and try again -- if not reboot and try again -- if not you may need to remove two files from /ect..
/etc/group.lock and /etc/gshadow.lock.
boss@boss-laptop:~$ rm /etc/group.lock
rm: remove write-protected regular empty file `/etc/group.lock'? y
rm: cannot remove `/etc/group.lock': Permission denied
boss@boss-laptop:~$
WorMzy
September 16th, 2010, 04:59 PM
You'll need to use "sudo rm" to remove those files, they're owned by root, not you.
SlugSlug
September 16th, 2010, 05:07 PM
You'll need to use "sudo rm" to remove those files, they're owned by root, not you.
^^ what he said
samer19
September 16th, 2010, 05:11 PM
Ok It worked, thanks guys.
The question is, what were those files and where they important? (the shadow lock files)
SlugSlug
September 16th, 2010, 05:13 PM
Linux locks files to stop two things editing the same file (for instance you may get this error if you open synaptc & try use apt-get)
your safe to remove them if you know why they are locked & why you need to remove them ;)
soop
January 4th, 2011, 03:26 PM
FYI ... I just noticed this same error can occur if trying to create a user with a "." in the id ... eg B.Smith
If you drop to the terminal and do:
"adduser B.Smith" --force-badname
It will allow you to do it ...
Ubuntu version 10.10
I don't know why the user creation screen would say you can use these characters and then disallow it with an ambiguous error message in the gui
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.