Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I created one group with groupadd mysql5 Now when i add user for this perticular group i.e. (useradd -g mysql5 -d /var/mysql5/ mysql5) -- it returns an error : ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    82

    Thumbs down Unknown Group in linux


    Hi,

    I created one group with
    groupadd mysql5

    Now when i add user for this perticular group
    i.e.
    (useradd -g mysql5 -d /var/mysql5/ mysql5)

    -- it returns an error : Unknown group mysql5.

    Kindly acknowledge.

  2. #2
    Just Joined! s13884's Avatar
    Join Date
    Apr 2007
    Posts
    28

    Thumbs up

    helllo dude,

    u create the group but u need to give the "gid" for that particular group.


    u can do this by GUI simply
    login as "root"
    run command /usr/sbin/system-config-users.
    this command will open the window for the user and group configuration.
    then check your "gid" for group u created.
    if there is no "gid" might be some problem for identify the gruop.

    then give the id to your group.
    then add user in to this group.
    it's nice tool to handle the user/group.

    cheers
    linux is rocking

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    82

    Unhappy

    Hi,

    Thanks for reply.

    But In my case Group id is created automatically.
    when i see the shadow file Group id is already there.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    use that gid (say 512) to add the user
    useradd -g 512 <user> -d <home-dir>

    Note: 512 is an example use the gid that has been assigned to mysql.

    Rock!!!
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  6. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    82

    Post Unknown group in linux

    Hi ,

    Thanks !!! as i have given the command i.e useradd -g <group> <user> -d <home-dir> and it works .so my intial works is complete...for installation of the mysql but now if suppose i want install any group ie groupadd abc and then suppose i want to del the groupdel abc then it gives the error like unknow group abc ...that seems to wrong....so for that what could be the reason...i have tried grpconv and grpunconv..and grpck command but its not working ...so what could be the reason....

    Thanks...

    John

  7. #6
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    You cannot delete a group if it is some user's primary group. You have to delete the group first in order to do this. If you don't want to delete the user you must assign him another primary group (using usermod command) and then you might delete the group.

    Hope this clarifies the issue.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

Posting Permissions

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