hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Freebsd - Adding user to sudoers
Reply

Forum Jump

Freebsd - Adding user to sudoers

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-08-2009, 09:13 AM
afree2 afree2 is offline
Junior 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.



Sponsored Links
  #2  
Old 04-08-2009, 10:30 AM
makaze makaze is offline
Junior Guru
 
Join Date: May 2003
Location: Baltimore
Posts: 177
I found this with google:
http://linux-bsd-sharing.blogspot.co...n-freebsd.html

that might help ya

  #3  
Old 04-08-2009, 10:33 AM
SSSlippy SSSlippy is offline
Newbie
 
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.

Sponsored Links
  #4  
Old 04-08-2009, 10:35 AM
mani20 mani20 is offline
New Member
 
Join Date: Apr 2009
Posts: 3
search in this site

linux-bsd-sharing.blogspot.com

  #5  
Old 04-08-2009, 10:41 AM
SSSlippy SSSlippy is offline
Newbie
 
Join Date: Dec 2007
Posts: 25
Just go to www.freebsd.org the manual is very detailed

  #6  
Old 04-08-2009, 11:01 AM
mwatkins mwatkins is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: Vancouver
Posts: 2,416
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

__________________
“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”


Last edited by mwatkins; 04-08-2009 at 11:13 AM.
  #7  
Old 04-08-2009, 03:01 PM
Deem3nŽ Deem3nŽ is offline
Junior Guru Wannabe
 
Join Date: Mar 2009
Posts: 75
Try to use visudo

  #8  
Old 04-08-2009, 03:21 PM
mwatkins mwatkins is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: Vancouver
Posts: 2,416
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  
Old 04-08-2009, 06:16 PM
mani20 mani20 is offline
New Member
 
Join Date: Apr 2009
Posts: 3
thanks for the link

Reply

Related posts from TheWhir.com
Title Type Date Posted
WHD.global 2013: ARPU Wars with BaseKit VP of User Experience and Community Web Hosting News 2013-03-21 07:59:47
Host Virtual Expands Cloud Platform with New Location in Seattle Web Hosting News 2013-02-21 10:01:56
Web Hosting Provider Host Virtual Expands Indian Cloud Web Hosting News 2012-12-31 12:13:26
Open-Xchange Releases Community Version of OX App Suite Web Hosting News 2012-12-18 18:27:11
Parallels Integrates CertiVox SkyPin Multi-Factor Authentication Across Plesk, Automation Web Hosting News 2012-09-24 17:00:37


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?