Differences

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

Link to this comparison view

pw [2012/07/31 12:03]
pw [2012/07/31 12:03] (current)
Line 1: Line 1:
 +====== pw ======
  
 +  * [[FreeBSD]]
 +
 +Create, edit, delete users in FreeBSD
 +
 +== Add nologin user for a daemon ==
 +
 +Creates a new user with no login allowed, no home directory, and a group of same name:
 +
 +<​code>​
 +pw useradd -n <​name>​ -s /​usr/​sbin/​nologin -d /​nonexistent
 +</​code>​
 +
 +== Delete a user ==
 +
 +<​code>​
 +pw userdel <​name>​
 +</​code>​