Login screen - set default user












2















On login screen i have two options: my default user (let's say User1) and "Other User". When i work as "Other user" and make "Log out", on logon screen the 'active' one is "Other User". I wish that after every log out/reboot/start the active one is my default user. Is it possible to set default user on login screen? Thx for help in advance.



Regards,
A










share|improve this question























  • I'm not sure I understand what you're trying to do. Do you want to automatically login as a user? You can do that by setting up automatic login. OR you want that every time you logout, you want the login screen to display only your user account? If that's what you want, why not just remove the other user accounts and set a single user account?

    – Peachy
    Jul 4 '12 at 8:13











  • Possible duplicate of How can I change the default user shown in the login screen?

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Jan 28 '16 at 13:11
















2















On login screen i have two options: my default user (let's say User1) and "Other User". When i work as "Other user" and make "Log out", on logon screen the 'active' one is "Other User". I wish that after every log out/reboot/start the active one is my default user. Is it possible to set default user on login screen? Thx for help in advance.



Regards,
A










share|improve this question























  • I'm not sure I understand what you're trying to do. Do you want to automatically login as a user? You can do that by setting up automatic login. OR you want that every time you logout, you want the login screen to display only your user account? If that's what you want, why not just remove the other user accounts and set a single user account?

    – Peachy
    Jul 4 '12 at 8:13











  • Possible duplicate of How can I change the default user shown in the login screen?

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Jan 28 '16 at 13:11














2












2








2


1






On login screen i have two options: my default user (let's say User1) and "Other User". When i work as "Other user" and make "Log out", on logon screen the 'active' one is "Other User". I wish that after every log out/reboot/start the active one is my default user. Is it possible to set default user on login screen? Thx for help in advance.



Regards,
A










share|improve this question














On login screen i have two options: my default user (let's say User1) and "Other User". When i work as "Other user" and make "Log out", on logon screen the 'active' one is "Other User". I wish that after every log out/reboot/start the active one is my default user. Is it possible to set default user on login screen? Thx for help in advance.



Regards,
A







12.04 login login-screen users






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 28 '12 at 12:31









Bey84Bey84

1112




1112













  • I'm not sure I understand what you're trying to do. Do you want to automatically login as a user? You can do that by setting up automatic login. OR you want that every time you logout, you want the login screen to display only your user account? If that's what you want, why not just remove the other user accounts and set a single user account?

    – Peachy
    Jul 4 '12 at 8:13











  • Possible duplicate of How can I change the default user shown in the login screen?

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Jan 28 '16 at 13:11



















  • I'm not sure I understand what you're trying to do. Do you want to automatically login as a user? You can do that by setting up automatic login. OR you want that every time you logout, you want the login screen to display only your user account? If that's what you want, why not just remove the other user accounts and set a single user account?

    – Peachy
    Jul 4 '12 at 8:13











  • Possible duplicate of How can I change the default user shown in the login screen?

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Jan 28 '16 at 13:11

















I'm not sure I understand what you're trying to do. Do you want to automatically login as a user? You can do that by setting up automatic login. OR you want that every time you logout, you want the login screen to display only your user account? If that's what you want, why not just remove the other user accounts and set a single user account?

– Peachy
Jul 4 '12 at 8:13





I'm not sure I understand what you're trying to do. Do you want to automatically login as a user? You can do that by setting up automatic login. OR you want that every time you logout, you want the login screen to display only your user account? If that's what you want, why not just remove the other user accounts and set a single user account?

– Peachy
Jul 4 '12 at 8:13













Possible duplicate of How can I change the default user shown in the login screen?

– Ciro Santilli 新疆改造中心 六四事件 法轮功
Jan 28 '16 at 13:11





Possible duplicate of How can I change the default user shown in the login screen?

– Ciro Santilli 新疆改造中心 六四事件 法轮功
Jan 28 '16 at 13:11










1 Answer
1






active

oldest

votes


















0














Seems like you posted this on Ubuntu forums too... I am not sure whether there's a proper solution to this question. One thing is obvious that we have to mess with lightdm configuration files in /etc/lightdm to get this done, at least to some extent.



I have tried messing with users.conf file, but so far I had no luck in doing it. I tried it with Guest, but may be you could have some luck in case of other users, especially if this user you want to have as default has more permissions and access than others.



What I did was this:



This is the how my original users.conf file looked like:



# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then #LightDMwill
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserAccounts]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin


I tried changing it to something like this:



# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
[UserAccounts]
uid < 1001
IncludeAll = true
Include = myuserhere
hidden-users=guest Guest


The UID for my account was 1000, so I used 1001 over there...



You can use



id


command to check your own uid and may be you can set the settings in the file like this too:



uid=1000


I am not sure whether this would work or not.



However, the above configuration didn't work. I think we have to tweak something little more over there to get what you want. Please look at this question to get some idea how to configure these files: How can I change the default user shown in the login screen?



The above question is about gdm and not lightdm, but the settings must be pretty much similar. So, you are on your own after that. Refer to this manual before you change them: http://people.ubuntu.com/~robert-ancell/lightdm/reference/



Also, make sure you take a backup of those conf files, because messing with lightdm sometimes kills your time better than anything else. Make sure you change to CLI using Alt + F2/F1 etc. and restore your backup if you break the whole thing.



Good luck!






share|improve this answer

























    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/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%2faskubuntu.com%2fquestions%2f157133%2flogin-screen-set-default-user%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









    0














    Seems like you posted this on Ubuntu forums too... I am not sure whether there's a proper solution to this question. One thing is obvious that we have to mess with lightdm configuration files in /etc/lightdm to get this done, at least to some extent.



    I have tried messing with users.conf file, but so far I had no luck in doing it. I tried it with Guest, but may be you could have some luck in case of other users, especially if this user you want to have as default has more permissions and access than others.



    What I did was this:



    This is the how my original users.conf file looked like:



    # User accounts configuration
    #
    # NOTE: If you have AccountsService installed on your system, then #LightDMwill
    # use this instead and these settings will be ignored
    #
    # minimum-uid = Minimum UID required to be shown in greeter
    # hidden-users = Users that are not shown to the user
    # hidden-shells = Shells that indicate a user cannot login
    #
    [UserAccounts]
    minimum-uid=500
    hidden-users=nobody nobody4 noaccess
    hidden-shells=/bin/false /usr/sbin/nologin


    I tried changing it to something like this:



    # User accounts configuration
    #
    # NOTE: If you have AccountsService installed on your system, then LightDM will
    # use this instead and these settings will be ignored
    #
    # minimum-uid = Minimum UID required to be shown in greeter
    # hidden-users = Users that are not shown to the user
    # hidden-shells = Shells that indicate a user cannot login
    [UserAccounts]
    uid < 1001
    IncludeAll = true
    Include = myuserhere
    hidden-users=guest Guest


    The UID for my account was 1000, so I used 1001 over there...



    You can use



    id


    command to check your own uid and may be you can set the settings in the file like this too:



    uid=1000


    I am not sure whether this would work or not.



    However, the above configuration didn't work. I think we have to tweak something little more over there to get what you want. Please look at this question to get some idea how to configure these files: How can I change the default user shown in the login screen?



    The above question is about gdm and not lightdm, but the settings must be pretty much similar. So, you are on your own after that. Refer to this manual before you change them: http://people.ubuntu.com/~robert-ancell/lightdm/reference/



    Also, make sure you take a backup of those conf files, because messing with lightdm sometimes kills your time better than anything else. Make sure you change to CLI using Alt + F2/F1 etc. and restore your backup if you break the whole thing.



    Good luck!






    share|improve this answer






























      0














      Seems like you posted this on Ubuntu forums too... I am not sure whether there's a proper solution to this question. One thing is obvious that we have to mess with lightdm configuration files in /etc/lightdm to get this done, at least to some extent.



      I have tried messing with users.conf file, but so far I had no luck in doing it. I tried it with Guest, but may be you could have some luck in case of other users, especially if this user you want to have as default has more permissions and access than others.



      What I did was this:



      This is the how my original users.conf file looked like:



      # User accounts configuration
      #
      # NOTE: If you have AccountsService installed on your system, then #LightDMwill
      # use this instead and these settings will be ignored
      #
      # minimum-uid = Minimum UID required to be shown in greeter
      # hidden-users = Users that are not shown to the user
      # hidden-shells = Shells that indicate a user cannot login
      #
      [UserAccounts]
      minimum-uid=500
      hidden-users=nobody nobody4 noaccess
      hidden-shells=/bin/false /usr/sbin/nologin


      I tried changing it to something like this:



      # User accounts configuration
      #
      # NOTE: If you have AccountsService installed on your system, then LightDM will
      # use this instead and these settings will be ignored
      #
      # minimum-uid = Minimum UID required to be shown in greeter
      # hidden-users = Users that are not shown to the user
      # hidden-shells = Shells that indicate a user cannot login
      [UserAccounts]
      uid < 1001
      IncludeAll = true
      Include = myuserhere
      hidden-users=guest Guest


      The UID for my account was 1000, so I used 1001 over there...



      You can use



      id


      command to check your own uid and may be you can set the settings in the file like this too:



      uid=1000


      I am not sure whether this would work or not.



      However, the above configuration didn't work. I think we have to tweak something little more over there to get what you want. Please look at this question to get some idea how to configure these files: How can I change the default user shown in the login screen?



      The above question is about gdm and not lightdm, but the settings must be pretty much similar. So, you are on your own after that. Refer to this manual before you change them: http://people.ubuntu.com/~robert-ancell/lightdm/reference/



      Also, make sure you take a backup of those conf files, because messing with lightdm sometimes kills your time better than anything else. Make sure you change to CLI using Alt + F2/F1 etc. and restore your backup if you break the whole thing.



      Good luck!






      share|improve this answer




























        0












        0








        0







        Seems like you posted this on Ubuntu forums too... I am not sure whether there's a proper solution to this question. One thing is obvious that we have to mess with lightdm configuration files in /etc/lightdm to get this done, at least to some extent.



        I have tried messing with users.conf file, but so far I had no luck in doing it. I tried it with Guest, but may be you could have some luck in case of other users, especially if this user you want to have as default has more permissions and access than others.



        What I did was this:



        This is the how my original users.conf file looked like:



        # User accounts configuration
        #
        # NOTE: If you have AccountsService installed on your system, then #LightDMwill
        # use this instead and these settings will be ignored
        #
        # minimum-uid = Minimum UID required to be shown in greeter
        # hidden-users = Users that are not shown to the user
        # hidden-shells = Shells that indicate a user cannot login
        #
        [UserAccounts]
        minimum-uid=500
        hidden-users=nobody nobody4 noaccess
        hidden-shells=/bin/false /usr/sbin/nologin


        I tried changing it to something like this:



        # User accounts configuration
        #
        # NOTE: If you have AccountsService installed on your system, then LightDM will
        # use this instead and these settings will be ignored
        #
        # minimum-uid = Minimum UID required to be shown in greeter
        # hidden-users = Users that are not shown to the user
        # hidden-shells = Shells that indicate a user cannot login
        [UserAccounts]
        uid < 1001
        IncludeAll = true
        Include = myuserhere
        hidden-users=guest Guest


        The UID for my account was 1000, so I used 1001 over there...



        You can use



        id


        command to check your own uid and may be you can set the settings in the file like this too:



        uid=1000


        I am not sure whether this would work or not.



        However, the above configuration didn't work. I think we have to tweak something little more over there to get what you want. Please look at this question to get some idea how to configure these files: How can I change the default user shown in the login screen?



        The above question is about gdm and not lightdm, but the settings must be pretty much similar. So, you are on your own after that. Refer to this manual before you change them: http://people.ubuntu.com/~robert-ancell/lightdm/reference/



        Also, make sure you take a backup of those conf files, because messing with lightdm sometimes kills your time better than anything else. Make sure you change to CLI using Alt + F2/F1 etc. and restore your backup if you break the whole thing.



        Good luck!






        share|improve this answer















        Seems like you posted this on Ubuntu forums too... I am not sure whether there's a proper solution to this question. One thing is obvious that we have to mess with lightdm configuration files in /etc/lightdm to get this done, at least to some extent.



        I have tried messing with users.conf file, but so far I had no luck in doing it. I tried it with Guest, but may be you could have some luck in case of other users, especially if this user you want to have as default has more permissions and access than others.



        What I did was this:



        This is the how my original users.conf file looked like:



        # User accounts configuration
        #
        # NOTE: If you have AccountsService installed on your system, then #LightDMwill
        # use this instead and these settings will be ignored
        #
        # minimum-uid = Minimum UID required to be shown in greeter
        # hidden-users = Users that are not shown to the user
        # hidden-shells = Shells that indicate a user cannot login
        #
        [UserAccounts]
        minimum-uid=500
        hidden-users=nobody nobody4 noaccess
        hidden-shells=/bin/false /usr/sbin/nologin


        I tried changing it to something like this:



        # User accounts configuration
        #
        # NOTE: If you have AccountsService installed on your system, then LightDM will
        # use this instead and these settings will be ignored
        #
        # minimum-uid = Minimum UID required to be shown in greeter
        # hidden-users = Users that are not shown to the user
        # hidden-shells = Shells that indicate a user cannot login
        [UserAccounts]
        uid < 1001
        IncludeAll = true
        Include = myuserhere
        hidden-users=guest Guest


        The UID for my account was 1000, so I used 1001 over there...



        You can use



        id


        command to check your own uid and may be you can set the settings in the file like this too:



        uid=1000


        I am not sure whether this would work or not.



        However, the above configuration didn't work. I think we have to tweak something little more over there to get what you want. Please look at this question to get some idea how to configure these files: How can I change the default user shown in the login screen?



        The above question is about gdm and not lightdm, but the settings must be pretty much similar. So, you are on your own after that. Refer to this manual before you change them: http://people.ubuntu.com/~robert-ancell/lightdm/reference/



        Also, make sure you take a backup of those conf files, because messing with lightdm sometimes kills your time better than anything else. Make sure you change to CLI using Alt + F2/F1 etc. and restore your backup if you break the whole thing.



        Good luck!







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 13 '17 at 12:25









        Community

        1




        1










        answered Jul 4 '12 at 14:41









        Forbidden OverseerForbidden Overseer

        1,42841727




        1,42841727






























            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%2f157133%2flogin-screen-set-default-user%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕