<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: FreeBSD &gt; Becoming super user (su) or enabling su access to user</title> <atom:link href="http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: gautam</title><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-168708</link> <dc:creator>gautam</dc:creator> <pubDate>Fri, 11 Feb 2011 17:07:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-168708</guid> <description>hey,
is there any method by which su command souldn&#039;t ask for the password??</description> <content:encoded><![CDATA[<p>hey,<br
/> is there any method by which su command souldn&#8217;t ask for the password??</p> ]]></content:encoded> </item> <item><title>By: MeinBSDuserhoon</title><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-153203</link> <dc:creator>MeinBSDuserhoon</dc:creator> <pubDate>Thu, 28 Jan 2010 12:34:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-153203</guid> <description>Thanks, it helped me tooo
Big thanks!</description> <content:encoded><![CDATA[<p>Thanks, it helped me tooo</p><p>Big thanks!</p> ]]></content:encoded> </item> <item><title>By: Me</title><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-149234</link> <dc:creator>Me</dc:creator> <pubDate>Tue, 30 Jun 2009 07:51:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-149234</guid> <description>Very helpful.
Thanks.</description> <content:encoded><![CDATA[<p>Very helpful.</p><p>Thanks.</p> ]]></content:encoded> </item> <item><title>By: kbouk</title><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-147601</link> <dc:creator>kbouk</dc:creator> <pubDate>Mon, 09 Mar 2009 14:40:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-147601</guid> <description>Very helpful.</description> <content:encoded><![CDATA[<p>Very helpful.</p> ]]></content:encoded> </item> <item><title>By: L0th</title><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-147486</link> <dc:creator>L0th</dc:creator> <pubDate>Sun, 01 Mar 2009 03:35:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-147486</guid> <description>Thanks... as a brand new Linux user this was a HUGE help!</description> <content:encoded><![CDATA[<p>Thanks&#8230; as a brand new Linux user this was a HUGE help!</p> ]]></content:encoded> </item> <item><title>By: ken</title><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-142981</link> <dc:creator>ken</dc:creator> <pubDate>Sat, 23 Feb 2008 12:32:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-142981</guid> <description>thanks, this helped me get su and sudo setup for my user account.</description> <content:encoded><![CDATA[<p>thanks, this helped me get su and sudo setup for my user account.</p> ]]></content:encoded> </item> <item><title>By: LinuxTitli</title><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-19076</link> <dc:creator>LinuxTitli</dc:creator> <pubDate>Mon, 09 May 2005 12:55:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-19076</guid> <description>FreeBSD : Using sudo
You are correct. For those who are not familiar with sudo under FreeBSD here is small how-to:
1) What is sudo?
sudo is security tool/utility which allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers (/usr/local/etc/sudoers) file. It supposes to replace traditional su command which is discussed above.
2) How do I install sudo?
By default, sudo is not installed; you can install it from ports collection or from installation media such as DVD/CDROM. However, make sure it is not installed with following command:
#pkg_info  &#124; grep sudo
If sudo package already installed it will display in output else use any one of the following method to install sudo.
Method # 1 : Install sudo from CD/DVDROM
a) Login as root user
b) Mount cdrom drive
# mount /cdrom
c) Change directory to security directory where sudo binary package is stored on disk:
# cd /cdrom/packages/security/
d) Install the sudo:
# pkg_add -v sudo*
Method # 2: Using ports (recommended)
a)Goto sudo ports directory:
# cd /usr/ports/security/sudo
b) Download, compile and install sudo:
# make install clean
Main sudo configuration file is usr/local/etc/sudoers. You can edit this file directly or use visudo command
rdl          fbsd.test.com=/sbin/su
Save the file
rdl : Name of user who can execute /sbin/su command for fbsd.test.com host
Now you rdl can execute the command (when prompted for password supply rdl users password)
$ sudo /sbin/su
See &lt;a HREF=&quot;http://www.freebsd.org/cgi/man.cgi?query=su&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+5.3-RELEASE+and+Ports&amp;format=html&quot; rel=&quot;nofollow&quot;&gt;su&lt;/A&gt; and &lt;a HREF=&quot;http://www.freebsd.org/cgi/man.cgi?query=sudo&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+5.3-RELEASE+and+Ports&amp;format=html&quot; rel=&quot;nofollow&quot;&gt;sudo&lt;/A&gt; man pages for more information.</description> <content:encoded><![CDATA[<p>FreeBSD : Using sudo</p><p>You are correct. For those who are not familiar with sudo under FreeBSD here is small how-to:</p><p>1) What is sudo?<br
/> sudo is security tool/utility which allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers (/usr/local/etc/sudoers) file. It supposes to replace traditional su command which is discussed above.</p><p>2) How do I install sudo?<br
/> By default, sudo is not installed; you can install it from ports collection or from installation media such as DVD/CDROM. However, make sure it is not installed with following command:<br
/> #pkg_info  | grep sudo</p><p>If sudo package already installed it will display in output else use any one of the following method to install sudo.</p><p>Method # 1 : Install sudo from CD/DVDROM<br
/> a) Login as root user</p><p>b) Mount cdrom drive<br
/> # mount /cdrom</p><p>c) Change directory to security directory where sudo binary package is stored on disk:<br
/> # cd /cdrom/packages/security/</p><p>d) Install the sudo:<br
/> # pkg_add -v sudo*</p><p>Method # 2: Using ports (recommended)</p><p>a)Goto sudo ports directory:<br
/> # cd /usr/ports/security/sudo</p><p>b) Download, compile and install sudo:<br
/> # make install clean</p><p>Main sudo configuration file is usr/local/etc/sudoers. You can edit this file directly or use visudo command</p><p>rdl          fbsd.test.com=/sbin/su</p><p>Save the file</p><p>rdl : Name of user who can execute /sbin/su command for fbsd.test.com host</p><p>Now you rdl can execute the command (when prompted for password supply rdl users password)<br
/> $ sudo /sbin/su</p><p>See <a
HREF="http://www.freebsd.org/cgi/man.cgi?query=su&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+5.3-RELEASE+and+Ports&amp;format=html" rel="nofollow">su</a> and <a
HREF="http://www.freebsd.org/cgi/man.cgi?query=sudo&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+5.3-RELEASE+and+Ports&amp;format=html" rel="nofollow">sudo</a> man pages for more information.</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-19075</link> <dc:creator>Anonymous</dc:creator> <pubDate>Sun, 01 May 2005 01:21:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html#comment-19075</guid> <description>You do not necessiarily need to enable root (it COULD be a a risk to open that acoount up ;-)
try &#039;sudo su&#039; and you will be promoted to root WITHOUT enabling root!</description> <content:encoded><![CDATA[<p>You do not necessiarily need to enable root (it COULD be a a risk to open that acoount up ;-)</p><p>try &#8216;sudo su&#8217; and you will be promoted to root WITHOUT enabling root!</p> ]]></content:encoded> </item> </channel> </rss>
