Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2007
    Posts
    62

    Freebsd - Adding user to sudoers

    Need some help how to add user to sudoers on Freebsd

    BCoz the command very different from other OS.

    If possible, provide me the details steps.

  2. #2
    Join Date
    May 2003
    Location
    Baltimore
    Posts
    181
    I found this with google:
    http://linux-bsd-sharing.blogspot.co...n-freebsd.html

    that might help ya

  3. #3
    I'm assuming sudo to root is what u want. The user needs to be part of the wheel group.

  4. #4
    search in this site

    linux-bsd-sharing.blogspot.com

  5. #5
    Just go to www.freebsd.org the manual is very detailed

  6. #6
    Join Date
    Nov 2001
    Location
    Vancouver
    Posts
    2,422
    Quick hint: Use visudo
    And: sudoers doesn't live in /etc as in many Linux; it is in /usr/local/etc

    Other than that sudo on Linux and FreeBSD are essentially the same from a config file perspective.

    Quote Originally Posted by SSSlippy
    Just go to www.freebsd.org the manual is very detailed
    Yes indeed - the FreeBSD "Handbook" should always be a first stop for FreeBSD users and administrators.

    http://www.freebsd.org/doc/en_US.ISO...ooks/handbook/

    However sudo isn't part of the FreeBSD operating system. It is an add on package, and thus it's documentation is to be found elsewhere.

    http://www.courtesan.com/sudo/man/sudo.html
    http://www.courtesan.com/sudo/man/sudoers.html

    On the OP's system, run:

    pkg_info | grep sudo

    With the version returned from that:

    pkg_info -do sudo-1.6.9.20

    ... and that will tell you more about the package; where in the ports tree it lives (security/sudo) and often a website you can visit.

    I suggest also installing from ports pkg_search:

    /usr/ports/ports-mgmt/pkg_search

    Which will allow for searches like:

    Code:
    $ pkg_search -r sudo
    fxsudoku-0.5.1_12   	/usr/ports/games/fxsudoku
    gnomesudoku-0.6.0_1 	/usr/ports/games/gnomesudoku
    gnustep-sudoku-0.6_1	/usr/ports/games/gnustep-sudoku
    ksudoku-0.4_1       	/usr/ports/games/ksudoku 
    sudoku-1.0.1_1      	/usr/ports/games/sudoku  
    sudoku_solver-1.11  	/usr/ports/games/sudoku_solver
    sudo-1.6.9.20       	/usr/ports/security/sudo 
    sudoscript-2.1.2    	/usr/ports/security/sudoscript
    sudosh-1.8.2_5      	/usr/ports/security/sudosh
    sudosh2-1.0.2       	/usr/ports/security/sudosh2
    Last edited by mwatkins; 04-08-2009 at 11:13 AM.
    “Even those who arrange and design shrubberies are under
    considerable economic stress at this period in history.”

  7. #7
    Try to use visudo

  8. #8
    Join Date
    Nov 2001
    Location
    Vancouver
    Posts
    2,422
    Quote Originally Posted by Deem3nŽ View Post
    Try to use visudo
    Doesn't anyone read these days? Look above.
    “Even those who arrange and design shrubberies are under
    considerable economic stress at this period in history.”

  9. #9
    thanks for the link

Posting Permissions

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