I try to add a new user to see if the error goes away but I can't even add a new user


Results 1 to 8 of 8

Thread: I try to add a new user to see if the error goes away but I can't even add a new user

  1. #1
    Join Date
    Jul 2007
    Posts
    11

    I try to add a new user to see if the error goes away but I can't even add a new user

    I try to add a new user to see if the error goes away but I can't even add a new user..

    id: cannot find name for group ID 500
    [.@localhost home]$ su
    Password:
    [root@localhost home]# adduser abc
    bash: adduser: command not found
    [root@localhost home]# adduser
    bash: adduser: command not found
    [root@localhost home]# addusr
    bash: addusr: command not found
    [root@localhost home]# adduser
    bash: adduser: command not found
    [root@localhost home]# adduser
    bash: adduser: command not found
    [root@localhost home]# man adduser
    Formatting page, please wait...
    [root@localhost home]# useradd
    bash: useradd: command not found
    [root@localhost home]# man adduser
    [root@localhost home]# useradd -D
    bash: useradd: command not found
    [root@localhost home]#

    Oh and when I open the home files I get a
    "Cannot find parent item file:///home in the tree. Internal error."

  2. #2
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,978
    Code:
    root@saikee-desktop:/abit/saikee/Desktop# useradd abc
    root@saikee-desktop:/abit/saikee/Desktop# cat /etc/passwd|grep abc
    abc:x:2765:2765::/home/abc:/bin/sh
    root@saikee-desktop:/abit/saikee/Desktop#
    You see it does work.

    So what distro are you using?
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

  3. #3
    Join Date
    Jul 2007
    Posts
    11
    Fedora 7

    It works for that system, not this one. Anyone know how to fix it? That error

    id: cannot find name for group ID 500
    &
    when I open the home files I get a
    "Cannot find parent item file:///home in the tree. Internal error."

    I think that might be causing it.

  4. #4
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,978
    OK I hooped into a FC7
    Code:
    [root@localhost /]# ls /home
    [root@localhost /]# useradd -u 500 JustLinux
    [root@localhost /]# ls /home
    JustLinux
    [root@localhost /]# cat /etc/passwd|grep JustLinux
    JustLinux:x:500:500::/home/JustLinux:/bin/bash
    [root@localhost /]#
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

  5. #5
    Join Date
    Oct 2002
    Location
    AZ, USA
    Posts
    110
    Two options.
    1) use "su -" then try useradd
    2) try "/sbin/useradd "
    su does not change to use roots path unledd you use the '-' option.

    the missing filesystem structure does not seem correct as the parrent to "/home" is "/"
    >cd /
    >ls -l
    >cat /etc/fstab

  6. #6
    Join Date
    Dec 1999
    Location
    Fargo, ND
    Posts
    1,816
    Quote Originally Posted by leinunnew
    I try to add a new user to see if the error goes away but I can't even add a new user..

    id: cannot find name for group ID 500
    [.@localhost home]$ su
    Password:
    First off, the meaning of this error is telling you that your /etc/group file has some either invalid or corrupted info in it.
    It's saying, "Hey, I can't find a reference in /etc/group for id number 500!"

    It would seem that something bad may have happened to your system.
    What was the last thing that was done on the system before this happened? (Before you say nothing, well, my response would have to be that it was caused by stray cosmic radiation that was captured by the gravitational spin of the hard drive and caused excessive fragmentation of the mca bus. (ala bofh) ) So what happened?

    Knute
    Knute

    You live, you die, enjoy the interval!

  7. #7
    Join Date
    Jul 2007
    Posts
    11
    The last thing I did was reinstall the os, meaning that it should overwrites any problems.

    id: cannot find name for group ID 500
    [.@localhost home]$ cd /
    [.@localhost /]$ ls -l
    total 142
    drwxr-xr-x 2 root root 4096 2007-07-17 10:47 bin
    drwxr-xr-x 4 root root 1024 2007-07-16 21:31 boot
    drwxr-xr-x 13 root root 3980 2007-07-18 15:54 dev
    drwxr-xr-x 95 root root 12288 2007-07-18 15:12 etc
    drwxr-xr-x 23 . 500 4096 2007-07-18 15:12 home
    drwxr-xr-x 14 root root 4096 2007-07-17 10:37 lib
    drwx------ 2 root root 16384 2007-05-25 15:56 lost+found
    drwxr-xr-x 2 root root 4096 2007-07-18 15:12 media
    drwxr-xr-x 2 root root 0 2007-07-18 15:11 misc
    drwxr-xr-x 2 root root 4096 2007-07-16 23:04 mnt
    drwxr-xr-x 2 root root 0 2007-07-18 15:11 net
    drwxr-xr-x 3 root root 4096 2007-07-17 14:47 opt
    dr-xr-xr-x 119 root root 0 2007-07-18 15:11 proc
    drwxr-x--- 21 root root 4096 2007-07-18 12:53 root
    drwxr-xr-x 2 root root 12288 2007-07-17 10:47 sbin
    drwxr-xr-x 4 root root 0 2007-07-18 15:11 selinux
    drwxr-xr-x 2 root root 4096 2007-04-17 08:46 srv
    drwxr-xr-x 11 root root 0 2007-07-18 15:11 sys
    drwxrwxrwt 18 root root 4096 2007-07-18 16:17 tmp
    drwxr-xr-x 13 root root 4096 2007-05-25 16:10 usr
    drwxr-xr-x 18 root root 4096 2007-05-25 16:12 var
    [.@localhost /]$ cat /etc/fstab
    LABEL=/ / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    /dev/VolGroup00/LogVol01 swap swap defaults 0 0
    [.@localhost /]$

    In /etc/group,

    root:x:0:root
    bin:x:1:root,bin,daemon
    daemon:x:2:root,bin,daemon
    sys:x:3:root,bin,adm
    adm:x:4:root,adm,daemon
    tty:x:5:
    disk:x:6:root
    lp:x:7:daemon,lp
    mem:x:8:
    kmem:x:9:
    wheel:x:10:root
    mail:x:12:mail
    news:x:13:news
    uucp:x:14:uucp
    man:x:15:
    games:x:20:
    gopher:x:30:
    dip:x:40:
    ftp:x:50:
    lock:x:54:
    nobody:x:99:
    users:x:100:
    utmp:x:22:
    utempter:x:35:
    floppy:x:19:
    vcsa:x:69:
    rpc:x:32:
    ntp:x:38:
    nscd:x:28:
    mailnull:x:47:
    smmsp:x:51:
    jackuser:x:334:
    fuse:x:499:
    sshd:x:74:
    rpcuser:x:29:
    nfsnobody:x:65534:
    tcpdump:x:72:
    slocate:x:21:
    rpm:x:37:
    dbus:x:81:
    avahi:x:70:
    xfs:x:43:
    haldaemon:x:68:
    gnokii:x:498:
    abc:x:501:

    See anything that I can fix? . is my username; abc is just one I created but am going to delete.
    id: cannot find name for group ID 500
    &
    when I open the home files I get a
    "Cannot find parent item file:///home in the tree. Internal error."
    Last edited by leinunnew; 07-18-2007 at 04:41 PM.

  8. #8
    Join Date
    Dec 1999
    Location
    Fargo, ND
    Posts
    1,816
    It is the reinstall that is causing this issue for you.

    Also, the fix for this issue is actually quite simple.

    as root:
    Code:
    chown root:root /home
    Then try to adduser.
    Last edited by knute; 07-18-2007 at 05:36 PM. Reason: fix code tag
    Knute

    You live, you die, enjoy the interval!

Posting Permissions

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