DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd October 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Default Installing sudo

At work i often need to change IP of my laptop which is running BSD. So I thought it would be a great idea to install sudo and give users permission to certain commands.

While installing sudo gives me 3 options
1. With LDAP support
2. With all insults
3. Set home env to target users in shell mode

Can someone tell me which options should I select. I know sudo is going to work without all these options but if any of these options are going to provide me something extra then I would love to have them.
Reply With Quote
  #2   (View Single Post)  
Old 22nd October 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
 
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167
Default

Do you have a user database with LDAP? If yes check With LDAP support.

With all insult will alllow sudo to insult you if you mistype your password. Can be funny sometimes.
__________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote
  #3   (View Single Post)  
Old 22nd October 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Default

What about - Set home env to target users in shell mode
Reply With Quote
  #4   (View Single Post)  
Old 22nd October 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Quote:
Originally Posted by rex View Post
What about - Set home env to target users in shell mode
I prefer to set this one
This means if you use sudo to run root's command, home will be /root
instead of /home/userWhoRunsSu
Reply With Quote
  #5   (View Single Post)  
Old 24th October 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

With "set home env" unset (the default), running sudo -s to execute a shell as root, leave the environment set to your normal users' env, including $HOME. Meanning, if you do something like "cd", you go to the normal user's home directory, and not root's.

With "set home env" set, running sudo -s still gets you a root shell, but with root's environment. Similar to logging in as root. IMO, this is the better setup.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Tags
sudo

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
installing openbsd bsdnewbie999 OpenBSD Installation and Upgrading 12 4th May 2009 11:55 AM
SUDO Wildcards jcatrysse FreeBSD Security 2 30th June 2008 07:18 AM
installing X11 hirohitosan FreeBSD Installation and Upgrading 3 25th June 2008 09:37 AM
Installing another HD Johnny2Bad FreeBSD Installation and Upgrading 4 20th May 2008 05:38 PM
Installing gnome again qweasdzxc FreeBSD Ports and Packages 2 6th May 2008 11:27 AM


All times are GMT. The time now is 02:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick