Can call login command from terminalDisable a user's login without disabling the accountWhy does agetty ask...

What do you call a situation where you have choices but no good choice?

Category-theoretic treatment of diffs, patches and merging?

Interpretation of non-significant results as "trends"

How do ballistic trajectories work in a ring world?

Gaining Proficiency in Vehicles (water)

How do I explain that I don't want to maintain old projects?

What is the relationship between external and internal composition in a cartesian closed category?

I'm feeling like my character doesn't fit the campaign

Users forgotting to regenerate PDF before sending it

How to execute a program from terminal redirecting stdout and stderr to systemd's journal?

What are the effects of abstaining from eating a certain flavor?

Why won't the U.S. sign a peace treaty with North Korea?

Writing an ace/aro character?

What is the meaning of "prairie-dog" in this sentence?

What factors could lead to bishops establishing monastic armies?

Is it ok for parents to kiss and romance with each other while their 2- to 8-year-old child watches?

Is there a formal/better word than "skyrocket" for the given context?

What was the nature of the known bugs in the Space Shuttle software?

Is this car delivery via Ebay Motors on Craigslist a scam?

Need a non-volatile memory IC with near unlimited read/write operations capability

Gory anime with pink haired girl escaping an asylum

Is "wissen" the only verb in German to have an irregular present tense?

Is space division multiplexing really multiplexing?

Curly braces adjustment in tikz?



Can call login command from terminal


Disable a user's login without disabling the accountWhy does agetty ask for the username itself?login 'authentication failure' by non-root user, can login only by rootLinux Terminal SSH Username ChangeCan't login after fresh installationWhen opening a terminal does not require a login?Login through command line in Debian StretchCan't login on Debian with correct passwordLinux terminal is not recognizing login informationStuck at login loop while tty and recovery mode terminal works fine






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







0















I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.




  1. So I cant call login username because when I call it from terminal it closes terminal's window.

  2. I can write login and then write user's name but this does not work because it says that Login incorrect.

  3. I can call su user to login as new user. This command will allow me to work with new user.

  4. I can login to my new user from graphical login window (startup login window)

  5. If I write from terminal init 3, then I can write my user's name and password and login

  6. I can login as new user if my OS is running in non graphical mode.


I tested it in CentOS 5.5,6.5. I want to login as new user using login command from terminal when my OS is running in grephical mode. How can I do it?



SOLUTION:
Someone adviced me to call su -l user










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."

    – Celada
    Oct 7 '14 at 18:17











  • I want to login as new user using login(not su) command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.

    – BrettWatts
    Oct 7 '14 at 18:18








  • 1





    You don't want to use su yet that's exactly what su is for. You could use login as well, I suppose. I don't know what you mean by "halts my terminal" because I am able to run login from a terminal and it works just fine.

    – Celada
    Oct 7 '14 at 18:22






  • 1





    I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with login, and you don't like su, then how about telneting or sshing to localhost and logging in (as the new user) that way?

    – G-Man
    Oct 7 '14 at 19:18






  • 1





    The login command works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.

    – Mark Plotnick
    Oct 7 '14 at 19:50


















0















I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.




  1. So I cant call login username because when I call it from terminal it closes terminal's window.

  2. I can write login and then write user's name but this does not work because it says that Login incorrect.

  3. I can call su user to login as new user. This command will allow me to work with new user.

  4. I can login to my new user from graphical login window (startup login window)

  5. If I write from terminal init 3, then I can write my user's name and password and login

  6. I can login as new user if my OS is running in non graphical mode.


I tested it in CentOS 5.5,6.5. I want to login as new user using login command from terminal when my OS is running in grephical mode. How can I do it?



SOLUTION:
Someone adviced me to call su -l user










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."

    – Celada
    Oct 7 '14 at 18:17











  • I want to login as new user using login(not su) command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.

    – BrettWatts
    Oct 7 '14 at 18:18








  • 1





    You don't want to use su yet that's exactly what su is for. You could use login as well, I suppose. I don't know what you mean by "halts my terminal" because I am able to run login from a terminal and it works just fine.

    – Celada
    Oct 7 '14 at 18:22






  • 1





    I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with login, and you don't like su, then how about telneting or sshing to localhost and logging in (as the new user) that way?

    – G-Man
    Oct 7 '14 at 19:18






  • 1





    The login command works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.

    – Mark Plotnick
    Oct 7 '14 at 19:50














0












0








0








I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.




  1. So I cant call login username because when I call it from terminal it closes terminal's window.

  2. I can write login and then write user's name but this does not work because it says that Login incorrect.

  3. I can call su user to login as new user. This command will allow me to work with new user.

  4. I can login to my new user from graphical login window (startup login window)

  5. If I write from terminal init 3, then I can write my user's name and password and login

  6. I can login as new user if my OS is running in non graphical mode.


I tested it in CentOS 5.5,6.5. I want to login as new user using login command from terminal when my OS is running in grephical mode. How can I do it?



SOLUTION:
Someone adviced me to call su -l user










share|improve this question
















I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.




  1. So I cant call login username because when I call it from terminal it closes terminal's window.

  2. I can write login and then write user's name but this does not work because it says that Login incorrect.

  3. I can call su user to login as new user. This command will allow me to work with new user.

  4. I can login to my new user from graphical login window (startup login window)

  5. If I write from terminal init 3, then I can write my user's name and password and login

  6. I can login as new user if my OS is running in non graphical mode.


I tested it in CentOS 5.5,6.5. I want to login as new user using login command from terminal when my OS is running in grephical mode. How can I do it?



SOLUTION:
Someone adviced me to call su -l user







bash centos terminal gnome login






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 8 '14 at 6:30







BrettWatts

















asked Oct 7 '14 at 18:13









BrettWattsBrettWatts

12 bronze badges




12 bronze badges





bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."

    – Celada
    Oct 7 '14 at 18:17











  • I want to login as new user using login(not su) command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.

    – BrettWatts
    Oct 7 '14 at 18:18








  • 1





    You don't want to use su yet that's exactly what su is for. You could use login as well, I suppose. I don't know what you mean by "halts my terminal" because I am able to run login from a terminal and it works just fine.

    – Celada
    Oct 7 '14 at 18:22






  • 1





    I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with login, and you don't like su, then how about telneting or sshing to localhost and logging in (as the new user) that way?

    – G-Man
    Oct 7 '14 at 19:18






  • 1





    The login command works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.

    – Mark Plotnick
    Oct 7 '14 at 19:50














  • 1





    It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."

    – Celada
    Oct 7 '14 at 18:17











  • I want to login as new user using login(not su) command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.

    – BrettWatts
    Oct 7 '14 at 18:18








  • 1





    You don't want to use su yet that's exactly what su is for. You could use login as well, I suppose. I don't know what you mean by "halts my terminal" because I am able to run login from a terminal and it works just fine.

    – Celada
    Oct 7 '14 at 18:22






  • 1





    I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with login, and you don't like su, then how about telneting or sshing to localhost and logging in (as the new user) that way?

    – G-Man
    Oct 7 '14 at 19:18






  • 1





    The login command works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.

    – Mark Plotnick
    Oct 7 '14 at 19:50








1




1





It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."

– Celada
Oct 7 '14 at 18:17





It seems to me you already listed the answer to your question as #3 in your list: "I can call su user to login as new user. This command will allow me to work with new user."

– Celada
Oct 7 '14 at 18:17













I want to login as new user using login(not su) command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.

– BrettWatts
Oct 7 '14 at 18:18







I want to login as new user using login(not su) command from terminal when my OS is running in grephical mode. This thing I need for my administrative needs.

– BrettWatts
Oct 7 '14 at 18:18






1




1





You don't want to use su yet that's exactly what su is for. You could use login as well, I suppose. I don't know what you mean by "halts my terminal" because I am able to run login from a terminal and it works just fine.

– Celada
Oct 7 '14 at 18:22





You don't want to use su yet that's exactly what su is for. You could use login as well, I suppose. I don't know what you mean by "halts my terminal" because I am able to run login from a terminal and it works just fine.

– Celada
Oct 7 '14 at 18:22




1




1





I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with login, and you don't like su, then how about telneting or sshing to localhost and logging in (as the new user) that way?

– G-Man
Oct 7 '14 at 19:18





I'm not sure what your issue is. You can't have two users logged in to the GUI simultaneously. If you want to stay logged in to the GUI (yourself) and also login as the new user, and you have a problem with login, and you don't like su, then how about telneting or sshing to localhost and logging in (as the new user) that way?

– G-Man
Oct 7 '14 at 19:18




1




1





The login command works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.

– Mark Plotnick
Oct 7 '14 at 19:50





The login command works only in certain circumstances. Running in a pty opened by the window system is unfortunately not one of those circumstances.

– Mark Plotnick
Oct 7 '14 at 19:50










1 Answer
1






active

oldest

votes


















-1














It seems you just want to change the user's password. In which case you can (as root) type:



passwd user-name





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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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/3.0/"u003ecc by-sa 3.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%2funix.stackexchange.com%2fquestions%2f159878%2fcan-call-login-command-from-terminal%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1














    It seems you just want to change the user's password. In which case you can (as root) type:



    passwd user-name





    share|improve this answer




























      -1














      It seems you just want to change the user's password. In which case you can (as root) type:



      passwd user-name





      share|improve this answer


























        -1












        -1








        -1







        It seems you just want to change the user's password. In which case you can (as root) type:



        passwd user-name





        share|improve this answer













        It seems you just want to change the user's password. In which case you can (as root) type:



        passwd user-name






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 10 '15 at 15:49









        rghomerghome

        3471 silver badge6 bronze badges




        3471 silver badge6 bronze badges






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f159878%2fcan-call-login-command-from-terminal%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

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...