Creating-user-accounts

From BCCD 3.0

(Difference between revisions)
Jump to: navigation, search
m
m
Line 5: Line 5:
<ol>
<ol>
   <li>Become the root user:<br/>
   <li>Become the root user:<br/>
-
     <span style="font: 18px Lucida Console;">
+
     <span style="font: 16px Lucida Console;">
       <span style="background-color: lightgreen;">$&nbsp;</span><!--
       <span style="background-color: lightgreen;">$&nbsp;</span><!--
       --><span>sudo</span><!--
       --><span>sudo</span><!--
Line 18: Line 18:
   </li><br/>
   </li><br/>
   <li>Create the user (replace <span style="font: 12px Lucida Console; background-color: yellow;">billybob</span> with the username you want):<br/>
   <li>Create the user (replace <span style="font: 12px Lucida Console; background-color: yellow;">billybob</span> with the username you want):<br/>
-
     <span style="font: 18px Lucida Console;">
+
     <span style="font: 16px Lucida Console;">
       <span style="background-color: lightgreen;">#&nbsp;</span><!--
       <span style="background-color: lightgreen;">#&nbsp;</span><!--
       --><span>adduser</span><!--
       --><span>adduser</span><!--
Line 27: Line 27:
   </li><br/>
   </li><br/>
   <li>Become the user so you can set up SSH keys (replace <span style="font: 12px Lucida Console; background-color: yellow;">billybob</span> with the username):<br/>
   <li>Become the user so you can set up SSH keys (replace <span style="font: 12px Lucida Console; background-color: yellow;">billybob</span> with the username):<br/>
-
     <span style="font: 18px Lucida Console;">
+
     <span style="font: 16px Lucida Console;">
       <span style="background-color: lightgreen;">#&nbsp;</span><!--
       <span style="background-color: lightgreen;">#&nbsp;</span><!--
       --><span>su</span><!--
       --><span>su</span><!--
Line 38: Line 38:
   </li><br/>
   </li><br/>
   <li>Set up the SSH keys:<br/>
   <li>Set up the SSH keys:<br/>
-
     <span style="font: 18px Lucida Console;">
+
     <span style="font: 16px Lucida Console;">
       <span style="background-color: lightgreen;">$&nbsp;</span><!--
       <span style="background-color: lightgreen;">$&nbsp;</span><!--
       --><span>ssh-keygen</span><!--
       --><span>ssh-keygen</span><!--
Line 60: Line 60:
   </li><br/>
   </li><br/>
   <li>Stop being the user:<br/>
   <li>Stop being the user:<br/>
-
     <span style="font: 18px Lucida Console;">
+
     <span style="font: 16px Lucida Console;">
       <span style="background-color: lightgreen;">$&nbsp;</span><!--
       <span style="background-color: lightgreen;">$&nbsp;</span><!--
       --><span>exit</span><!--
       --><span>exit</span><!--
Line 69: Line 69:
If you don't want the user to have the contents of <span style="font: 12px Lucida Console;">/etc/skel</span>, you can remove them with this command (replace <span style="font: 12px Lucida Console; background-color: yellow;">billybob</span> with the username):<br/>
If you don't want the user to have the contents of <span style="font: 12px Lucida Console;">/etc/skel</span>, you can remove them with this command (replace <span style="font: 12px Lucida Console; background-color: yellow;">billybob</span> with the username):<br/>
-
<span style="font: 18px Lucida Console;"><!--
+
<span style="font: 16px Lucida Console;"><!--
   --><span style="background-color: lightgreen;">$&nbsp;</span><!--
   --><span style="background-color: lightgreen;">$&nbsp;</span><!--
   --><span>rm</span><!--
   --><span>rm</span><!--

Revision as of 17:03, 6 July 2018

This page assumes you have a liberated version of the BCCD, say on a LittleFe unit.

When you create accounts under Linux, the contents of /etc/skel are copied into the new account by default; the BCCD works the same way. The bccd user is created this way, so by default when you create new accounts on the BCCD, those usernames also have the contents of /etc/skel copied to their new home directory. This can be a feature or a bug depending on your perspective. The instructions below describe how to work around that behavior if necessary. Placing the user in the "video" group allows use of /dev/nvidia* devices for CUDA. Use only lowercase letters in the username.

  1. Become the root user:
    sudo su - root<ENTER>

  2. Create the user (replace billybob with the username you want):
    adduser billybob<ENTER>

  3. Become the user so you can set up SSH keys (replace billybob with the username):
    su - billybob<ENTER>

  4. Set up the SSH keys:
    ssh-keygen<ENTER>
    <ENTER>
    <ENTER>
    <ENTER>
    cd .ssh<ENTER>
    cp id_rsa.pub authorized_keys<ENTER>

  5. Stop being the user:
    exit<ENTER>

If you don't want the user to have the contents of /etc/skel, you can remove them with this command (replace billybob with the username):
rm -rf ~billybob/*<ENTER>

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox