How can I get usernames to tab complete again in 19.04 server when using su?How do I get tab completion to work with 'rake'?How to Tab-complete directories when in symlinked directory?bash: how to make smarter auto-complete on tab presschanges to /etc/bash.bashrc not permanentbash autocomplete feature doesn't work when I create function for emacsHow can I detect when the boot sequence is complete on headless systemHow does one get tab-completion in gsettings from zsh?How can I make bash completion (tab auto-complete) match a particular command first?

How to prevent displaying the total sum of A + B if columns A + B are empty

Ethics: Is it ethical for a professor to conduct research using a student's ideas without giving them credit?

What number would you bet on to maximize your chances of winning?

Why has no one requested the tape of the Trump/Ukraine call?

Can a website incur liability for linking to a funding campaign for a lawsuit against it?

Is it possible to determine if a Pokémon is a powerful encounter?

Unwanted visitors detected

Fitting data in polar coordinates

Ode to the Emergence of a Hikikomori

Can I "read" from English books to my infant, but use words from my native language?

Is it possible to have multiple *Find* buffers in emacs?

Does a resurrected wizard remember their prepared spells?

Switching engine coolant with similar properties oil

Is there any math conjecture that would cause a lot of damage if disproven?

How is taste of chemical compounds determined?

Why superuser permission is needed for accessing /data partition?

Who was the first human to sleep on the Moon?

Are results that are derived simply by using more computational power publishable?

Why is the core ChaCha primitive not good for use in a collision-resistant compression function (crypto hash)?

Is Scrum actually suitable for all kinds of projects?

why does my cheese cake not rise when cooked in a water bath

What does shimmy in nose landing gear mean?

Co-curricular lessons between geometry and chemistry?

When Using Throne room on a Throne room do you need two more action cards already in hand?



How can I get usernames to tab complete again in 19.04 server when using su?


How do I get tab completion to work with 'rake'?How to Tab-complete directories when in symlinked directory?bash: how to make smarter auto-complete on tab presschanges to /etc/bash.bashrc not permanentbash autocomplete feature doesn't work when I create function for emacsHow can I detect when the boot sequence is complete on headless systemHow does one get tab-completion in gsettings from zsh?How can I make bash completion (tab auto-complete) match a particular command first?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2


















One of my servers was originally running Ubuntu Server 18.04 (Bionic) and a very common task would be to substitute user, eg. su like this:



su someusername


Usually I would use tab completion to avoid typing the entire username. However, after upgrading to Ubuntu Server 19.04 this no longer auto completes when pressing tab. When I press tab right after typing su I get a list of files instead of usernames.



I have verified that I have bash-completion installed and I even tried:



source /etc/bash_completion


However, it didn't help.










share|improve this question




















  • 1





    I don't know how to restore the original behavior, but just wanted to note that it seems to be part of a greater change that replaces the implementation of su provided by the login (shadow) package with one from util-linux - the latter provides its own completions file whereas the former apparently used a deprecated _su provided by the bash-completions package. For background, see util-linux: Please use login/passwd implementations provided by util-linux

    – steeldriver
    Aug 13 at 14:40






  • 1





    ... note that it apparently will complete usernames if you use one of the explicit options su -u, su --user or su - (to start a login shell for the target user)

    – steeldriver
    Aug 13 at 15:42


















2


















One of my servers was originally running Ubuntu Server 18.04 (Bionic) and a very common task would be to substitute user, eg. su like this:



su someusername


Usually I would use tab completion to avoid typing the entire username. However, after upgrading to Ubuntu Server 19.04 this no longer auto completes when pressing tab. When I press tab right after typing su I get a list of files instead of usernames.



I have verified that I have bash-completion installed and I even tried:



source /etc/bash_completion


However, it didn't help.










share|improve this question




















  • 1





    I don't know how to restore the original behavior, but just wanted to note that it seems to be part of a greater change that replaces the implementation of su provided by the login (shadow) package with one from util-linux - the latter provides its own completions file whereas the former apparently used a deprecated _su provided by the bash-completions package. For background, see util-linux: Please use login/passwd implementations provided by util-linux

    – steeldriver
    Aug 13 at 14:40






  • 1





    ... note that it apparently will complete usernames if you use one of the explicit options su -u, su --user or su - (to start a login shell for the target user)

    – steeldriver
    Aug 13 at 15:42














2













2









2








One of my servers was originally running Ubuntu Server 18.04 (Bionic) and a very common task would be to substitute user, eg. su like this:



su someusername


Usually I would use tab completion to avoid typing the entire username. However, after upgrading to Ubuntu Server 19.04 this no longer auto completes when pressing tab. When I press tab right after typing su I get a list of files instead of usernames.



I have verified that I have bash-completion installed and I even tried:



source /etc/bash_completion


However, it didn't help.










share|improve this question














One of my servers was originally running Ubuntu Server 18.04 (Bionic) and a very common task would be to substitute user, eg. su like this:



su someusername


Usually I would use tab completion to avoid typing the entire username. However, after upgrading to Ubuntu Server 19.04 this no longer auto completes when pressing tab. When I press tab right after typing su I get a list of files instead of usernames.



I have verified that I have bash-completion installed and I even tried:



source /etc/bash_completion


However, it didn't help.







server bash auto-completion






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 13 at 10:18









Kristopher IvesKristopher Ives

3,7272 gold badges18 silver badges31 bronze badges




3,7272 gold badges18 silver badges31 bronze badges










  • 1





    I don't know how to restore the original behavior, but just wanted to note that it seems to be part of a greater change that replaces the implementation of su provided by the login (shadow) package with one from util-linux - the latter provides its own completions file whereas the former apparently used a deprecated _su provided by the bash-completions package. For background, see util-linux: Please use login/passwd implementations provided by util-linux

    – steeldriver
    Aug 13 at 14:40






  • 1





    ... note that it apparently will complete usernames if you use one of the explicit options su -u, su --user or su - (to start a login shell for the target user)

    – steeldriver
    Aug 13 at 15:42













  • 1





    I don't know how to restore the original behavior, but just wanted to note that it seems to be part of a greater change that replaces the implementation of su provided by the login (shadow) package with one from util-linux - the latter provides its own completions file whereas the former apparently used a deprecated _su provided by the bash-completions package. For background, see util-linux: Please use login/passwd implementations provided by util-linux

    – steeldriver
    Aug 13 at 14:40






  • 1





    ... note that it apparently will complete usernames if you use one of the explicit options su -u, su --user or su - (to start a login shell for the target user)

    – steeldriver
    Aug 13 at 15:42








1




1





I don't know how to restore the original behavior, but just wanted to note that it seems to be part of a greater change that replaces the implementation of su provided by the login (shadow) package with one from util-linux - the latter provides its own completions file whereas the former apparently used a deprecated _su provided by the bash-completions package. For background, see util-linux: Please use login/passwd implementations provided by util-linux

– steeldriver
Aug 13 at 14:40





I don't know how to restore the original behavior, but just wanted to note that it seems to be part of a greater change that replaces the implementation of su provided by the login (shadow) package with one from util-linux - the latter provides its own completions file whereas the former apparently used a deprecated _su provided by the bash-completions package. For background, see util-linux: Please use login/passwd implementations provided by util-linux

– steeldriver
Aug 13 at 14:40




1




1





... note that it apparently will complete usernames if you use one of the explicit options su -u, su --user or su - (to start a login shell for the target user)

– steeldriver
Aug 13 at 15:42






... note that it apparently will complete usernames if you use one of the explicit options su -u, su --user or su - (to start a login shell for the target user)

– steeldriver
Aug 13 at 15:42











0






active

oldest

votes













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1165386%2fhow-can-i-get-usernames-to-tab-complete-again-in-19-04-server-when-using-su%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1165386%2fhow-can-i-get-usernames-to-tab-complete-again-in-19-04-server-when-using-su%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?