D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Converts to Linux

 

 surely it makes no difference which you use except that su -c is
longer than sudo and sudo -s is longer than su...

On 9/30/06, Robin Cornelius <robin.cornelius@xxxxxxxxx> wrote:
> Benjamin A'Lee wrote:
>
> >> sudo is FAR preferable to su because sudo only operates on that one
> >> command. It is quite likely that you will trash your entire system by
> >> 'forgetting' that you are still in an su shell. You can't do that with
> >> sudo.
> >
> > Unless you do `sudo -s`. Or `sudo $SHELL`. This is much easier than
> > typing `sudo` before everything if you need to do a lot of work as root,
> > but carries the same risks as `su`.
>
> Of cause
>
> su -c "command to run"
>
> has the same effect and only roots that one "command to run", personally
> I prefer su -c to sudo
>
> --
> Robin Cornelius
> http://www.byteme.org.uk
>
>
>
> --
> The Mailing List for the Devon & Cornwall LUG
> http://mailman.dclug.org.uk/listinfo/list
> FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html
>
>
>
>

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html