<?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: Allow A Normal User To Run Commands As root Under Linux / UNIX Operating Systems</title> <atom:link href="http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.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: dsp</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-173738</link> <dc:creator>dsp</dc:creator> <pubDate>Wed, 07 Sep 2011 04:11:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-173738</guid> <description>init 6</description> <content:encoded><![CDATA[<p>init 6</p> ]]></content:encoded> </item> <item><title>By: kaushick</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-173102</link> <dc:creator>kaushick</dc:creator> <pubDate>Sat, 06 Aug 2011 16:31:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-173102</guid> <description>i want to permit a normal user to create user  using sudo............... how would i so that
..</description> <content:encoded><![CDATA[<p>i want to permit a normal user to create user  using sudo&#8230;&#8230;&#8230;&#8230;&#8230; how would i so that<br
/> ..</p> ]]></content:encoded> </item> <item><title>By: C.Raja</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-160764</link> <dc:creator>C.Raja</dc:creator> <pubDate>Fri, 05 Nov 2010 08:48:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-160764</guid> <description>i just add user name is “rakesh” into /etc/sudoers
Where under on the line
# root (ALL)=(ALL) ALL
# rakesh (ALL)=(ALL) ALL
hai rakesh, I hope you are newbie to linux.
If the &quot;/etc/sudoers&quot; file lines are exactly as above. Remove the &quot;#&quot; symbol from the &quot;# rakesh (ALL)=(ALL) ALL&quot; line and save it.
&quot;fdisk&quot; command by default available in &quot;/sbin/fdisk&quot; the path variable will not point to &quot;/sbin&quot; directory for normal user. so use the command as  follows &quot;$sudo /sbinfdisk -l&quot; or set your &quot;PATH&quot; environment variable to point to &quot;/sbin&quot; directory also.
I hope this will resolve your issue.</description> <content:encoded><![CDATA[<p>i just add user name is “rakesh” into /etc/sudoers<br
/> Where under on the line<br
/> # root (ALL)=(ALL) ALL<br
/> # rakesh (ALL)=(ALL) ALL</p><p>hai rakesh, I hope you are newbie to linux.</p><p>If the &#8220;/etc/sudoers&#8221; file lines are exactly as above. Remove the &#8220;#&#8221; symbol from the &#8220;# rakesh (ALL)=(ALL) ALL&#8221; line and save it.</p><p>&#8220;fdisk&#8221; command by default available in &#8220;/sbin/fdisk&#8221; the path variable will not point to &#8220;/sbin&#8221; directory for normal user. so use the command as  follows &#8220;$sudo /sbinfdisk -l&#8221; or set your &#8220;PATH&#8221; environment variable to point to &#8220;/sbin&#8221; directory also.</p><p>I hope this will resolve your issue.</p> ]]></content:encoded> </item> <item><title>By: Rakesh James</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-155536</link> <dc:creator>Rakesh James</dc:creator> <pubDate>Tue, 04 May 2010 07:41:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-155536</guid> <description>Hi all,
i just add user name is &quot;rakesh&quot; into /etc/sudoers
Where under on the line
# root  (ALL)=(ALL)    ALL
# rakesh (ALL)=(ALL)  ALL
am i right?
Still i cant run the commands as &quot;rakesh&quot;
When i type
#sudo fdisk -l
Then i got the answer command not found.
I really want to know , how can change &quot;rakesh&quot; to superuser like &quot;root&quot; which can run all command.
Please help , I desperately need your help
Warm regards
RAKESH JAMES</description> <content:encoded><![CDATA[<p>Hi all,<br
/> i just add user name is &#8220;rakesh&#8221; into /etc/sudoers<br
/> Where under on the line<br
/> # root  (ALL)=(ALL)    ALL<br
/> # rakesh (ALL)=(ALL)  ALL</p><p>am i right?<br
/> Still i cant run the commands as &#8220;rakesh&#8221;</p><p>When i type<br
/> #sudo fdisk -l<br
/> Then i got the answer command not found.</p><p>I really want to know , how can change &#8220;rakesh&#8221; to superuser like &#8220;root&#8221; which can run all command.<br
/> Please help , I desperately need your help</p><p>Warm regards<br
/> RAKESH JAMES</p> ]]></content:encoded> </item> <item><title>By: mailmado</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-148807</link> <dc:creator>mailmado</dc:creator> <pubDate>Wed, 03 Jun 2009 06:08:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-148807</guid> <description>hi
i am unable to run iptables command and root related commands from html page in apache server
but iptables -h is working
pl help</description> <content:encoded><![CDATA[<p>hi<br
/> i am unable to run iptables command and root related commands from html page in apache server<br
/> but iptables -h is working<br
/> pl help</p> ]]></content:encoded> </item> <item><title>By: PRADEEP KUMAR PATHAK</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-148738</link> <dc:creator>PRADEEP KUMAR PATHAK</dc:creator> <pubDate>Thu, 28 May 2009 07:53:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-148738</guid> <description>How can we allow the normal user as root &amp; how can we recover the root password if the sudoer file has been changed as 06660 permission</description> <content:encoded><![CDATA[<p>How can we allow the normal user as root &amp; how can we recover the root password if the sudoer file has been changed as 06660 permission</p> ]]></content:encoded> </item> <item><title>By: Prince</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-148687</link> <dc:creator>Prince</dc:creator> <pubDate>Mon, 25 May 2009 12:29:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-148687</guid> <description>Hi Vivek,
I have configured sudo &amp; its working fine. I need your small help on this. I dont want to type &quot;sudo&quot; evrytime when I run any command. Also wants to keep sepearate log for all sudo activitses. How do I do that? Please help.
Prince</description> <content:encoded><![CDATA[<p>Hi Vivek,<br
/> I have configured sudo &amp; its working fine. I need your small help on this. I dont want to type &#8220;sudo&#8221; evrytime when I run any command. Also wants to keep sepearate log for all sudo activitses. How do I do that? Please help.</p><p>Prince</p> ]]></content:encoded> </item> <item><title>By: dravien</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-147959</link> <dc:creator>dravien</dc:creator> <pubDate>Fri, 03 Apr 2009 00:02:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-147959</guid> <description>im tottally froze out of my ubuntu and im new to this how do i format the hard drive and start  over or else what should i do</description> <content:encoded><![CDATA[<p>im tottally froze out of my ubuntu and im new to this how do i format the hard drive and start  over or else what should i do</p> ]]></content:encoded> </item> <item><title>By: varun Goswami</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-146096</link> <dc:creator>varun Goswami</dc:creator> <pubDate>Wed, 10 Dec 2008 09:19:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-146096</guid> <description>I want to run a shell script by apache user, but that script is owned by root .
i made the required changes in sudoers file but still it is not working, actually when this script runs it write some log file this is also owned by some other user,....can u help me how i can run this script..</description> <content:encoded><![CDATA[<p>I want to run a shell script by apache user, but that script is owned by root .<br
/> i made the required changes in sudoers file but still it is not working, actually when this script runs it write some log file this is also owned by some other user,&#8230;.can u help me how i can run this script..</p> ]]></content:encoded> </item> <item><title>By: Ted</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-145237</link> <dc:creator>Ted</dc:creator> <pubDate>Sat, 11 Oct 2008 21:16:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-145237</guid> <description>Youre exampes have been very helpful.
Tnhanks!</description> <content:encoded><![CDATA[<p>Youre exampes have been very helpful.<br
/> Tnhanks!</p> ]]></content:encoded> </item> <item><title>By: anand</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-143112</link> <dc:creator>anand</dc:creator> <pubDate>Mon, 10 Mar 2008 11:17:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-143112</guid> <description>i am very much impressed with this site,through this site there is chance for self development in techninical knowledge .
thanku very much
i hoppe u will continue this forever
God Bless you
Convey my regards to u and all ur supportes involved in this project
urs
Anand----machilipatnam---INDIA</description> <content:encoded><![CDATA[<p>i am very much impressed with this site,through this site there is chance for self development in techninical knowledge .<br
/> thanku very much<br
/> i hoppe u will continue this forever<br
/> God Bless you<br
/> Convey my regards to u and all ur supportes involved in this project</p><p>urs<br
/> Anand&#8212;-machilipatnam&#8212;INDIA</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-88</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Sat, 13 May 2006 19:06:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-88</guid> <description>&lt;i&gt;&gt;3) the line â€œrokcy dbserver=/etc/init.d/apache-perl restartâ€ indicates that user rocky can restart the apache server running on â€œdbserverâ€ box, but how does the â€œdbserverâ€ knows that? &lt;/i&gt;
It means allow user rocky to run /etc/init.d/apache-perl  on the system dbserver. You need to use /etc/hosts file to define all hosts in network or use DNS/NIS to resolve hostname. From any one of these files it can find out dbserver name. Use hostname command to get actual hostname.
&lt;i&gt;&gt;Is the sudoers file shared between servers someway.&lt;/i&gt;
sudoers files can be shared if you want using Cfengine. If you are on large network it can be done. But remember it is complex operation and needs careful planning.
&lt;i&gt;&gt;I mean, if â€œrockyâ€ telnets/SSHs to dbserver will he be able to restart apache-server?&lt;/i&gt;
Yup that is how it works. You can telnet (do not use it as it is insecure) / ssh into dbserver and restart the apache server.</description> <content:encoded><![CDATA[<p><i>&gt;3) the line â€œrokcy dbserver=/etc/init.d/apache-perl restartâ€ indicates that user rocky can restart the apache server running on â€œdbserverâ€ box, but how does the â€œdbserverâ€ knows that? </i></p><p>It means allow user rocky to run /etc/init.d/apache-perl  on the system dbserver. You need to use /etc/hosts file to define all hosts in network or use DNS/NIS to resolve hostname. From any one of these files it can find out dbserver name. Use hostname command to get actual hostname.</p><p><i>&gt;Is the sudoers file shared between servers someway.</i><br
/> sudoers files can be shared if you want using Cfengine. If you are on large network it can be done. But remember it is complex operation and needs careful planning.</p><p><i>&gt;I mean, if â€œrockyâ€ telnets/SSHs to dbserver will he be able to restart apache-server?</i></p><p>Yup that is how it works. You can telnet (do not use it as it is insecure) / ssh into dbserver and restart the apache server.</p> ]]></content:encoded> </item> <item><title>By: danger</title><link>http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-87</link> <dc:creator>danger</dc:creator> <pubDate>Sat, 13 May 2006 11:13:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html#comment-87</guid> <description>I&#039;m probably missing something, but i don&#039;t actually understand the HOSTNAME values. In point 3) the line &quot;rokcy dbserver=/etc/init.d/apache-perl restart&quot; indicates that user rocky can restart the apache server running on &quot;dbserver&quot; box, but how does the &quot;dbserver&quot; knows that? Is the sudoers file shared between servers someway?
I mean, if &quot;rocky&quot; telnets/SSHs to dbserver will he be able to restart apache-server?
Thanks a lot for helping a linux n00b.</description> <content:encoded><![CDATA[<p>I&#8217;m probably missing something, but i don&#8217;t actually understand the HOSTNAME values. In point 3) the line &#8220;rokcy dbserver=/etc/init.d/apache-perl restart&#8221; indicates that user rocky can restart the apache server running on &#8220;dbserver&#8221; box, but how does the &#8220;dbserver&#8221; knows that? Is the sudoers file shared between servers someway?</p><p>I mean, if &#8220;rocky&#8221; telnets/SSHs to dbserver will he be able to restart apache-server?</p><p>Thanks a lot for helping a linux n00b.</p> ]]></content:encoded> </item> </channel> </rss>
