Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    User `2001' does not exist? Though 2001 does exist.

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    5 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mxx
      last edited by

      Hi,

      I have the following log entries:

      
      Jul 13 19:10:20 	php: : The command '/usr/sbin/pw groupadd unpriv -g 2001 -M 2001,2002,2003,2004,2005,2006,2007,2008 2>&1' returned exit code '67', the output was 'pw: user `2001' does not exist'
      Jul 13 19:10:20 	php: : The command '/usr/sbin/pw groupmod all -g 1998 -M 0,2001,2002,2003,2004,2005,2006,2007,2008 2>&1' returned exit code '67', the output was 'pw: user `2001' does not exist'
      
      
      
      		 <user><scope>user</scope>
      			<password>$1$paL0KN0h$ka.ZVOFKU7c1sx.XkmIgb/</password>
      			<md5-hash>da2cbcb6a59c7d7560c56b4d3b1260b8</md5-hash>
      			<nt-hash>aaaa42051009831313a8b0700ae3d313</nt-hash>
      			<name>Test</name>
      			 <fullname>Testuser</fullname> 
      			 <expires><authorizedkeys><ipsecpsk><cert><name>TEST</name>
      				<caref>4c18e664e11c7</caref>
      				 <crt><crt_data></crt_data></crt> 
      				 <prv><privatekey_data></privatekey_data></prv></cert> 
      			<uid>2001</uid></ipsecpsk></authorizedkeys></expires></user> 
      
      

      Does this indicate a problem with uid 2001? Something to worry about or just wait for a future snapshot?
      Can/should I do anything to manually fix this?

      Thnx very much for any help!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It may exist in the GUI but not in /etc/passwd, look in that file to see if it is there

        If you edit/save that user in the GUI, does the error go away?

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • M
          mxx
          last edited by

          Thanks for your reply,

          none of the users I have created are in passwd.. openvpn client export does work though and they can connect.

          When I edit any user and save I get the following output:

          Warning: chown(): Unable to find uid for Test in /etc/inc/auth.inc on line 349 Warning: chgrp(): Unable to find gid for nobody in /etc/inc/auth.inc on line 350 Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/auth.inc:349) in /etc/inc/functions.inc on line 69 
          

          nobody is indeed missing from /etc/group.
          This might have happened because (I know I know.. stupid) once I defined a group nobody which gave errors so I removed it.
          What's the best way to add nobody again? groupadd doesn't work on freebsd? shall I edit the file manually? Which gid should it have?

          Thanks a lot for your help and sorry for my retardedness ย :-[

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            You can hand-edit /etc/group

            nobody:*:65534:
            

            That or use:

            pw groupadd nobody -g 65534
            

            Your users should be in /etc/passwd. Not sure why they are missing from there.

            I did find a way that the error that started the thread could happen. I fixed the code and it might be in the next snap (or just gitsync if you're on a snap from yesterday or today)

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • M
              mxx
              last edited by

              Thnx!
              I added nobody, re-saved all users and all show up in passwd now.

              Thanks many times ;)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.