[SOLVED] Change username in Live USB

Forum Forums General Software [SOLVED] Change username in Live USB

Tagged: ,

  • This topic has 23 replies, 4 voices, and was last updated Nov 22-6:58 am by olsztyn.
Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #29576
    Member
    Girafenaine
      Helpful
      Up
      0
      ::

      Hello,

      As I told you I modified live USB username from demo to my_user_name, thanks to the user manager app.

      When I remasterize with “General” option, the booting process asks to give a password for root, then a password for demo, as for a first USB live set up. my_user_name had disappear, so my docs.

      Having read your last message, I tried again a remaster with “Personal” option, and now it’s all right I could reboot without any problem and the main user is still my_user_name.

      So it seems that your last guess is right – congrats 🙂

      I don’t know why this cryptic “General/Personal” option makes a difference about user management, but actually it does. It could be interesting :
      – to know why remaster tool behaves this way
      – to add a few lines in wiki or FAQ to explain how to change main user name on a Live USB. If you told me how to do that, I could write it. It would be something like : 1. Use user manager app to change the name. 2. Remaster with Personal option.

      Girafenaine

      Girafenaine
      ----
      Antix 19 - Fluxbox - Live USB stick and frugal / MX 19 - Fluxbox - Dell XPS 7590

      #29582
      Member
      olsztyn
        Helpful
        Up
        0
        ::

        I don’t know why this cryptic “General/Personal” option makes a difference about user management, but actually it does.

        My understanding was that Personal option retains all user settings, such as browser cookies, etc., while General prepares a generic instance for distribution, where each user can customize his own personal settings afterwards. I was always remastering with Personal so never encountered this issue it seems.
        However, after demo user has been deleted it should not ask for demo password anymore it seems when using General…

        Live antiX Boot Options (Previously posted by Xecure):
        https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

        #29584
        Member
        olsztyn
          Helpful
          Up
          0
          ::

          Edited /etc/slim.conf and /usr/local/share/live-files/general-files/etc/slim.conf- commented auto_login and default_user

          Question: Why this conf file needs to be manually edited in antiX 19? I think I remember that in antiX 17 all that needed to be done was setting ‘no autologin’ in user management to enforce log-in screen upon boot. Unless my memory of antiX 17 faded away after antiX 19 replaced it in my instances, I remember login screen was presented with black and white version of train station with personal username, waiting for password to be provided. That log-in screen was actually aesthetically nicer to me than the new log-in screen, but this is beside the point… I do not remember the need to manually edit conf file in antiX 17 to turn off autologin…
          Was such change intended?
          Later edit after additional testing:
          Now that I am setting up this functionality in antiX 19, what worked perfectly for me in antiX 17 and anti provided the best example, I am not sure it works as flawlessly in antiX 19 after all…
          For some reason even after manual editing conf files it seems demo autologin stubbornly persists in antiX 19. I could be still missing something so I am trying to figure this out. Pehaps it has something to do with what skidoo made us aware that ‘demo’ is hardcoded in some other places, which may be the cause…

          • This reply was modified 3 years, 5 months ago by olsztyn.

          Live antiX Boot Options (Previously posted by Xecure):
          https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

          #29603
          Member
          olsztyn
            Helpful
            Up
            0
            ::

            For some reason even after manual editing conf files it seems demo autologin stubbornly persists in antiX 19. I could be still missing something so I am trying to figure this out.

            This trouble for me cleared eventually after deleting and re-defining usernames.
            The question on why turning off autologin through options in User Management does not seem to work for me in antiX 19 and I do need to manually edit slim conf files – that still persists for me but just a minor nuisance.

            Live antiX Boot Options (Previously posted by Xecure):
            https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

            #29607
            Anonymous
              Helpful
              Up
              0
              ::

              “why turning off autologin through options in User Management does not seem to work for me in antiX 19”

              you have discovered a BUG !

              https://gitlab.com/antiX-Linux/antix-user/blob/master/mainwindow.cpp#L234
              The user-manager utility was written for MX Linux.
              The version pre-installed in antiX19 is hardcoded to modify lightdm.conf (not slim.conf)

              For the autologin toggle to work correctly, the program will need to be modified.

              #29608
              Anonymous
                Helpful
                Up
                0
                ::

                I think I remember that in antiX 17 all that needed to be done was setting ‘no autologin’ in user management to enforce log-in screen upon boot.

                v— yep, but antix17 had provided a different, less featureful, user management gui utility

                .

                #29610
                Anonymous
                  Helpful
                  Up
                  0
                  ::

                  “my_user_name had disappear”
                  _IF_ you are referring to the SLiM login screen, that detail will eventually be solved by the user-manager bugfix.

                  I remastered with “General” option, the booting process asks to give a password for root, then a password for demo, as for a first USB live set up.

                  Subsequesnt to a GENERAL remaster, that is the intended outcome (is not a bug).
                  I do understand that you wish the livesystem did not have a user named “demo”.

                  after demo user has been deleted, it should not ask for demo password anymore it seems when using General…

                  Regardless what accounts you may have added or deleted or edited… the remaster “General” option is desinged to clear all login accounts (and to withhold from the remastered copy the content of any pre-existing /home/ subdirectories) and to re-create the “demo” + “root” login accounts. The reason a “General” option exists is to achieve that outcome.

                  The solution, it seems:
                  Wait for the user-manager autologin bugfix, and/or choose “Personal” remaster.

                  It could be interesting :
                  – to add a few lines in wiki or FAQ to explain how to change main user name on a Live USB. If you told me how to do that, I could write it. It would be something like : 1. Use user manager app to change the name. 2. Remaster with Personal option.

                  I’ll agree that the existing documentation is too sparse and that the wording may even be unclear.
                  http://download.tuxfamily.org/antix/docs-antiX-19/FAQ/remaster.html
                  Personal uses your personal settings.
                  General does not.
                  (PRESERVES or RETAINS would be more clear than “uses”)

                  and
                  “Do you want save files under /home in the new remaster?”
                  ^—v
                  ummm, no, I was sorta thinkin’ it would be great to store those files, instead, under /old_files/todays_datetime/
                  ???

                  It’s a confusingly too-flexible mechanism; we’re presented with many choices.
                  {headscratch} Whadda? I already chose YES, personal, but it is still (now, as a separate step) asking whether I _also_ wish to preserve my documents? Why/when would it ever be useful to do one without the other??? (idunno, but through the years someone probably requested that additional flexibillity). Zzzzz, rambling, thinking aloud here: If the default umask prevented users from viewing the content of others’ home directories (under the default antiX configuration, it is not so), that extra choice might still be an important (space-saving?) consideration…

                  #29619
                  Member
                  olsztyn
                    Helpful
                    Up
                    0
                    ::

                    “why turning off autologin through options in User Management does not seem to work for me in antiX 19”

                    you have discovered a BUG !

                    https://gitlab.com/antiX-Linux/antix-user/blob/master/mainwindow.cpp#L234
                    The user-manager utility was written for MX Linux.
                    The version pre-installed in antiX19 is hardcoded to modify lightdm.conf (not slim.conf)

                    For the autologin toggle to work correctly, the program will need to be modified.

                    Thanks for the info skidoo…
                    In the interim manual editing of slim.conf files as suggested by anti is a good workaround.
                    Thanks and Regards.

                    Live antiX Boot Options (Previously posted by Xecure):
                    https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

                  Viewing 8 posts - 16 through 23 (of 23 total)
                  • You must be logged in to reply to this topic.