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












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

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局