I would like to, as part of Emacs Lisp package set-up process to run some programs which typically require superuser access, for instance, I would like to make sure that certain system packages are installed, and if not, then install them, I would also need to configure a database, which, will also require superuser access (once, in order to add a user with reduced privileges to operate on her own database).
I was hoping to enlist Tramp for help, but after some searching, couldn't find a way to do it.
Note, what I need is:
- Make sure I need the permissions to do what I want.
- If test comes out positive, ask the user to start a shell with elevated permissions.
From that point on, I think I could manage it.