[sudo-users] How to use sudo without typing sudo before any command

François Mehault Francois.Mehault at netplus.fr
Mon Jun 8 05:19:13 EDT 2009

You can do "sudo -i" or "sudo -s" maybe,



-----Message d'origine-----
De : sudo-users-bounces at courtesan.com [mailto:sudo-users-bounces at courtesan.com] De la part de christian.peper at kpn.com
Envoyé : lundi 8 juin 2009 11:14
À : sudo-users at sudo.ws
Objet : Re: [sudo-users] How to use sudo without typing sudo before any command

Justin is completely right, of course.
Sudo let's you use root-level commands that can seriously affect your system, without needing to know the root passwd or become the root user beforehand.

If you need to do a lot of root-level things, for instance, right after installation in a post-installation step, you should simply become root and do it. For occasional maintenance, sudo works fine.

Sudo also logs who does what, if you have several people working on your system. If you're the only one, just switch to root (i.e. 'su -') for your maintenance.

Alternatively, you may increase the timeout sudo uses so you don't have to type the password quite so often. But you still need to use the sudo command.
Defaults        timestamp_timeout=15


> -----Original Message-----
> From: sudo-users-bounces at courtesan.com
> [mailto:sudo-users-bounces at courtesan.com] On Behalf Of Justin Alcorn
> Sent: Friday, June 05, 2009 2:35 PM
> To: Vijay Lad
> Cc: sudo-users at sudo.ws
> Subject: Re: [sudo-users] How to use sudo without typing sudo
> before anycommand
> The point of sudo is to make sure you know you're running a
> privileged command, and to log those commands.  To not type
> 'sudo', you become root, but then you lose all the benefits
> of sudo, including the logging.
> On Fri, Jun 5, 2009 at 8:20 AM, Vijay
> Lad<vijay.k.lad at gmail.com> wrote:
> > Hi All,
> >      I am very new user for sudo, I have install the sudo
> on my centos
> > & its working fine. The problem is that, I have to enter
> sudo before
> > running any command. Is ther any way where I can enter sudo
> at start &
> > after that I can run any command without typing sudo before command?
> >
> > Please reply.
> >
> > Thanks,
> >
> > Vijay
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list