Erinevus lehekülje "Kasutajate faili näidis" redaktsioonide vahel

Allikas: Teadmusbaas
6. rida: 6. rida:
 
Näide Excel tabelist, millest saab luua .csv faili
 
Näide Excel tabelist, millest saab luua .csv faili
  
username password       UID GID directory       shell
+
<table border=0 cellpadding=2 cellspacing=0>
 +
        <tr align=left><td></td>
 +
        <td colspan=2 align=center><b>Tabel 1. csv faili näidis</b><hr noshade size=1></td></tr>       
 +
<tr bgcolor=#75a3a3 align=left valign=bottom>
 +
        <th>username</th>
 +
        <th>password</th>
 +
        <th>UID</th>
 +
        <th>GID</th>
 +
        <th>andmed</th>
 +
        <th>directory</th>
 +
        <th>shell</th></tr>       
 +
<tr bgcolor=#d0f0c8>
 +
        <td>juku</td>
 +
        <td>Parool1</td>
 +
        <td>1005</td>
 +
        <td>1003</td>
 +
        <td>'</td>
 +
        <td>/home/juku</td>
 +
        <td>/bin/bash</td></tr>       
 +
<tr>
 +
        <td>ants</td>
 +
        <td>Parool2</td>
 +
        <td>1006</td>
 +
        <td>1003</td>
 +
        <td>'</td>
 +
        <td>/home/ants</td>
 +
        <td>/bin/sh</td></tr>
 +
 
 +
<tr bgcolor=#d0f0c8>
 +
        <td>elmar</td>
 +
        <td>Parool3</td>
 +
        <td>1007</td>
 +
        <td>1003</td>
 +
        <td>'</td>
 +
        <td>/home/elmar</td>
 +
        <td>/bin/sh</td></tr>
 +
<tr>
 +
        <td>uku</td>
 +
        <td>Parool4</td>
 +
        <td>1008</td>
 +
        <td>1003</td>
 +
        <td>'</td>
 +
        <td>/home/uku</td>
 +
        <td>/bin/sh</td></tr>
 +
<tr bgcolor=#d0f0c8>
 +
        <td>lembit</td>
 +
        <td>Parool5</td>
 +
        <td>1009</td>
 +
        <td>1003</td>
 +
        <td>'</td>
 +
        <td>/home/lembit</td>
 +
        <td>/bin/bash</td></tr>
 +
</table>
 
 
juku Parool1 1005 1003 /home/juku /bin/sh
 
 
ants Parool2 1006 1003 /home/ants      /bin/sh
 
 
 
elmar Parool3 1007 1003 /home/elmar    /bin/sh
 
elmar Parool3 1007 1003 /home/elmar    /bin/sh
  

Redaktsioon: 5. oktoober 2018, kell 09:16

Linux kasutajaprofiili osad on: username:passwd:UID:GID:full name,room number,work phone,home phone,other:directory:shell

Kasutajate lisamiseks hulgiti saab kasutada .csv faili, kui eraldaja asendada kooloniga

Näide Excel tabelist, millest saab luua .csv faili

Tabel 1. csv faili näidis
username password UID GID andmed directory shell
juku Parool1 1005 1003 ' /home/juku /bin/bash
ants Parool2 1006 1003 ' /home/ants /bin/sh
elmar Parool3 1007 1003 ' /home/elmar /bin/sh
uku Parool4 1008 1003 ' /home/uku /bin/sh
lembit Parool5 1009 1003 ' /home/lembit /bin/bash

elmar Parool3 1007 1003 /home/elmar /bin/sh

uku Parool4 1008 1003 /home/uku /bin/sh

lembit Parool5 1009 1003 /home/lembit /bin/sh