<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=80.192.240.151</id>
	<title>CBLFS - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=80.192.240.151"/>
	<link rel="alternate" type="text/html" href="https://cblfs.nicewhileitlasted.com/Special:Contributions/80.192.240.151"/>
	<updated>2026-05-21T01:43:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=Configuring_for_Adding_Users&amp;diff=6685</id>
		<title>Configuring for Adding Users</title>
		<link rel="alternate" type="text/html" href="?title=Configuring_for_Adding_Users&amp;diff=6685"/>
		<updated>2007-01-06T15:05:19Z</updated>

		<summary type="html">&lt;p&gt;80.192.240.151: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This will make sure each user is set up appropriately with the correct group memberships, as well as copy the appropriate template of files from /etc/skel to each new user&#039;s home directory.&lt;br /&gt;
&lt;br /&gt;
Create a base &#039;&#039;&#039;/etc/default/useradd&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/default/useradd &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 GROUP=100&lt;br /&gt;
 HOME=/home&lt;br /&gt;
 INACTIVE=-1&lt;br /&gt;
 EXPIRE=&lt;br /&gt;
 SHELL=&lt;br /&gt;
 SKEL=/etc/skel&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
Add the default group that new users will become automatic members of:&lt;br /&gt;
&lt;br /&gt;
 groupadd -g 100 users&lt;br /&gt;
&lt;br /&gt;
Complete the EXPIRE and SHELL entries of &#039;&#039;&#039;/etc/default/useradd&#039;&#039;&#039; based on the current environment:&lt;br /&gt;
&lt;br /&gt;
 /usr/sbin/useradd -D -s/bin/bash&lt;br /&gt;
&lt;br /&gt;
Create the &#039;&#039;&#039;/etc/skel&#039;&#039;&#039; directory:&lt;br /&gt;
&lt;br /&gt;
 mkdir /etc/skel&lt;br /&gt;
&lt;br /&gt;
Copy any personal settings you want to be applied upon user creation in this directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create the adduser script and give it executable permissions:&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /usr/sbin/adduser &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 useradd -m $1&lt;br /&gt;
 passwd $1&lt;br /&gt;
 gpasswd -a $1 users&lt;br /&gt;
 gpasswd -a $1 audio&lt;br /&gt;
 EOF&lt;br /&gt;
 chmod +x /usr/sbin/adduser&lt;br /&gt;
&lt;br /&gt;
Note: The above script adds new users to the &#039;&#039;&#039;users&#039;&#039;&#039; and &#039;&#039;&#039;audio&#039;&#039;&#039; groups.  If you are in a hardened security environment, simply omit creating the script at all.&lt;/div&gt;</summary>
		<author><name>80.192.240.151</name></author>
	</entry>
</feed>