how to create home directories for users automatically when they log in? Unicorn Meta Zoo #1:...

Suing a Police Officer Instead of the Police Department

Second order approximation of the loss function (Deep learning book, 7.33)

Is Electric Central Heating worth it if using Solar Panels?

Implementing 3DES algorithm in Java: is my code secure?

Co-worker works way more than he should

Where did Arya get these scars?

Justification for leaving new position after a short time

Why isn't everyone flabbergasted about Bran's "gift"?

Book with legacy programming code on a space ship that the main character hacks to escape

How to keep bees out of canned beverages?

What is the ongoing value of the Kanban board to the developers as opposed to management

Putting Ant-Man on house arrest

Why did Israel vote against lifting the American embargo on Cuba?

What is the best way to deal with NPC-NPC combat?

Multiple fireplaces in an apartment building?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

Is accepting an invalid credit card number a security issue?

A Paper Record is What I Hamper

Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?

What ability score does a Hexblade's Pact Weapon use for attack and damage when wielded by another character?

How long after the last departure shall the airport stay open for an emergency return?

Would reducing the reference voltage of an ADC have any effect on accuracy?

How to not starve gigantic beasts



how to create home directories for users automatically when they log in?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manaraauthconfig: command not found ubuntuHow to set up a SFTP server with users chrooted in their home directories?Setting A System For Public UseCreate a shared folder for group of usersDIR_MODE has no effect on domain-joined user profiles in /homeHow to change the default parent directory for a new users home folder?I want to create an FTP account that can oversee multiple other FTP accounts. How should I manage my permissions and users?Website, SFTP, SSH in home directory for multiple usersSetup /var/www for two groupsHow to automount network home directories in Ubuntu 14.04 upon loginHow can I count files with a particular extension, and the directories they are in?





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







1















I have come across a situation where when users are imported from other servers or created but when they were created their home directory was not created. Hence, when they log in, they do not land in their home directory, which creates a lot of other issues.



I wanted to know a simple way we can get around this situation, without affecting any other users who already have their home directories.










share|improve this question































    1















    I have come across a situation where when users are imported from other servers or created but when they were created their home directory was not created. Hence, when they log in, they do not land in their home directory, which creates a lot of other issues.



    I wanted to know a simple way we can get around this situation, without affecting any other users who already have their home directories.










    share|improve this question



























      1












      1








      1








      I have come across a situation where when users are imported from other servers or created but when they were created their home directory was not created. Hence, when they log in, they do not land in their home directory, which creates a lot of other issues.



      I wanted to know a simple way we can get around this situation, without affecting any other users who already have their home directories.










      share|improve this question
















      I have come across a situation where when users are imported from other servers or created but when they were created their home directory was not created. Hence, when they log in, they do not land in their home directory, which creates a lot of other issues.



      I wanted to know a simple way we can get around this situation, without affecting any other users who already have their home directories.







      command-line server login users home-directory






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 12 hours ago









      Victor

      6,14681831




      6,14681831










      asked Sep 1 '17 at 0:22









      HrishHrish

      1,35493354




      1,35493354






















          1 Answer
          1






          active

          oldest

          votes


















          2














          We can achieve this using below command & it will create home directory automatically when they log in, for only those users who do not have it & it also does not affect any other users who have their home directories already set. This command also works for LDAP users & normal local users.



          authconfig --enablemkhomedir --update





          share|improve this answer
























          • authconfig doesn't exist in Ubuntu Desktop (maybe in Server). Where/how do you get it? Oh... I see that you're answering your own question...

            – heynnema
            Sep 1 '17 at 1:45













          • @heynnema hey I understand that you are using 14.04 or later earlier it was there, however you can go here to find an answer to your question. askubuntu.com/questions/855737/…

            – Hrish
            Sep 1 '17 at 15:17











          • I looked at the link. It's not clear how authconfig/sssd have any relation to your original question. Authconfig isn't available to install on 17.04, and sssd deals with hashes/LDAP/etc. I'm just trying to learn from your answer. Maybe you can expand/change your answer to include installation and use.

            – heynnema
            Sep 1 '17 at 16:16











          • Actually, this site suggests editing the file /etc/pam.d/common-session for LDAP clients, at least.

            – Ray
            Oct 3 '17 at 16:56












          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%2f951778%2fhow-to-create-home-directories-for-users-automatically-when-they-log-in%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









          2














          We can achieve this using below command & it will create home directory automatically when they log in, for only those users who do not have it & it also does not affect any other users who have their home directories already set. This command also works for LDAP users & normal local users.



          authconfig --enablemkhomedir --update





          share|improve this answer
























          • authconfig doesn't exist in Ubuntu Desktop (maybe in Server). Where/how do you get it? Oh... I see that you're answering your own question...

            – heynnema
            Sep 1 '17 at 1:45













          • @heynnema hey I understand that you are using 14.04 or later earlier it was there, however you can go here to find an answer to your question. askubuntu.com/questions/855737/…

            – Hrish
            Sep 1 '17 at 15:17











          • I looked at the link. It's not clear how authconfig/sssd have any relation to your original question. Authconfig isn't available to install on 17.04, and sssd deals with hashes/LDAP/etc. I'm just trying to learn from your answer. Maybe you can expand/change your answer to include installation and use.

            – heynnema
            Sep 1 '17 at 16:16











          • Actually, this site suggests editing the file /etc/pam.d/common-session for LDAP clients, at least.

            – Ray
            Oct 3 '17 at 16:56
















          2














          We can achieve this using below command & it will create home directory automatically when they log in, for only those users who do not have it & it also does not affect any other users who have their home directories already set. This command also works for LDAP users & normal local users.



          authconfig --enablemkhomedir --update





          share|improve this answer
























          • authconfig doesn't exist in Ubuntu Desktop (maybe in Server). Where/how do you get it? Oh... I see that you're answering your own question...

            – heynnema
            Sep 1 '17 at 1:45













          • @heynnema hey I understand that you are using 14.04 or later earlier it was there, however you can go here to find an answer to your question. askubuntu.com/questions/855737/…

            – Hrish
            Sep 1 '17 at 15:17











          • I looked at the link. It's not clear how authconfig/sssd have any relation to your original question. Authconfig isn't available to install on 17.04, and sssd deals with hashes/LDAP/etc. I'm just trying to learn from your answer. Maybe you can expand/change your answer to include installation and use.

            – heynnema
            Sep 1 '17 at 16:16











          • Actually, this site suggests editing the file /etc/pam.d/common-session for LDAP clients, at least.

            – Ray
            Oct 3 '17 at 16:56














          2












          2








          2







          We can achieve this using below command & it will create home directory automatically when they log in, for only those users who do not have it & it also does not affect any other users who have their home directories already set. This command also works for LDAP users & normal local users.



          authconfig --enablemkhomedir --update





          share|improve this answer













          We can achieve this using below command & it will create home directory automatically when they log in, for only those users who do not have it & it also does not affect any other users who have their home directories already set. This command also works for LDAP users & normal local users.



          authconfig --enablemkhomedir --update






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 1 '17 at 0:24









          HrishHrish

          1,35493354




          1,35493354













          • authconfig doesn't exist in Ubuntu Desktop (maybe in Server). Where/how do you get it? Oh... I see that you're answering your own question...

            – heynnema
            Sep 1 '17 at 1:45













          • @heynnema hey I understand that you are using 14.04 or later earlier it was there, however you can go here to find an answer to your question. askubuntu.com/questions/855737/…

            – Hrish
            Sep 1 '17 at 15:17











          • I looked at the link. It's not clear how authconfig/sssd have any relation to your original question. Authconfig isn't available to install on 17.04, and sssd deals with hashes/LDAP/etc. I'm just trying to learn from your answer. Maybe you can expand/change your answer to include installation and use.

            – heynnema
            Sep 1 '17 at 16:16











          • Actually, this site suggests editing the file /etc/pam.d/common-session for LDAP clients, at least.

            – Ray
            Oct 3 '17 at 16:56



















          • authconfig doesn't exist in Ubuntu Desktop (maybe in Server). Where/how do you get it? Oh... I see that you're answering your own question...

            – heynnema
            Sep 1 '17 at 1:45













          • @heynnema hey I understand that you are using 14.04 or later earlier it was there, however you can go here to find an answer to your question. askubuntu.com/questions/855737/…

            – Hrish
            Sep 1 '17 at 15:17











          • I looked at the link. It's not clear how authconfig/sssd have any relation to your original question. Authconfig isn't available to install on 17.04, and sssd deals with hashes/LDAP/etc. I'm just trying to learn from your answer. Maybe you can expand/change your answer to include installation and use.

            – heynnema
            Sep 1 '17 at 16:16











          • Actually, this site suggests editing the file /etc/pam.d/common-session for LDAP clients, at least.

            – Ray
            Oct 3 '17 at 16:56

















          authconfig doesn't exist in Ubuntu Desktop (maybe in Server). Where/how do you get it? Oh... I see that you're answering your own question...

          – heynnema
          Sep 1 '17 at 1:45







          authconfig doesn't exist in Ubuntu Desktop (maybe in Server). Where/how do you get it? Oh... I see that you're answering your own question...

          – heynnema
          Sep 1 '17 at 1:45















          @heynnema hey I understand that you are using 14.04 or later earlier it was there, however you can go here to find an answer to your question. askubuntu.com/questions/855737/…

          – Hrish
          Sep 1 '17 at 15:17





          @heynnema hey I understand that you are using 14.04 or later earlier it was there, however you can go here to find an answer to your question. askubuntu.com/questions/855737/…

          – Hrish
          Sep 1 '17 at 15:17













          I looked at the link. It's not clear how authconfig/sssd have any relation to your original question. Authconfig isn't available to install on 17.04, and sssd deals with hashes/LDAP/etc. I'm just trying to learn from your answer. Maybe you can expand/change your answer to include installation and use.

          – heynnema
          Sep 1 '17 at 16:16





          I looked at the link. It's not clear how authconfig/sssd have any relation to your original question. Authconfig isn't available to install on 17.04, and sssd deals with hashes/LDAP/etc. I'm just trying to learn from your answer. Maybe you can expand/change your answer to include installation and use.

          – heynnema
          Sep 1 '17 at 16:16













          Actually, this site suggests editing the file /etc/pam.d/common-session for LDAP clients, at least.

          – Ray
          Oct 3 '17 at 16:56





          Actually, this site suggests editing the file /etc/pam.d/common-session for LDAP clients, at least.

          – Ray
          Oct 3 '17 at 16:56


















          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%2f951778%2fhow-to-create-home-directories-for-users-automatically-when-they-log-in%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

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...