Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

No gid for a user in mac

Hi All,


I am trying to make my apache running in new macbook pro, but when I tried to set my User and Group in http.conf file, i ran "id" command in terminal to get my uid and gid. There is no string associated with gid:


uid=627902327(<username>) gid=327612386 groups=327612386


and upon running "apachectl configtest" it throws error "bad group name". Can anyone point me to the right direction.

Thanks

MacBook Pro (Retina, 13-inch, Mid 2014), OS X Yosemite (10.10.4)

Posted on Aug 1, 2015 10:29 PM

Reply
4 replies

Aug 2, 2015 7:32 AM in response to simmi.aseem

Are you using LDAP or Microsoft Active Directory based logins?

I ask, because typically a Mac OS X user ID is 501 or the first account, 502 for the 2nd account, etc... and the default Group ID is 20 ('staff').


However, a uid of 627902327 and gid of 327612386 seem like something from a much larger collection of users, such as a large corporation.


What does 'ls -l' say is the owner and group for your files?

Aug 3, 2015 11:54 AM in response to simmi.aseem

Sounds like this system was part of a Microsoft Active Directory environment.


MAKE A FULL BACKUP so you can UNDO the following if you decide to do this.


You could add a new group

<OS X Yosemite: Set up users on your Mac>

About half way down the page is creating a group. In this step are are just choosing the group name, and assigning your user to the group.


User uploaded file


User uploaded file


That should change the newly created group so that it is using the group number all your files are using.


But if that doesn't work, of if there are side-effects, you should be ready to restart from a backup.

Aug 4, 2015 12:58 PM in response to simmi.aseem

What is your actual aim here?


Do you really need the group id to run Apache? Perhaps I am missing something, but when you run Apache you need to use sudo so that is can do a lot of privileged tasks (like open port 80). You will need to have an admin account on the Mac to do that.


Also have you tried restoring the original Apache config files? They are normally backed up in the 'original' directory of /etc/apache2/. Please make sure you are stating the file name correctly too - is it http.conf or httpd.conf?


Looking at the backslash it looks like the group id is based in Active Directory, you may need to speak to your network admin so they can setup a local admin account for you.


What does the command…

groups

…tell you?


I'm at a loss to understand why the group name is required for running Apache. I have never needed it to run the web server.

No gid for a user in mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.