<?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: Avoid typing sudo on Ubuntu Linux</title> <atom:link href="http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: ActionParsnip</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-43925</link> <dc:creator>ActionParsnip</dc:creator> <pubDate>Fri, 02 Oct 2009 10:01:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-43925</guid> <description>If you edit ~/.bashrc you must either:
- close all terminals and rerun them
- reboot
- or run: source ~/.bahrc
to apply the alias</description> <content:encoded><![CDATA[<p>If you edit ~/.bashrc you must either:<br
/> - close all terminals and rerun them<br
/> - reboot<br
/> - or run: source ~/.bahrc</p><p>to apply the alias</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-43924</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Fri, 02 Oct 2009 09:58:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-43924</guid> <description>Use /etc/profile or ~/.bash_profile or ~/.bashrc see
http://bash.cyberciti.biz/guide/The_role_of_shells_in_the_Linux_environment</description> <content:encoded><![CDATA[<p>Use /etc/profile or ~/.bash_profile or ~/.bashrc see<br
/> <a
href="http://bash.cyberciti.biz/guide/The_role_of_shells_in_the_Linux_environment" rel="nofollow">http://bash.cyberciti.biz/guide/The_role_of_shells_in_the_Linux_environment</a></p> ]]></content:encoded> </item> <item><title>By: Mohamed</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-43921</link> <dc:creator>Mohamed</dc:creator> <pubDate>Fri, 02 Oct 2009 03:38:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-43921</guid> <description>Well you can just type sudo su and put in the password and your running as root
the alias mo=&#039;sudo -s -H&#039; only works after i put in the password, but after reboot it i type in &quot;mo&quot; it wont work  I have to type the &quot;alias mo=&#039;sudo -s -H&#039;&quot; command and type my password for it to work, is there a way to have this command and password be auto inserted when the computer boots up?
for example in Dos, if you want to auto format a computer and add label you make a batch or executable that basically types in:
&quot;echo &#124; y format c:/q&quot;
add this to the autoexec,bat and it should run fine, just like path = path
is there a file like the autoexec,bat in ubuntu?</description> <content:encoded><![CDATA[<p>Well you can just type sudo su and put in the password and your running as root<br
/> the alias mo=&#8217;sudo -s -H&#8217; only works after i put in the password, but after reboot it i type in &#8220;mo&#8221; it wont work  I have to type the &#8220;alias mo=&#8217;sudo -s -H&#8217;&#8221; command and type my password for it to work, is there a way to have this command and password be auto inserted when the computer boots up?<br
/> for example in Dos, if you want to auto format a computer and add label you make a batch or executable that basically types in:<br
/> &#8220;echo | y format c:/q&#8221;<br
/> add this to the autoexec,bat and it should run fine, just like path = path<br
/> is there a file like the autoexec,bat in ubuntu?</p> ]]></content:encoded> </item> <item><title>By: ActionParsnip</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-42291</link> <dc:creator>ActionParsnip</dc:creator> <pubDate>Mon, 29 Jun 2009 19:13:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-42291</guid> <description>This is a ridiculous guide. If yuo use it your system is significantly easier to hack as the root is a common account on all accounts. For all who think sudo is less secure, this is very wrong. If you want a root prompt, simply run:
sudo -i
This does not involve enabling the root account and also keeps the user prefs in your home folder, if you sudo su, you become root so all settings for apps will be in /root and not your users home. Also files accessed by sudo su after using this guide will more than likely be made the owner by root, if you start messing with files in your normal users home folder you may not be able to log in without having to boot to recovery mode and chowning
This sort of guide only helps new users break their systems. Many Linux experts sat and discussed this new user model but hey I guess you guys know better.</description> <content:encoded><![CDATA[<p>This is a ridiculous guide. If yuo use it your system is significantly easier to hack as the root is a common account on all accounts. For all who think sudo is less secure, this is very wrong. If you want a root prompt, simply run:</p><p>sudo -i</p><p>This does not involve enabling the root account and also keeps the user prefs in your home folder, if you sudo su, you become root so all settings for apps will be in /root and not your users home. Also files accessed by sudo su after using this guide will more than likely be made the owner by root, if you start messing with files in your normal users home folder you may not be able to log in without having to boot to recovery mode and chowning</p><p>This sort of guide only helps new users break their systems. Many Linux experts sat and discussed this new user model but hey I guess you guys know better.</p> ]]></content:encoded> </item> <item><title>By: Code</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-42132</link> <dc:creator>Code</dc:creator> <pubDate>Thu, 18 Jun 2009 21:36:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-42132</guid> <description>Daniel :
The  &#039;-&#039; is to source the $PATH variable.
If you want to test it out.
login as a normal user in a shell and then do &#039;su root&#039; and try to execute service command or any other command which is included in the path. You will get  a &#039;command not found&#039;.
Then do a &#039;su - root&#039; and then try to execute the same command. It works.</description> <content:encoded><![CDATA[<p>Daniel :</p><p>The  &#8216;-&#8217; is to source the $PATH variable.<br
/> If you want to test it out.<br
/> login as a normal user in a shell and then do &#8216;su root&#8217; and try to execute service command or any other command which is included in the path. You will get  a &#8216;command not found&#8217;.<br
/> Then do a &#8216;su &#8211; root&#8217; and then try to execute the same command. It works.</p> ]]></content:encoded> </item> <item><title>By: Daniel Rosenstark</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-39831</link> <dc:creator>Daniel Rosenstark</dc:creator> <pubDate>Wed, 14 Jan 2009 13:37:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-39831</guid> <description>I need to shut off sudo because my Ubuntu install is in a VirtualBox, not exposed to the Internet and used only by me.
Thanks for this article. What is the minus sign for?</description> <content:encoded><![CDATA[<p>I need to shut off sudo because my Ubuntu install is in a VirtualBox, not exposed to the Internet and used only by me.</p><p>Thanks for this article. What is the minus sign for?</p> ]]></content:encoded> </item> <item><title>By: LinuxAdm</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-39381</link> <dc:creator>LinuxAdm</dc:creator> <pubDate>Sat, 06 Dec 2008 22:21:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-39381</guid> <description>sudo is LESS secure and specially in the default way configured by Ubuntu cause you&#039;re making superusers everybody regular user belonging to the admin. Besides when you use sudo you don&#039;t even need a superuser password you&#039;re becoming root typing onling your password. Both sudo and su have some flaws because they run with user or group GID enabled, but at least when you use su, the root password is requiered and as soon as you do wan&#039;t you need you exit the terminal or close de application.
By the way, if you use su -c COMMAND you can run just one task, you don&#039;t need to open a terminal....</description> <content:encoded><![CDATA[<p>sudo is LESS secure and specially in the default way configured by Ubuntu cause you&#8217;re making superusers everybody regular user belonging to the admin. Besides when you use sudo you don&#8217;t even need a superuser password you&#8217;re becoming root typing onling your password. Both sudo and su have some flaws because they run with user or group GID enabled, but at least when you use su, the root password is requiered and as soon as you do wan&#8217;t you need you exit the terminal or close de application.</p><p>By the way, if you use su -c COMMAND you can run just one task, you don&#8217;t need to open a terminal&#8230;.</p> ]]></content:encoded> </item> <item><title>By: Metavoid</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-38899</link> <dc:creator>Metavoid</dc:creator> <pubDate>Mon, 29 Sep 2008 09:45:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-38899</guid> <description>Rene:
Your welcome. Glad it worked for you too.
Ohh, didnt know seahorse could  do that :) thx.
&gt;&gt;Finally I would like to run permanently as root. How do you do this in Ubuntu?
Well, I tried many times, but installing it as root makes it blow up. The xserver hates me and it stops in shell.  So my best bet is to use Autologin in and the su command to raise the permissions when needed. Then you dont have to type sudo a million times, only remember to su to the shell 1 time. Not perfect but better than sudo IMHO. The about sugestion with
‘alias god=”sudo -s -H”‘ is also ok.
Open shell, type god. :)
Hehe yeah the UAC (User Annoying Control ?) is a features that can make me cry. Luckly you can turn it off.
Well, I agree with you. Its pretty annoying that it cannot run as root when the whole linux idea is about freedom and then again, not, i guess.
Even its not wise or anything, I still want to do it.</description> <content:encoded><![CDATA[<p>Rene:<br
/> Your welcome. Glad it worked for you too.<br
/> Ohh, didnt know seahorse could  do that :) thx.</p><p>&gt;&gt;Finally I would like to run permanently as root. How do you do this in Ubuntu?</p><p>Well, I tried many times, but installing it as root makes it blow up. The xserver hates me and it stops in shell.  So my best bet is to use Autologin in and the su command to raise the permissions when needed. Then you dont have to type sudo a million times, only remember to su to the shell 1 time. Not perfect but better than sudo IMHO. The about sugestion with<br
/> ‘alias god=”sudo -s -H”‘ is also ok.<br
/> Open shell, type god. :)</p><p>Hehe yeah the UAC (User Annoying Control ?) is a features that can make me cry. Luckly you can turn it off.</p><p>Well, I agree with you. Its pretty annoying that it cannot run as root when the whole linux idea is about freedom and then again, not, i guess.<br
/> Even its not wise or anything, I still want to do it.</p> ]]></content:encoded> </item> <item><title>By: Rene Lindsay</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-38894</link> <dc:creator>Rene Lindsay</dc:creator> <pubDate>Sat, 27 Sep 2008 19:41:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-38894</guid> <description>Thanks for the tips, Metavoid. Enabling auto login was a good start, and gets rid of the first login.  Directly after that, nm-applet wants the password again.  I found I could get rid of this, by using Ubuntu&#039;s Seahorse utility to set the keyring manager&#039;s password to blank.
Finally I would like to run permanently as root.  How do you do this in Ubuntu?
Ironically, the whole reason I even tried out Ubuntu in the first place, was because I didnt like how Vista&#039;s UAC keeps nagging for permission.</description> <content:encoded><![CDATA[<p>Thanks for the tips, Metavoid. Enabling auto login was a good start, and gets rid of the first login.  Directly after that, nm-applet wants the password again.  I found I could get rid of this, by using Ubuntu&#8217;s Seahorse utility to set the keyring manager&#8217;s password to blank.<br
/> Finally I would like to run permanently as root.  How do you do this in Ubuntu?</p><p>Ironically, the whole reason I even tried out Ubuntu in the first place, was because I didnt like how Vista&#8217;s UAC keeps nagging for permission.</p> ]]></content:encoded> </item> <item><title>By: Metavoid</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-38890</link> <dc:creator>Metavoid</dc:creator> <pubDate>Fri, 26 Sep 2008 13:54:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-38890</guid> <description>Rene Lindsay:
Well I hate sudo too and have no need for password so I run my linux as a super user and
have enabled auto login via KDE so the box just boots directly to the desktop.
However, thinking that Vista will not just drop dead and block access to your data is frankly
too naive... My linux is an old knoppix 3.3 and have not reinstalled even I have used it alot. On the other side, I have reinstalled my Xp twice and currently my vista takes ages to boot so I might have to end its suffering.
Also, next time you get &quot;Authentication&quot; box, just use another shell (ctrl+alt+f1-f8) to login and fix the problem or get your data. You never need to reinstall. Thats a windows fix and luckly you have better options with linux.</description> <content:encoded><![CDATA[<p>Rene Lindsay:<br
/> Well I hate sudo too and have no need for password so I run my linux as a super user and<br
/> have enabled auto login via KDE so the box just boots directly to the desktop.<br
/> However, thinking that Vista will not just drop dead and block access to your data is frankly<br
/> too naive&#8230; My linux is an old knoppix 3.3 and have not reinstalled even I have used it alot. On the other side, I have reinstalled my Xp twice and currently my vista takes ages to boot so I might have to end its suffering.<br
/> Also, next time you get &#8220;Authentication&#8221; box, just use another shell (ctrl+alt+f1-f8) to login and fix the problem or get your data. You never need to reinstall. Thats a windows fix and luckly you have better options with linux.</p> ]]></content:encoded> </item> <item><title>By: Rene Lindsay</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-38889</link> <dc:creator>Rene Lindsay</dc:creator> <pubDate>Fri, 26 Sep 2008 10:43:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-38889</guid> <description>Thanks Partic, but I did not LOSE my password. A linux bug prevented me from even entering it. My Password is &#039;PASS&#039;. I keep it written down next to the PC in case someone needs access while I&#039;m gone.  My point is I DONT work for the CIA, so I dont need or want all this pointless security.  And, I&#039;m not some paranoid social outcast who needs to be elevated to &#039;superuser&#039; status just to feel special. Linux security is buggy, unreliable, and risky.  Isnt there some way of turning it off?  I have never come accross any malware or spyware that is as disruptive as sudo.</description> <content:encoded><![CDATA[<p>Thanks Partic, but I did not LOSE my password. A linux bug prevented me from even entering it. My Password is &#8216;PASS&#8217;. I keep it written down next to the PC in case someone needs access while I&#8217;m gone.  My point is I DONT work for the CIA, so I dont need or want all this pointless security.  And, I&#8217;m not some paranoid social outcast who needs to be elevated to &#8216;superuser&#8217; status just to feel special. Linux security is buggy, unreliable, and risky.  Isnt there some way of turning it off?  I have never come accross any malware or spyware that is as disruptive as sudo.</p> ]]></content:encoded> </item> <item><title>By: Patrick</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-38875</link> <dc:creator>Patrick</dc:creator> <pubDate>Thu, 25 Sep 2008 12:36:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-38875</guid> <description>Hi Rene,
That you dont know howto to use the security features in linux is not the fault of linux but a lack of knowledge on your side.
If you where a little more knowledgeable you would have known howto restore your password without reinstalling the machine.
You can easily achieve this by booting from your ubuntu cd mount your harddrive and replace the password.
also you could setup key authentication to remotely login with ssh so you dont need a root password anymore.
in short dont blame Linux for your lack of knowledge.
Cheers,
Patrick</description> <content:encoded><![CDATA[<p>Hi Rene,</p><p>That you dont know howto to use the security features in linux is not the fault of linux but a lack of knowledge on your side.<br
/> If you where a little more knowledgeable you would have known howto restore your password without reinstalling the machine.<br
/> You can easily achieve this by booting from your ubuntu cd mount your harddrive and replace the password.<br
/> also you could setup key authentication to remotely login with ssh so you dont need a root password anymore.<br
/> in short dont blame Linux for your lack of knowledge.</p><p>Cheers,<br
/> Patrick</p> ]]></content:encoded> </item> <item><title>By: Rene Lindsay</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-38870</link> <dc:creator>Rene Lindsay</dc:creator> <pubDate>Wed, 24 Sep 2008 14:43:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-38870</guid> <description>Isn&#039;t there some way of turning off all these pointless security features in Linux?
It only makes Linux unreliable and frustrating to use. In fact, it makes linux LESS secure. For instance, just yesterday I tried to add a new user to my Ubuntu.  After rebooting, I got a recurring &quot;Authentication failed&quot; which prevented me from even entering a password. In the end I had no choice but to format and reinstall Ubuntu, losing all my documents and personal files in the process.
I feel much safer using Vista now, because UAC can be turned off and Vista doesnt require a password. So, Vista and wont block me from accessing my own files or lose my data.</description> <content:encoded><![CDATA[<p>Isn&#8217;t there some way of turning off all these pointless security features in Linux?<br
/> It only makes Linux unreliable and frustrating to use. In fact, it makes linux LESS secure. For instance, just yesterday I tried to add a new user to my Ubuntu.  After rebooting, I got a recurring &#8220;Authentication failed&#8221; which prevented me from even entering a password. In the end I had no choice but to format and reinstall Ubuntu, losing all my documents and personal files in the process.<br
/> I feel much safer using Vista now, because UAC can be turned off and Vista doesnt require a password. So, Vista and wont block me from accessing my own files or lose my data.</p> ]]></content:encoded> </item> <item><title>By: jrm</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-43</link> <dc:creator>jrm</dc:creator> <pubDate>Mon, 12 Jun 2006 15:28:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-43</guid> <description>Instead of &#039;su -&#039; you can use &#039;sudo -s -H&#039; to get you root environment...
A nifty alias would be &#039;alias god=&quot;sudo -s -H&quot;&#039;. Typing &#039;god&#039; and entering you password will give you almighty powers...</description> <content:encoded><![CDATA[<p>Instead of &#8216;su -&#8217; you can use &#8216;sudo -s -H&#8217; to get you root environment&#8230;</p><p>A nifty alias would be &#8216;alias god=&#8221;sudo -s -H&#8221;&#8216;. Typing &#8216;god&#8217; and entering you password will give you almighty powers&#8230;</p> ]]></content:encoded> </item> <item><title>By: Anonymous</title><link>http://www.cyberciti.biz/faq/avoid-typing-sudo-on-ubuntu-linux/#comment-42</link> <dc:creator>Anonymous</dc:creator> <pubDate>Sun, 11 Jun 2006 07:20:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/faq/avoid-typing-sudo-on-ubuntu-linux.php#comment-42</guid> <description>I understand your question.
as root , open the file /etc/sudoers
with vi or run the command visudo
in this file are users and groups and their permissions.
comment with # at all lines without # (commonly user root and the group %admin and others)
save ! :)</description> <content:encoded><![CDATA[<p>I understand your question.</p><p>as root , open the file /etc/sudoers<br
/> with vi or run the command visudo</p><p>in this file are users and groups and their permissions.</p><p>comment with # at all lines without # (commonly user root and the group %admin and others)</p><p>save ! :)</p> ]]></content:encoded> </item> </channel> </rss>
