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
|
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