Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My preseed server install file executes a number of additional tasks with a bash script called with preseed/late_command. I wish to prompt for a password during this process to install LDAP properly. How can I do this in debconf style?

share|improve this question

From the Ubuntu Wiki Custom Install CD

Generally, a script run from the seed file via late_command, cannot interact with the user. If you need to interact, there are generally three options:

1. Create a custom UDEB that interacts with debconf, and include it with the CD.
2. Create a 'firstrun' script that executes the first time the system boots, and disables itself on completion.
3. Access debconf directly within your script. 

Personally I use the 'first run' method and run the scripts post install. I have not used the other two methods.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.