<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=4988&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] /home/newuser do not match the umask]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4988</link>
		<description><![CDATA[The most recent posts in [SOLVED] /home/newuser do not match the umask.]]></description>
		<lastBuildDate>Mon, 18 Apr 2022 06:36:01 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] /home/newuser do not match the umask]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=35662#p35662</link>
			<description><![CDATA[<p>Hoo I didn&#039;t know for <span class="bbc">the ACLs and extended attributes are copied.</span></p><p>I just modified the attributes of the files within the SKEL and indeed it works !</p><p>Thanks HOAS</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Mon, 18 Apr 2022 06:36:01 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=35662#p35662</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] /home/newuser do not match the umask]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=35638#p35638</link>
			<description><![CDATA[<p>The files with different permissions are copied from /etc/skel/:</p><div class="quotebox"><cite>useradd(8) wrote:</cite><blockquote><div><p>&#160; &#160; &#160; &#160;-k, --skel SKEL_DIR<br />&#160; &#160; &#160; &#160; &#160; &#160;The skeleton directory, which contains files and directories to be copied in the user&#039;s home<br />&#160; &#160; &#160; &#160; &#160; &#160;directory, when the home directory is created by useradd.</p><p>&#160; &#160; &#160; &#160; &#160; &#160;This option is only valid if the -m (or --create-home) option is specified.</p><p>&#160; &#160; &#160; &#160; &#160; &#160;If this option is not set, the skeleton directory is defined by the SKEL variable in<br />&#160; &#160; &#160; &#160; &#160; &#160;/etc/default/useradd or, by default, /etc/skel.</p><p>&#160; &#160; &#160; &#160; &#160; &#160;<span class="bbu">If possible, the ACLs and extended attributes are copied.</span></p></div></blockquote></div><p>(Added emphasis.)</p><div class="quotebox"><cite>SpongeBOB wrote:</cite><blockquote><div><p>SSo what is the &quot;order of authority&quot; with UMASK ?</p></div></blockquote></div><p>The file that applies <span class="bbc">umask</span> last will &quot;win&quot; so that would be ~/.profile but note that file is not read if LightDM is used to log in.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 17 Apr 2022 10:09:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=35638#p35638</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] /home/newuser do not match the umask]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=35636#p35636</link>
			<description><![CDATA[<p>Indeed /home/john directory is 750 when changing the UMASK in /etc/login.defs</p><p>but some of the 4 defaults files (before user login) are not as intended (in bold)</p><p><strong>644 .bash_logout</strong><br /><strong>644 .bashrc</strong><br />750 .config (dir)<br /><strong>644 .profile</strong></p><p>640 .config/autostart/oneshot.desktop</p><p>Any ideas ?</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Sun, 17 Apr 2022 06:12:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=35636#p35636</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] /home/newuser do not match the umask]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=35635#p35635</link>
			<description><![CDATA[<p>Thanks HOAS !</p><p>So what is the &quot;order of authority&quot; with UMASK ?</p><ul><li><p>/etc/login.defs</p></li><li><p>~/.profile</p></li><li><p>/etc/profile</p></li><li><p>/etc/pam.d/</p></li></ul>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Sun, 17 Apr 2022 05:27:51 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=35635#p35635</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] /home/newuser do not match the umask]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=35619#p35619</link>
			<description><![CDATA[<p>Edit /etc/login.defs instead, UMASK is set there. See <a href="https://manpages.debian.org/bullseye/login/login.defs.5.en.html" rel="nofollow">login.defs(5)</a> &amp; <a href="https://manpages.debian.org/bullseye/passwd/useradd.8.en.html" rel="nofollow">useradd(8)</a> for more on this.</p><p>Note that the umask setting in /etc/pam.d/ can be over-ridden by (for example) /etc/profile &amp; ~/.profile.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 16 Apr 2022 08:42:53 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=35619#p35619</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] /home/newuser do not match the umask]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=35615#p35615</link>
			<description><![CDATA[<p>Hi everyone,</p><p>On my loved Devuan (chimaera) my umask is set a 027</p><p>Trough </p><div class="quotebox"><cite>/etc/pam.d/common-session wrote:</cite><blockquote><div><p>session optional pam_umask.so umask=027</p></div></blockquote></div><p>So every new files is 640 (As attended)</p><p>What is weird when I do a&#160; <span class="bbc">useradd -m -c &quot;John doe&quot; John</span></p><p>I&#039;ve got 755 on /home/John</p><p>Why <span class="bbc">useradd</span> doesn&#039;t apply the <span class="bbc">umask</span> ?</p><p>When the user login all the newly created sub folders such as /home/john/Desktop are 640</p><p>any ideas ?</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Sat, 16 Apr 2022 06:38:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=35615#p35615</guid>
		</item>
	</channel>
</rss>
