Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Error while creating new user

  1. #1
    Join Date
    Jan 2014
    Location
    Perth
    Posts
    35

    Default Error while creating new user

    I want to create a new user so I can clean out old user home directory - I do this approximately every six months (find it's the best way to unwanted relics etc).
    The problem this time is I get an error, after the user is created, while trying to create the new home directory.
    ERROR: Cannot create home directory /home/username. Parent directory is not a Btrfs volume.
    I use ext4, not Btrfs.
    I use Opensuse 15.1(beta)
    If anyone can assist with this problem, it would be appreciated.

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,530

    Default Re: Error while creating new user

    How exactly are you doing this? Is /home on it's own partition? Is home mounted when you attempt this?

  3. #3
    Join Date
    Oct 2014
    Location
    Italy
    Posts
    1,658

    Default Re: Error while creating new user

    Everything normal here with full ext4 install, both creating a new user with existing home folder (offers to change owner) and creating a new home for another username.
    A better description of what you exactly did may help us understand what happened on your system.
    Main: Leap 15 Gnome on i7 4720HQ + Geforce GTX960M
    Test: Leap 42.3 (& others) on Core2Duo + GM965

  4. #4
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Error while creating new user

    I tested this process the normal method. I'm using 15.1 Beta vith ext4 also.

    Step: go to Yast ==> Security and Users ==> user and group management ==> Add a new user named Fred

    That worked fine for me, logged out of my John person and logged into my new Fred. I'm not sure what that means for you except that it's not failing for everyone.

    [you did use the correct method like this too?]
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  5. #5
    Join Date
    Sep 2012
    Posts
    4,921

    Default Re: Error while creating new user

    Quote Originally Posted by snow365 View Post
    ... I get an error ... while trying to create the new home directory.
    And how exactly are you trying to create new home directory? For that matter, how exactly are you trying to create new user? There are multiple ways to do it.

  6. #6
    Join Date
    Jun 2008
    Location
    Stoney Stanton - England
    Posts
    1,093

    Default Re: Error while creating new user

    I am slso using opensuse 15.1 with an ext4 partition. I tried setting up a new user with yast and this worked fine.

    It might be worth doing a system update (zypper dup) and and have another go, using yast, to set up a new user.

  7. #7
    Join Date
    Jan 2014
    Location
    Perth
    Posts
    35

    Default Re: Error while creating new user

    1) I tried with yast adduser.
    2) Logged as root and tried again.
    3) Did a soft install - only formatted system folders.
    4) Did a hard install - deleted partitions and rebuilt - this allowed me to create new user and home directory with user folders during the install. This did not allow me to create new user with yast. It did allow me to create from the command line with:
    useradd -g users -p pwd -d /home/user -m user
    This only has the bin folder(not a problem)
    I don't know how this has come about - never had the problem in near 14 years - and in truth it is easily avoided, but I would like to know why if possible.

  8. #8
    Join Date
    Jan 2014
    Location
    Perth
    Posts
    35

    Default Re: Error while creating new user

    It might be worth doing a system update (zypper dup) and and have another go, using yast, to set up a new user.
    The system update with zypper dup is one of my main initial setups after an install and/or normal update and I performed one prior to numbers one and two.

  9. #9

    Default Re: Error while creating new user

    Hi all,
    now 15.1 is released and the error is still there:
    Fresh install from ISO.
    Everything installed on a single partition with ext4.
    System seems to run fine, initial user account which was created during installation works.
    Then: Yast ==> Security and Users ==> user and group management ==> Add a new user.
    Failure. (Error message is in German - but translated is says that the parent directory is not a Btrfs file system).
    The message is "correct" - but I don't see why it should be a problem that / and /home are on one ext4 partition?!?

    The user is created (in /etc/passwd), but no user directory is created in /home.

    Workaround:
    Copy /etc/skel to /home/<username> and then change the user (chown -R <username>:users /home/<username>).
    Then the user can log in and work...

    Still - it is a bug (in yast?).
    Is anyone aware of a bug report?
    Is there a fix/solution - not just a workaround?

    BGS

  10. #10
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,009
    Blog Entries
    3

    Default Re: Error while creating new user

    Quote Originally Posted by bgs_forum View Post
    Everything installed on a single partition with ext4.
    I decided to test this.

    I did a clean install. Everything is in a single partition with "ext4" -- except that there is also an EFI partition for UEFI booting, and a swap partition.

    I pretty much took the defaults for everything. I chose the KDE desktop, and "ext4" for the file system (I used the "Guided setup" button in the partitioner for that). I set the local timezone. And I think everything else was default. Okay, I also had to setup the initial user account.

    I should maybe add that I did this all in a KVM virtual machine, not on real hardware. I used the iso for the install (configured as a CD/DVD drive for the virtual machine).

    Install went well. I then booted into the machine. I selected Yast from the menu, and went to "User and group management".

    I was able to setup a new user without any difficulty.

    I am aware of one major difference between what you did and what I did (apart from using a VM). I installed with English, whereas you probably used German. So it is possible that this is a bug related to the translation.

    My ability at German is too poor for me to try an install. So I guess I'll leave it at that. Your ability at English is somewhat better, if you want to experiment with an English install.

    Is anyone aware of a bug report?
    You could create one. I am not aware of an existing bug report on this. But then I'm only a user.
    openSUSE Leap 15.1; KDE Plasma 5;

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •