Not able to create user on Ubuntu 14.04 (32 bit)When I create a new user, how do I automatically create a...

Boss asked me to sign a resignation paper without a date on it along with my new contract

Is `Object` a function in javascript?

"Starve to death" Vs. "Starve to the point of death"

How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?

Midterm in Mathematics Courses

Why do all the books in Game of Thrones library have their covers facing the back of the shelf?

Are the positive and negative planes inner or outer planes in the Great Wheel cosmology model?

Taking headphones when quitting job

I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."

Subsurf on a crown. How can I smooth some edges and keep others sharp?

Could a warlock use the One with Shadows warlock invocation to turn invisible, and then move while staying invisible?

When Are Enum Values Defined?

How do you get out of your own psychology to write characters?

Will rerolling initiative each round stop meta-gaming about initiative?

Translation needed for 130 years old church document

Broad Strokes - missing letter riddle

How does Leonard in "Memento" remember reading and writing?

Need help with a circuit diagram where the motor does not seem to have any connection to ground. Error with diagram? Or am i missing something?

Is there a file that always exists and a 'normal' user can't lstat it?

What's the oldest plausible frozen specimen for a Jurassic Park style story-line?

Categorical Unification of Jordan Holder Theorems

A fantasy book with seven white haired women on the cover

Renting a 2CV in France

Is there a way to not have to poll the UART of an AVR?



Not able to create user on Ubuntu 14.04 (32 bit)


When I create a new user, how do I automatically create a .virtualenvs directory in their home directory?Directory error when trying to create a new userHow to add flags and/or arguments to a command in the 'sudoers' fileDiff between 2 ways changing useradd defaultsCreate another root account with ubuntuHow do you modify group membership in Ubuntu Corevsftpd use users with /usr/sbin/nologinCannot add a user account with numerical username - useradd: group '11' does not existUser accounts on Ubuntu Server 14.04User Concept of Ubuntu













2















I'm sorry this post is so long, but I wanted to make sure that all the stuff that might be relevant was readily available.



I've been trying to create a new user account on my laptop, and, even though I tried everything I found online, I'm still not able to do it. I would like to remark that I was not using uppercase letters (which seems to be the reason why some other users could not create a new account on the questions I checked).



First of all, I tried to create an account in GUI mode. After entering the new username on the account creation dialog I get this message:



running '/usr/sbin/adduser' failed: Child process exited with code 1


After some googling I downloaded gnome-system-tools from the Ubuntu Software Centre. I enter all the data on the "Create New User" dialog and this is what I get:



The configuration could not be saved
Invalid data was found.


That's when I decide to open the terminal and see what was going on. I enter the command sudo adduser newuser I get this:



adduser: The group `newuser' already exists.


so I delete the group using the command sudo delgroup newuser, and use the previous command again. After doing so, I get this:



Adding new group 'newuser' (1001) ...
Adding new user 'newuser' (1001) with group 'newuser' ...
useradd: existing lock file /etc/subgid.lock without a PID
useradd: cannot lock /etc/subgid; try again later.
adduser: '/usr/sbin/useradd -d /home/newuser -g newuser -s /bin/bash -u 1001 newuser' returned error code 18. Exiting.


Again, the newuser group is created, but not the user. However, when using the useradd command instead of adduser, I just get the two useradd lines above and no group is created. In neither case I'm able to create a new user. I also tried all these commands opening the terminal as root and it was useless. What should I do now?



Edit: I rebooted the machine twice, and repeated the process using the terminal as root. It did not work.










share|improve this question
















bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    Have you tried rebooting your machine?

    – s3lph
    Dec 30 '14 at 23:22











  • @the_Seppi Oh, yes. Twice.

    – Tipsy Triceratops
    Dec 30 '14 at 23:25











  • Try removing the file /etc/subgid.lock. It seems like some process using this lock crashed or didn't work correctly (e.g. a faulty package installation/removal script)

    – s3lph
    Dec 30 '14 at 23:28











  • @the_Seppi Thank you! It worked :) (I had to remove it using the terminal as root, though).

    – Tipsy Triceratops
    Dec 30 '14 at 23:34











  • It might also be worthwhile running sudo pwck -q to see if the files have been left in an inconsistent state

    – steeldriver
    Dec 30 '14 at 23:36
















2















I'm sorry this post is so long, but I wanted to make sure that all the stuff that might be relevant was readily available.



I've been trying to create a new user account on my laptop, and, even though I tried everything I found online, I'm still not able to do it. I would like to remark that I was not using uppercase letters (which seems to be the reason why some other users could not create a new account on the questions I checked).



First of all, I tried to create an account in GUI mode. After entering the new username on the account creation dialog I get this message:



running '/usr/sbin/adduser' failed: Child process exited with code 1


After some googling I downloaded gnome-system-tools from the Ubuntu Software Centre. I enter all the data on the "Create New User" dialog and this is what I get:



The configuration could not be saved
Invalid data was found.


That's when I decide to open the terminal and see what was going on. I enter the command sudo adduser newuser I get this:



adduser: The group `newuser' already exists.


so I delete the group using the command sudo delgroup newuser, and use the previous command again. After doing so, I get this:



Adding new group 'newuser' (1001) ...
Adding new user 'newuser' (1001) with group 'newuser' ...
useradd: existing lock file /etc/subgid.lock without a PID
useradd: cannot lock /etc/subgid; try again later.
adduser: '/usr/sbin/useradd -d /home/newuser -g newuser -s /bin/bash -u 1001 newuser' returned error code 18. Exiting.


Again, the newuser group is created, but not the user. However, when using the useradd command instead of adduser, I just get the two useradd lines above and no group is created. In neither case I'm able to create a new user. I also tried all these commands opening the terminal as root and it was useless. What should I do now?



Edit: I rebooted the machine twice, and repeated the process using the terminal as root. It did not work.










share|improve this question
















bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    Have you tried rebooting your machine?

    – s3lph
    Dec 30 '14 at 23:22











  • @the_Seppi Oh, yes. Twice.

    – Tipsy Triceratops
    Dec 30 '14 at 23:25











  • Try removing the file /etc/subgid.lock. It seems like some process using this lock crashed or didn't work correctly (e.g. a faulty package installation/removal script)

    – s3lph
    Dec 30 '14 at 23:28











  • @the_Seppi Thank you! It worked :) (I had to remove it using the terminal as root, though).

    – Tipsy Triceratops
    Dec 30 '14 at 23:34











  • It might also be worthwhile running sudo pwck -q to see if the files have been left in an inconsistent state

    – steeldriver
    Dec 30 '14 at 23:36














2












2








2








I'm sorry this post is so long, but I wanted to make sure that all the stuff that might be relevant was readily available.



I've been trying to create a new user account on my laptop, and, even though I tried everything I found online, I'm still not able to do it. I would like to remark that I was not using uppercase letters (which seems to be the reason why some other users could not create a new account on the questions I checked).



First of all, I tried to create an account in GUI mode. After entering the new username on the account creation dialog I get this message:



running '/usr/sbin/adduser' failed: Child process exited with code 1


After some googling I downloaded gnome-system-tools from the Ubuntu Software Centre. I enter all the data on the "Create New User" dialog and this is what I get:



The configuration could not be saved
Invalid data was found.


That's when I decide to open the terminal and see what was going on. I enter the command sudo adduser newuser I get this:



adduser: The group `newuser' already exists.


so I delete the group using the command sudo delgroup newuser, and use the previous command again. After doing so, I get this:



Adding new group 'newuser' (1001) ...
Adding new user 'newuser' (1001) with group 'newuser' ...
useradd: existing lock file /etc/subgid.lock without a PID
useradd: cannot lock /etc/subgid; try again later.
adduser: '/usr/sbin/useradd -d /home/newuser -g newuser -s /bin/bash -u 1001 newuser' returned error code 18. Exiting.


Again, the newuser group is created, but not the user. However, when using the useradd command instead of adduser, I just get the two useradd lines above and no group is created. In neither case I'm able to create a new user. I also tried all these commands opening the terminal as root and it was useless. What should I do now?



Edit: I rebooted the machine twice, and repeated the process using the terminal as root. It did not work.










share|improve this question
















I'm sorry this post is so long, but I wanted to make sure that all the stuff that might be relevant was readily available.



I've been trying to create a new user account on my laptop, and, even though I tried everything I found online, I'm still not able to do it. I would like to remark that I was not using uppercase letters (which seems to be the reason why some other users could not create a new account on the questions I checked).



First of all, I tried to create an account in GUI mode. After entering the new username on the account creation dialog I get this message:



running '/usr/sbin/adduser' failed: Child process exited with code 1


After some googling I downloaded gnome-system-tools from the Ubuntu Software Centre. I enter all the data on the "Create New User" dialog and this is what I get:



The configuration could not be saved
Invalid data was found.


That's when I decide to open the terminal and see what was going on. I enter the command sudo adduser newuser I get this:



adduser: The group `newuser' already exists.


so I delete the group using the command sudo delgroup newuser, and use the previous command again. After doing so, I get this:



Adding new group 'newuser' (1001) ...
Adding new user 'newuser' (1001) with group 'newuser' ...
useradd: existing lock file /etc/subgid.lock without a PID
useradd: cannot lock /etc/subgid; try again later.
adduser: '/usr/sbin/useradd -d /home/newuser -g newuser -s /bin/bash -u 1001 newuser' returned error code 18. Exiting.


Again, the newuser group is created, but not the user. However, when using the useradd command instead of adduser, I just get the two useradd lines above and no group is created. In neither case I'm able to create a new user. I also tried all these commands opening the terminal as root and it was useless. What should I do now?



Edit: I rebooted the machine twice, and repeated the process using the terminal as root. It did not work.







14.04 permissions users user-management adduser






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 24 '15 at 1:06









muru

1




1










asked Dec 30 '14 at 23:08









Tipsy TriceratopsTipsy Triceratops

1114




1114





bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    Have you tried rebooting your machine?

    – s3lph
    Dec 30 '14 at 23:22











  • @the_Seppi Oh, yes. Twice.

    – Tipsy Triceratops
    Dec 30 '14 at 23:25











  • Try removing the file /etc/subgid.lock. It seems like some process using this lock crashed or didn't work correctly (e.g. a faulty package installation/removal script)

    – s3lph
    Dec 30 '14 at 23:28











  • @the_Seppi Thank you! It worked :) (I had to remove it using the terminal as root, though).

    – Tipsy Triceratops
    Dec 30 '14 at 23:34











  • It might also be worthwhile running sudo pwck -q to see if the files have been left in an inconsistent state

    – steeldriver
    Dec 30 '14 at 23:36














  • 1





    Have you tried rebooting your machine?

    – s3lph
    Dec 30 '14 at 23:22











  • @the_Seppi Oh, yes. Twice.

    – Tipsy Triceratops
    Dec 30 '14 at 23:25











  • Try removing the file /etc/subgid.lock. It seems like some process using this lock crashed or didn't work correctly (e.g. a faulty package installation/removal script)

    – s3lph
    Dec 30 '14 at 23:28











  • @the_Seppi Thank you! It worked :) (I had to remove it using the terminal as root, though).

    – Tipsy Triceratops
    Dec 30 '14 at 23:34











  • It might also be worthwhile running sudo pwck -q to see if the files have been left in an inconsistent state

    – steeldriver
    Dec 30 '14 at 23:36








1




1





Have you tried rebooting your machine?

– s3lph
Dec 30 '14 at 23:22





Have you tried rebooting your machine?

– s3lph
Dec 30 '14 at 23:22













@the_Seppi Oh, yes. Twice.

– Tipsy Triceratops
Dec 30 '14 at 23:25





@the_Seppi Oh, yes. Twice.

– Tipsy Triceratops
Dec 30 '14 at 23:25













Try removing the file /etc/subgid.lock. It seems like some process using this lock crashed or didn't work correctly (e.g. a faulty package installation/removal script)

– s3lph
Dec 30 '14 at 23:28





Try removing the file /etc/subgid.lock. It seems like some process using this lock crashed or didn't work correctly (e.g. a faulty package installation/removal script)

– s3lph
Dec 30 '14 at 23:28













@the_Seppi Thank you! It worked :) (I had to remove it using the terminal as root, though).

– Tipsy Triceratops
Dec 30 '14 at 23:34





@the_Seppi Thank you! It worked :) (I had to remove it using the terminal as root, though).

– Tipsy Triceratops
Dec 30 '14 at 23:34













It might also be worthwhile running sudo pwck -q to see if the files have been left in an inconsistent state

– steeldriver
Dec 30 '14 at 23:36





It might also be worthwhile running sudo pwck -q to see if the files have been left in an inconsistent state

– steeldriver
Dec 30 '14 at 23:36










1 Answer
1






active

oldest

votes


















0














Since there's a warning about some lockfile, I assume that some process who changed user or group information failed at some point and the file persisted.



First check, whether a process still claims this file: fuser /etc/subgid.lock. If nothing is returned, you can safely remove this file sudo rm /etc/subgid.lock.



Then it should work again.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f567208%2fnot-able-to-create-user-on-ubuntu-14-04-32-bit%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Since there's a warning about some lockfile, I assume that some process who changed user or group information failed at some point and the file persisted.



    First check, whether a process still claims this file: fuser /etc/subgid.lock. If nothing is returned, you can safely remove this file sudo rm /etc/subgid.lock.



    Then it should work again.






    share|improve this answer






























      0














      Since there's a warning about some lockfile, I assume that some process who changed user or group information failed at some point and the file persisted.



      First check, whether a process still claims this file: fuser /etc/subgid.lock. If nothing is returned, you can safely remove this file sudo rm /etc/subgid.lock.



      Then it should work again.






      share|improve this answer




























        0












        0








        0







        Since there's a warning about some lockfile, I assume that some process who changed user or group information failed at some point and the file persisted.



        First check, whether a process still claims this file: fuser /etc/subgid.lock. If nothing is returned, you can safely remove this file sudo rm /etc/subgid.lock.



        Then it should work again.






        share|improve this answer















        Since there's a warning about some lockfile, I assume that some process who changed user or group information failed at some point and the file persisted.



        First check, whether a process still claims this file: fuser /etc/subgid.lock. If nothing is returned, you can safely remove this file sudo rm /etc/subgid.lock.



        Then it should work again.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 24 '15 at 1:06









        muru

        1




        1










        answered Dec 31 '14 at 12:11









        s3lphs3lph

        10.5k94572




        10.5k94572






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f567208%2fnot-able-to-create-user-on-ubuntu-14-04-32-bit%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

            Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

            Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...