Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member tybor's Avatar
    Join Date
    Aug 2005
    Location
    Ottawa, Ontario, Canada
    Posts
    5

    Question safe_chown: Error Fetching the uid/gid

    Receiving the following when creating an account...


    Copying skel files from /root/cpanel3-skel/ to /usr/home/tstdomc/
    Added Entries to httpd.conf
    Bind reconfiguring on linux1 using rndc
    Added Named File
    safe_chown: Error Fetching the uid/gid
    Starting install, port: 80.

    Creating web http://www.tstdom.com.
    Chowning Content in service /.
    Cannot chown content: user tstdomc does not exist.
    Install completed.
    safe_chown: Error Fetching the uid/gidsafe_chown: Error Fetching the uid/gidSetting Password
    Frontpage passthough auth enabled!
    Restarting apache
    Ftp Password Files synced
    Vhost Passwords synced
    Notifcation => blah@blah.dom via EMAIL [level => 3]
    wwwacct creation finished

    Any ideas?? WHM 10.6.0 cPanel 10.8.0-R30

    This was working (as trial) before I purchased the key. I have run an update with --force

    I have not found anything in the forums that is recent and related to this.

  2. #2
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    What distro and version is the server?

    What is the error message in /usr/local/cpanel/logs/error_log?

  3. #3
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    From your errors it looks like /scripts/wwwacct was unable to add the new user to the system. The relevant code block is between line 806 and 811. This is what it looks like:
    Code:
    if ( -x "/usr/sbin/useradd" ) {
        system("/usr/sbin/groupadd","${user}");
        system("/usr/sbin/useradd","-d","${mnt}/${user}","-g","${user}","${user}");
    } else {
        system("/scripts/adduser","$user","$mnt","!!");
    }
    So first off, do /usr/sbin/groupadd and /usr/sbin/useradd exist on your system? If so, are they executable?

  4. #4
    Member tybor's Avatar
    Join Date
    Aug 2005
    Location
    Ottawa, Ontario, Canada
    Posts
    5

    Default

    FreeBSD 5.4-RELEASE i386

    Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
    1.1 session) at cpsrvd.pl line 1469.
    Content-type: text/html

    Error repeats several times.. (probably as many times as I've treid to create accounts)

    Thanks for any help.

  5. #5
    Member tybor's Avatar
    Join Date
    Aug 2005
    Location
    Ottawa, Ontario, Canada
    Posts
    5

    Default

    Quote Originally Posted by cpanelben
    So first off, do /usr/sbin/groupadd and /usr/sbin/useradd exist on your system? If so, are they executable?
    Hmmm... no, they are not to be found in /usr/sbin

    linux1# find / -name groupadd
    linux1# find / -name useradd
    linux1# find / -name adduser
    /usr/local/cpanel/bin/adduser
    /usr/sbin/adduser
    /scripts/adduser
    linux1# find / -name addgroup
    linux1#


    /usr/sbin/pw does exist, and is executable..

    From /etc/passwd
    tstdomc:*:1007:31:User &:/usr/home/tstdomc:/bin/csh

    From /etc/group
    guest:*:31:
    Last edited by tybor; 09-28-2005 at 09:12 AM. Reason: additional info

  6. #6
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Sorry, I assumed that you were not using FreeBSD. The script wwwacct will use pw to create the account, and on your system it looks like it failed to add the group. I would run some tests using pw and see if it functions correctly on its own.

  7. #7
    Member tybor's Avatar
    Join Date
    Aug 2005
    Location
    Ottawa, Ontario, Canada
    Posts
    5

    Default

    failed to add the group? It appears to be using the "guest" group in /etc/passwd

    Other thoughts?? Does the error from the log mean anything?

    Thanks..

  8. #8
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The group is supposed to be the same as the user name that is created:

    fbsd54# pw adduser mytestuser -i 600,32000 -b /home/mytestuser
    fbsd54# grep mytest /etc/passwd
    mytestuser:*:1009:1011:User &:/home/mytestuser/mytestuser:/bin/sh
    fbsd54# grep mytest /etc/group
    mytestuser:*:1011:

  9. #9
    Member tybor's Avatar
    Join Date
    Aug 2005
    Location
    Ottawa, Ontario, Canada
    Posts
    5

    Thumbs up

    linux1# pw adduser mytestuser -i 600,32000 -b /home/mytestuser
    linux1# grep mytest /etc/passwd
    mytestuser:*:1006:31:User &:/home/mytestuser/mytestuser:/bin/csh
    linux1# grep mytest /etc/group
    mail:*:6:tthost,mytestuser


    Hmmm... any idea where this is going wrong? Have I buggered up a conf file somewhere?

    -------------------------------------
    Just looked into pw.conf, and I had some funky settings in there. Minor changes to this file and all seems to be operational again.

    Thanks for your help in resolving this..
    Last edited by tybor; 09-28-2005 at 12:12 PM.

Similar Threads & Tags
Similar threads

  1. 500 error traced to SuExec uid/gid any ideas
    By j0hnb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-04-2008, 02:29 PM
  2. DNS - Error Fetching uid/gid, /scripts/cPScript/DNSLib.pm
    By cretu in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-30-2007, 10:05 AM
  3. Error Fetching uid/gidError:
    By mohit in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-17-2006, 02:31 AM
  4. safe_chown: Error Fetching the uid/gid
    By speckados in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 12-21-2004, 04:19 PM
  5. safe_chown: Error Fetching the uid/gid
    By nybble in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-03-2004, 03:43 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube