How to divide Home Directory per user

Kreki

Cadet
Joined
Mar 31, 2021
Messages
5
<div class="bbWrapper">Hi Everyone,<br /> <br /> I set home directory while I create new user.<br /> I noticed that all users files are saved on that Home folder.<br /> <br /> How can I create that so for every user creation to have sub folder for that user under home folder?<br /> <br /> Thank you</div>
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
<div class="bbWrapper">Your message doesn't make a lot of sense. <br /> <br /> <blockquote data-attributes="member: 108125" data-quote="Kreki" data-source="post: 722963" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> <a href="/community/goto/post?id=722963" class="bbCodeBlock-sourceJump" rel="nofollow" data-xf-click="attribution" data-content-selector="#post-722963">Kreki said:</a> </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> I noticed that all users files are saved on that Home folder. </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote><br /> In the UNIX model, a home directory is the root of where a user's files are stored. It is an error to say &quot;all users files&quot; are stored there; you can have subdirectories, for example.<br /> <br /> <blockquote data-attributes="member: 108125" data-quote="Kreki" data-source="post: 722963" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> <a href="/community/goto/post?id=722963" class="bbCodeBlock-sourceJump" rel="nofollow" data-xf-click="attribution" data-content-selector="#post-722963">Kreki said:</a> </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> How can I create that so for every user creation to have sub folder for that user under home folder? </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote><br /> What are you trying to accomplish? For example, it could be that the answer is instead of specifying /mnt/yourpool/users/youruser for a home directory, specify /mnt/yourpool/users/youruser/subfolder<br /> <br /> This really depends on why you want to do this and what you think it will accomplish for you.</div>
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
<div class="bbWrapper"><div class="bbCodeBlock bbCodeBlock--unfurl is-pending is-recrawl js-unfurl fauxBlockLink" data-unfurl="true" data-result-id="24369" data-url="https://www.truenas.com/docs/core/coretutorials/sharing/smb/homeshare/" data-host="www.truenas.com" data-pending="true"> <div class="contentRow"> <div class="contentRow-figure contentRow-figure--fixedSmall js-unfurl-figure"> <img src="https://www.truenas.com/docs/images/open-enterprise-storage--logo-full-color-rgb-large.png" alt="www.truenas.com" data-onerror="hide-parent"/> </div> <div class="contentRow-main"> <h3 class="contentRow-header js-unfurl-title"> <a href="https://www.truenas.com/docs/core/coretutorials/sharing/smb/homeshare/" class="link link--internal fauxBlockLink-blockLink" target="" rel="" data-proxy-href=""> Home Shares </a> </h3> <div class="contentRow-snippet js-unfurl-desc">Describes how to configure a Home Share on TrueNAS CORE.</div> <div class="contentRow-minor contentRow-minor--hideLinks"> <span class="js-unfurl-favicon"> <img src="https://www.truenas.com/docs/core/coretutorials/sharing/smb/homeshare/" alt="www.truenas.com" class="bbCodeBlockUnfurl-icon" data-onerror="hide-parent"/> </span> www.truenas.com </div> </div> </div> </div></div>
 
Top