Is it possible to run a command like "su - root -c script" in post-install actions when using text mode installation? I tried and the installer gives the error I display on attempt to run this command. I assume that maybe it is related to the fact that this command needs the user to enter a password. If this is the case, what will be the correct way to handle it in text mode installation?

Another question related to this, is there a way to force the installer to go back to the previous step in case that user/password is invalid?

asked 23 Apr '12, 01:42

NicoleH's gravatar image

accept rate: 50%

It will be tricky to make su - root -c script when installing as a regular user. Would be possible to require root privileges from the very beginning? You can configure the owner of the installed files using:


And also change permissions using the <changePermissions>


Regarding going back if some validation fails, if you place the checks in the <validationActionList> and throw an error in case they are invalid, the page will be redrawn. You can find more informetion here.


answered 25 Apr '12, 04:57

juanjo's gravatar image

juanjo ♦♦
accept rate: 23%

We cannot require the installation to be performed by root, the installation is done by regular user and at the end we want to run run some commands that will install our script in boot/inittab sequence. Is there a way to do that?

(16 May '12, 02:15) NicoleH

On Linux and on GUI mode only it is possible to use the <runAs> tag of the <runProgram> action. But it is not a solution for your case (text mode). Could you provide more information about why you do not want to allow root installation? You can still install per-user by customizing the installer logic.

(30 May '12, 14:45) juanjo ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 23 Apr '12, 01:42

Seen: 1,424 times

Last updated: 30 May '12, 14:45