Re: MacPorts shell mode

2017-10-19 Thread Chris Jones
Hi, > On 19 Oct 2017, at 9:07 pm, Rainer Müller wrote: > >> On 2017-10-19 19:28, Christopher Jones wrote: >> >>> If you really want to run a command without typing your password, >>> configure the sudoers file accordingly. There are plenty of guides on >>> the web on how

Re: MacPorts shell mode

2017-10-19 Thread Christopher Jones
> If you really want to run a command without typing your password, > configure the sudoers file accordingly. There are plenty of guides on > the web on how to do this, or see 'man sudoers' and 'man visudo'. > > Be aware of the security implications such a configuration has. Allowing > to run

Re: MacPorts shell mode

2017-10-19 Thread William H. Magill
This is the normal operation of the SUDO command. Read the man page for sudo — man sudo. Sudo has many configurable parameters which control its operation. > On Thu, 19 Oct 2017, pagani laurent via macports-users wrote: > >> Hi all, >> >> Reading the mails on this list, I discovered the

Re: MacPorts shell mode

2017-10-19 Thread Rainer Müller
On 2017-10-19 18:25, -dan d. wrote: > > I make an "mp" alias of the below which allows doing a port command without > repeated sudo inputs.  In effect it puts your pasword into sudo for you: > > echo your-password | /usr/bin/sudo -S port $1 $2 $3 $4 $5 Not a good idea. This means your password

Re: MacPorts shell mode

2017-10-19 Thread -dan d.
I make an "mp" alias of the below which allows doing a port command without repeated sudo inputs. In effect it puts your pasword into sudo for you: echo your-password | /usr/bin/sudo -S port $1 $2 $3 $4 $5 On Thu, 19 Oct 2017, pagani laurent via macports-users wrote: Hi all, Reading the

Re: MacPorts shell mode

2017-10-18 Thread pagani laurent via macports-users
> Le 19 oct. 2017 à 02:37, Bradley Giesbrecht a écrit : > >> On Oct 18, 2017, at 5:31 PM, pagani laurent via macports-users >> wrote: >> >> Hi all, >> >> Reading the mails on this list, I discovered the Shell mode option (sudo >>

Re: MacPorts shell mode

2017-10-18 Thread Bradley Giesbrecht
> On Oct 18, 2017, at 5:31 PM, pagani laurent via macports-users > wrote: > > Hi all, > > Reading the mails on this list, I discovered the Shell mode option (sudo port > without argument) which would allow in principle to launch several commands > without

MacPorts shell mode

2017-10-18 Thread pagani laurent via macports-users
Hi all, Reading the mails on this list, I discovered the Shell mode option (sudo port without argument) which would allow in principle to launch several commands without repeating sudo port each time (and typing the passwd). But once in that mode, I typed selfupdate and was exited from the the