Difference between revisions of "Add a new user or group"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
Line 1: Line 1:
These notes are minimal, please expand.
+
Administrators can use the programs /usr/sbin/luseradd, /usr/sbin/luserdel, and /usr/sbin/lusermod to add, delete, and modify users from the directory. There is also a more-friendly(??) program for adding users: /usr/local/bin/adduser-npg, however it requires that the above programs and more be accessible via the PATH environmental variable (root has the appropriate path set up, but sudo won't use that path).
 
 
=== Add User Account ===
 
The preferred method of user account creation is the script on einstein:
 
env HOME=/root  /usr/local/bin/adduser-npg  
 
 
 
You can also manipulate the tables from [[Improv]] with the program JXplorer.
 
 
 
More info to be extracted from LDAP server:
 
  ldapsearch -x '(uid=maurik)'
 
 
 
Print directory of all available maps:
 
ldapcat -x
 
Print a particular map:
 
ldapcat <mapname>
 
 
 
Manipulate the user accounts: See adduser-npg
 
Change something:
 
  lusermod --shell /bin/tcsh <user>
 

Revision as of 19:32, 10 July 2007

Administrators can use the programs /usr/sbin/luseradd, /usr/sbin/luserdel, and /usr/sbin/lusermod to add, delete, and modify users from the directory. There is also a more-friendly(??) program for adding users: /usr/local/bin/adduser-npg, however it requires that the above programs and more be accessible via the PATH environmental variable (root has the appropriate path set up, but sudo won't use that path).