First bash script - Enter root password only once
0
votes
3
answers
1277
views
I wrote a small bash script. It needs root password.
There are two commands only, both of which need the permission. So, currently I must enter the superuser password **twice** - I don't want that.
I linked the script to desktop. And I'm executing it from desktop I mean.
My effort, which does not work:
gksu -u root "iptables -D INPUT 7 && iptables -D INPUT 6"
Asked by Vlastimil Burián
(30515 rep)
Sep 15, 2015, 08:07 AM
Last activity: Apr 16, 2019, 02:34 PM
Last activity: Apr 16, 2019, 02:34 PM