How to sudo in FreeBSD


Please shareShare on Facebook0Share on Google+3Tweet about this on Twitter6Share on LinkedIn0Share on Reddit0Digg thisShare on StumbleUpon0Share on VKBuffer this page

How to enable su  in FreeBSD?

This  is my  installed  FreeBSD 9.1

$ uname -aFreeBSD FreBSD-Unixmen 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 amd64$

try  to make  su  to  other  users

$ su - root
su: Sorry


Go to sudo ports directory 

# cd /usr/ports/security/sudo
 # make install clean

add  the  user  to   the  wheel group

vi /etc/groups

$ cat /etc/group
# $FreeBSD: release/9.1.0/etc/group 218046 2011-01-28 22:28:12Z pjd $

save  and  exit

Try now 

$ su -
root@FreBSD-Unixmen:/root #

That `s all.