Results 1 to 4 of 4

Thread: Add user in freebsd to secondary group not primary group

  1. #1
    Join Date
    Jul 2009
    Posts
    10

    Add user in freebsd to secondary group not primary group

    Hi everyone. I have a linux box with FreeBSD and i have some questions. How do i Add user in freebsd to secondary group not primary group? Please help me. I am a newbie when the operating system is linux... I hope i find correct help... Thanks in advance...

  2. #2
    Join Date
    Jan 2009
    Posts
    710

    Re: Add user in freebsd to secondary group not primary group

    To add a new user to the system's secondary group you must have a group defined. Say for example the user name will be 'fame' and must be in the secondary group 'second' then the command will be :

    Code:
    pw useradd fame -G second
    pw fame
    The second line of the command is used to change/set the password for the username 'fame'. Hope this helps...

  3. #3
    Join Date
    Jul 2009
    Posts
    10

    Re: Add user in freebsd to secondary group not primary group

    Aaw! I'm so sorry i did not detail what i want to do. I have three user account created, i want to add the existing username 'freebsd123' to a secondary group named 'gamer'. Can i do this? Or will i have to create a new user after deleting the exisiting user account? Please help.. Thanks in advance...

  4. #4
    Join Date
    Jan 2009
    Posts
    1,738

    Re: Add user in freebsd to secondary group not primary group

    Ok, that is possible and indeed very simple to do. Just open terminal and type the following command :

    Code:
    pw usermod frebsd123 -G gamer
    Also if you want to add an existing username to multiple groups you can do it by :

    Code:
    pw usermod username -G group1,group2
    Hope this is what you want...

Similar Threads

  1. Add domain user\group to local admin group problem
    By Landon in forum Active Directory
    Replies: 3
    Last Post: 16-10-2009, 09:30 PM
  2. VB. List the userID from group (Domain Admins set as Primary group)
    By epremyan karapet in forum Software Development
    Replies: 1
    Last Post: 12-10-2009, 07:26 PM
  3. Error 1609: User is not a valid user or group
    By !const in forum Operating Systems
    Replies: 3
    Last Post: 16-03-2009, 02:02 PM
  4. Replies: 3
    Last Post: 23-10-2008, 06:58 AM
  5. Replies: 2
    Last Post: 04-07-2008, 06:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,696,080,232.55160 seconds with 17 queries