Micha Feigin wrote:
> On Thu, Feb 05, 2004 at 01:41:43PM +0100, Michael Rauch wrote:
> > Rick Weinbender wrote:
> > >Adam Aube wrote:
> > >
> > >>On Wednesday 04 February 2004 03:23 pm, Rick Weinbender wrote:
> > >>>Can I use SUDO within a bash script?
> > >>
> > >>Absolutely, though be aware that
On Thu, Feb 05, 2004 at 01:41:43PM +0100, Michael Rauch wrote:
> Rick Weinbender wrote:
> >Adam Aube wrote:
> >
> >
> >>On Wednesday 04 February 2004 03:23 pm, Rick Weinbender wrote:
> >>
> >>>Can I use SUDO within a bash script?
> >>
> >>Absolutely, though be aware that if sudo is set to require a
Michael Rauch wrote:
instead of writing a shellscript you could also use aliases in the bash
shell (don't know if it works in other shells though). to have your
aliases available all the time, you can but them in your .bashrc file in
your $HOME directory (you will probably already find some aliase
Rick Weinbender wrote:
Adam Aube wrote:
On Wednesday 04 February 2004 03:23 pm, Rick Weinbender wrote:
Can I use SUDO within a bash script?
Absolutely, though be aware that if sudo is set to require a password, you
won't be able to run it in the background.
By putting NOPASSWD before the command
On Wednesday 04 February 2004 04:09 pm, Rick Weinbender wrote:
> Can I avoid typing sudo before myprogram at the commandline?
Yes - it works just like the article you quoted describes it.
Adam
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMA
Adam Aube wrote:
> On Wednesday 04 February 2004 03:23 pm, Rick Weinbender wrote:
> > Can I use SUDO within a bash script?
>
> Absolutely, though be aware that if sudo is set to require a password, you
> won't be able to run it in the background.
>
> By putting NOPASSWD before the command in /etc/
On Wednesday 04 February 2004 03:23 pm, Rick Weinbender wrote:
> Can I use SUDO within a bash script?
Absolutely, though be aware that if sudo is set to require a password, you
won't be able to run it in the background.
By putting NOPASSWD before the command in /etc/sudoers, sudo will not
requi
Can I use SUDO within a bash script?
ie:
#!/bin/sh
sudo myprogram
Thanks,
-Rick
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
8 matches
Mail list logo