User Tools

Site Tools


samba

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
samba [2009/11/13 07:59] 172.26.0.166samba [2009/12/07 05:23] 172.26.14.218
Line 20: Line 20:
 <code># chown -R segoliadmin:icipe /export/home/segoli/ICIPE <code># chown -R segoliadmin:icipe /export/home/segoli/ICIPE
 # chmod o-rwx,g+s /export/home/segoli/ICIPE</code> # chmod o-rwx,g+s /export/home/segoli/ICIPE</code>
- 
 ===== Add users ===== ===== Add users =====
-Add users using useradd, then edit their account information to list their group affiliation (for reference, since three years down the line we'll have too many users and have no clue who they are):+Add users in two steps: 
 +  * Unix account (using ''useradd''
 +  * Samba account (using swat or ''smbpasswd'') 
 + 
 +<note important>It is important that you add the Unix account and set the password first, or else Samba will complain!</note> 
 <code># useradd mkyalo</code> <code># useradd mkyalo</code>
 In ''/etc/passwd'', add the real name and group to the user's entry.  See before and after: In ''/etc/passwd'', add the real name and group to the user's entry.  See before and after:
Line 34: Line 38:
 # id mkyalo # id mkyalo
 uid=755(mkyalo) gid=755(mkyalo) groups=755(mkyalo),10003(iita)</code> uid=755(mkyalo) gid=755(mkyalo) groups=755(mkyalo),10003(iita)</code>
 +Set the user's Unix and Samba passwords:
 +<code># passwd mkyalo
 +# smbpasswd -a mkyalo</code>
 +
 ===== Sync users and groups ===== ===== Sync users and groups =====
 It is very important to synchronize the user and group information from the head node to the compute nodes.  Rocks has a command for this: It is very important to synchronize the user and group information from the head node to the compute nodes.  Rocks has a command for this:
 <code># rocks sync users</code> <code># rocks sync users</code>
-This will, among other things:+This will automatically:
   * Copy ''/etc/passwd'', ''/etc/shadow'' to the compute nodes   * Copy ''/etc/passwd'', ''/etc/shadow'' to the compute nodes
   * Copy ''/etc/group'', ''/etc/gshadow'' to the compute nodes   * Copy ''/etc/group'', ''/etc/gshadow'' to the compute nodes
   * Add NFS automount information to ''/etc/auto.home''   * Add NFS automount information to ''/etc/auto.home''
-This is a good thing. 
  
 ===== Set ACLs ===== ===== Set ACLs =====
samba.txt · Last modified: 2010/05/22 14:19 by 127.0.0.1