[olug] To Sudo or Not to Sudo, That is the Question

Amy Mason amason80 at gmail.com
Thu Oct 30 04:48:13 UTC 2008


um... ouch.  Somehow I think that probably meant a reinstall of the os?  I
think it may not hurt to go learn about bash aliases... sooner than later.
:)


On Wed, Oct 29, 2008 at 11:31 PM, T. J. Brumfield <enderandrew at gmail.com>wrote:

> Recursively removes sub-directories and forces the remove, so it won't
> ask for any confirmation.
>
> I goofed once with my very first Linux box years back.  I was going to
> remove a subdirectory under /etc but the / key is right next to enter,
> so I got as far as rm -rf /etc and hit enter.  Now I use a bash alias.
>
> -- T. J.
>
> On Wed, Oct 29, 2008 at 11:22 PM, Amy Mason <amason80 at gmail.com> wrote:
> > I mostly only use sudo, because its what I know.. Also I know rm is
> remove
> > but what evil things does the -rf switch do?
> >
> >
> > On Wed, Oct 29, 2008 at 11:02 PM, T. J. Brumfield <enderandrew at gmail.com
> >wrote:
> >
> >> In a work environment it makes sense to elevate users to track
> >> history, unless only one guy is responsible for that box.  We only
> >> have one dedicated Linux admin where I work.
> >>
> >> I also think every Linux box (home or otherwise) should set up a few
> >> helpful aliases to protect against the rogue rm -rf command.
> >>
> >> -- T. J.
> >>
> >> On Wed, Oct 29, 2008 at 11:00 PM, Kevin <sharpestmarble at gmail.com>
> wrote:
> >> > In the environment at work where we have sudo set up properly, I never
> >> > su to root or login as such. At home, where I'm the only person that
> >> > can screw something up, I'll log in as root.
> >> >
> >> > If you need tracking such as to identify just who it was that ran the
> >> > command `sudo rm -rf /*`, sudo is a great tool. If you need to give a
> >> > QA Analyst the ability to bounce a service without being able to
> >> > modify that service at all, it's a great tool. For a sandbox or a home
> >> > system, however, it's unnecessary.
> >> >
> >> > On Wed, Oct 29, 2008 at 10:54 PM, Tony Reinke <treinke at gmail.com>
> wrote:
> >> >> T. J. Brumfield wrote:
> >> >>> I never use sudo.  As soon as a I open a terminal (yakuake) I type
> su
> >> >>> - and go straight to then running all commands as root.  If I have
> to
> >> >>> do something as a normal user, I open a new terminal tab.
> >> >>>
> >> >>> I find it extraneous to constantly use sudo.  That's just how I
> roll.
> >> >>>
> >> >>> What about everyone else?
> >> >>>
> >> >>> -- T. J.
> >> >>> "In the beginning the Universe was created. This has made a lot of
> >> >>> people very angry and been widely regarded as a bad move."
> >> >>> --Douglas Adams
> >> >>> "Nihilism makes me smile."
> >> >>> --Christopher Quick
> >> >>> _______________________________________________
> >> >>> OLUG mailing list
> >> >>> OLUG at olug.org
> >> >>> https://lists.olug.org/mailman/listinfo/olug
> >> >>>
> >> >> It just depends on the system.  My systems at work, no one, not even
> me,
> >> >> is to su or log in directly.  At home, it just depends on what I am
> >> >> doing and the mood I am in.
> >> >> _______________________________________________
> >> >> OLUG mailing list
> >> >> OLUG at olug.org
> >> >> https://lists.olug.org/mailman/listinfo/olug
> >> >>
> >> > _______________________________________________
> >> > OLUG mailing list
> >> > OLUG at olug.org
> >> > https://lists.olug.org/mailman/listinfo/olug
> >> >
> >>
> >>
> >>
> >> --
> >> "In the beginning the Universe was created. This has made a lot of
> >> people very angry and been widely regarded as a bad move."
> >> --Douglas Adams
> >> "Nihilism makes me smile."
> >> --Christopher Quick
> >> _______________________________________________
> >> OLUG mailing list
> >> OLUG at olug.org
> >> https://lists.olug.org/mailman/listinfo/olug
> >>
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > https://lists.olug.org/mailman/listinfo/olug
> >
>
>
>
> --
> "In the beginning the Universe was created. This has made a lot of
> people very angry and been widely regarded as a bad move."
> --Douglas Adams
> "Nihilism makes me smile."
> --Christopher Quick
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> https://lists.olug.org/mailman/listinfo/olug
>



More information about the OLUG mailing list