0

I have a bash script that contains few commands that can only be run by root, e.g. wpa_supplicant. I would like to allow the normal user to run the script without sudo.

I found these posts but they are not exatcly what I want ( here, there and there)

PinkFloyd
  • 419
  • 7
  • 18
  • And what would be exactly what you want? And/or why are these solution not what you want? – Anthon Jul 02 '15 at 13:40
  • 1
    Actually, [this answer](http://unix.stackexchange.com/a/47188/111878) to the third post you mentioned is exactly what you want. Use `sudo`, that's what it was meant to do. Just change the command to the one you need. – lcd047 Jul 02 '15 at 13:42
  • I'm trying to find a solution without sudo... but if there's none, so be it – PinkFloyd Jul 02 '15 at 13:44
  • 1
    In theory you could write a SUID program, but in practise a solution with sudo is much better. Why do you want to avoid sudo? Its call could be hidden in a separate script. – jofel Jul 02 '15 at 14:03

0 Answers0