Solved What is a good way to create System Accounts?

10.3-RELEASE-p7(i386)

Hi,

I recently sudo pkg install subversion and it seems that while there is a /usr/local/etc/rc.d/svnserve script installed, the svn user and svn group system accounts were not created. The Handbook has a chapter on Users and Basic Account Management that mentions system accounts but it doesn't discuss the issues or provide any examples.

So, how would one create an svn user and svn group suitable for svnserve?
 
sudo pw groupadd -n svn
sudo pw adduser svn -g svn -d /nonexistent -s /usr/sbin/nologin -L daemon -c "Subversion svnserve"
 
If you add
Code:
WITH_REPOSITORY_CREATION=yes
SVNREPO=/path/to/your/repository/location
to /etc/make.conf and recompile/reinstall the port will create a repository (+ system user and group, defaults to svn for both but can be overridden by also setting SVNUSER and SVNGROUP) for you.
 
Back
Top