Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

when logged in as user 'www-data' on my debian server (squeeze) i want to use bash-completion. I follewed this guide, but i doesn't succeed: it is working for all regular users but not for www-data! what's wrong?

share|improve this question

migrated from Jan 16 '12 at 10:33

This question came from our site for professional and enthusiast programmers.

When you log in as www-data often enough that bash completion is worth the hassle, you have a serious problem with the administration. – thiton Jan 13 '12 at 10:48
Are you sure that www-data has correct shell? Check by echo $SHELL or echo $0 in console. – 4ndrew Jan 13 '12 at 10:53
@4andrew: that's the fault! 'sh' was the enabled shell ... thanks fpr your answer. – user1116675 Jan 13 '12 at 13:23

As a normal user with bash completion do:

sudo -u www-data #rest of command here#

and you'll get the rest of the command allowing bash completion.

share|improve this answer

You must log in to answer this question.