Re: Using sudo in a script.

2016-08-03 Thread deloptes
Ken Heard wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 2016-08-03 15:16, Jude DaShiell wrote: >> Why not try a -H switch on the sudo line in your script and see >> what happens? > > I did. The answer was nothing. why bother users run sudo commands when they can use the deskt

Re: Using sudo in a script.

2016-08-03 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2016-08-03 15:16, Jude DaShiell wrote: > Why not try a -H switch on the sudo line in your script and see > what happens? I did. The answer was nothing. Regards, Ken -BEGIN PGP SIGNATURE- Version: GnuPG v2 iEYEARECAAYFAleiYfsACgkQlNlJzOk

Re: Using sudo in a script.

2016-08-03 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2016-08-03 12:21, Ken Heard wrote: > I would like to create a short script to mount and unmount SCXC > cards. For these exfat cards to do either in Jessie has to be done > as root. > > I have set up sudo so that my user can run any command as root.

Re: Using sudo in a script.

2016-08-03 Thread Don Armstrong
On Wed, 03 Aug 2016, Ken Heard wrote: > I would like to create a short script to mount and unmount SCXC cards. > For these exfat cards to do either in Jessie has to be done as root. > > I have set up sudo so that my user can run any command as root. the > following command will mount the card w

Using sudo in a script.

2016-08-03 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would like to create a short script to mount and unmount SCXC cards. For these exfat cards to do either in Jessie has to be done as root. I have set up sudo so that my user can run any command as root. the following command will mount the card wit