How do I properly add a python shell to the shells file under /etc/shells?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I would also like to do the same for metasploit. I know that using Kali would be more practical but my PC isn't good enough to run it on VB.







share|improve this question






















  • You can enter the full path of it on one line in /etc/shells - avoid spaces, special characters, etc
    – ivanivan
    Jan 12 at 23:02














up vote
0
down vote

favorite












I would also like to do the same for metasploit. I know that using Kali would be more practical but my PC isn't good enough to run it on VB.







share|improve this question






















  • You can enter the full path of it on one line in /etc/shells - avoid spaces, special characters, etc
    – ivanivan
    Jan 12 at 23:02












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I would also like to do the same for metasploit. I know that using Kali would be more practical but my PC isn't good enough to run it on VB.







share|improve this question














I would also like to do the same for metasploit. I know that using Kali would be more practical but my PC isn't good enough to run it on VB.









share|improve this question













share|improve this question




share|improve this question








edited Jan 13 at 0:01









Jeff Schaller

31.8k848109




31.8k848109










asked Jan 12 at 22:58









Sidney Upton

135




135











  • You can enter the full path of it on one line in /etc/shells - avoid spaces, special characters, etc
    – ivanivan
    Jan 12 at 23:02
















  • You can enter the full path of it on one line in /etc/shells - avoid spaces, special characters, etc
    – ivanivan
    Jan 12 at 23:02















You can enter the full path of it on one line in /etc/shells - avoid spaces, special characters, etc
– ivanivan
Jan 12 at 23:02




You can enter the full path of it on one line in /etc/shells - avoid spaces, special characters, etc
– ivanivan
Jan 12 at 23:02










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Several ways:



  • sudo vi /etc/shells

  • printf "%sn" "/path/to/shell" | sudo tee -a /etc/shells

  • ed /etc/shells # aEnter/path/to/shellEnter.EnterwqEnter





share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416702%2fhow-do-i-properly-add-a-python-shell-to-the-shells-file-under-etc-shells%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Several ways:



    • sudo vi /etc/shells

    • printf "%sn" "/path/to/shell" | sudo tee -a /etc/shells

    • ed /etc/shells # aEnter/path/to/shellEnter.EnterwqEnter





    share|improve this answer
























      up vote
      0
      down vote













      Several ways:



      • sudo vi /etc/shells

      • printf "%sn" "/path/to/shell" | sudo tee -a /etc/shells

      • ed /etc/shells # aEnter/path/to/shellEnter.EnterwqEnter





      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Several ways:



        • sudo vi /etc/shells

        • printf "%sn" "/path/to/shell" | sudo tee -a /etc/shells

        • ed /etc/shells # aEnter/path/to/shellEnter.EnterwqEnter





        share|improve this answer












        Several ways:



        • sudo vi /etc/shells

        • printf "%sn" "/path/to/shell" | sudo tee -a /etc/shells

        • ed /etc/shells # aEnter/path/to/shellEnter.EnterwqEnter






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 13 at 0:05









        Jeff Schaller

        31.8k848109




        31.8k848109






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416702%2fhow-do-i-properly-add-a-python-shell-to-the-shells-file-under-etc-shells%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?