Results 1 to 9 of 9
Thread: Freebsd - Adding user to sudoers
-
04-08-2009, 09:13 AM #1Junior Guru Wannabe
- 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.
-
04-08-2009, 10:30 AM #2Junior Guru
- 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
-
04-08-2009, 10:33 AM #3Newbie
- Join Date
- Dec 2007
- Posts
- 25
I'm assuming sudo to root is what u want. The user needs to be part of the wheel group.
-
04-08-2009, 10:35 AM #4Newbie
- Join Date
- Apr 2009
- Posts
- 7
search in this site
linux-bsd-sharing.blogspot.com
-
04-08-2009, 10:41 AM #5Newbie
- Join Date
- Dec 2007
- Posts
- 25
Just go to www.freebsd.org the manual is very detailed
-
04-08-2009, 11:01 AM #6Web Hosting Master
- 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.
Originally Posted by SSSlippy
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.”
-
04-08-2009, 03:01 PM #7Junior Guru Wannabe
- Join Date
- Mar 2009
- Posts
- 75
Try to use visudo
-
04-08-2009, 03:21 PM #8Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
-
04-08-2009, 06:16 PM #9Newbie
- Join Date
- Apr 2009
- Posts
- 7
thanks for the link