View Single Post
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#23
Originally Posted by qwerty12 View Post
Why are you using sed to do this? Maemo provides update-sudoers for a reason.

Put the content that you'd like to have in sudoers into a file called "wizard-mounter.sudoers" and install that file to /etc/sudoers.d/ as part of your package. In the postinst and postrm, just run "update-sudoers".
If your wizard-mounter.sudoers file is dodgy, update-sudoers doesn't update /etc/sudoers as opposed to just ruining it. Which is what is happening currently with your sed method. Simple as that.
I completly ignore the existence of update-sudoers. Thanks to pointed it out!
I'll look how to use/integrate it in wizard-mounter.
 

The Following 3 Users Say Thank You to b0unc3 For This Useful Post: