Help: Adding System Accounts
Ronald Valente
rawn027 at gmail.com
Sun Oct 21 15:43:24 PDT 2007
I am trying to roll a setup for a server that cannot use MacPorts. How
do I go about adding users. I have played with the dscl command and
have create users that do not show up under the System Preferences >
Accounts but my group wont stick when I go to chown the home
directory. Any ideas? Here are the commands I am using.
sudo mkdir -p /usr/local/nagios
sudo dscl . -create /Groups/nagios
sudo dscl . -create /Groups/nagios UniqueID 9000
sudo dscl . -create /Users/nagios
sudo dscl . -create /Users/nagios RealName "Nagios User"
sudo dscl . -create /Users/nagios NFSHomeDirectory /usr/local/nagios
sudo dscl . -create /Users/nagios UserShell /usr/bin/false
sudo dscl . -create /Users/nagios UniqueID 9000
sudo dscl . -create /Users/nagios PrimaryGroupID 9000
passwd nagios
sudo dscl . -create /Groups/nagcmd UniqueID 9001
sudo dscl . -append /Groups/nagcmd GroupMembership nagios
sudo dscl . -append /Groups/nagcmd GroupMembership www
sudo chown -R nagios:nagios /usr/local/nagios
Thanks In Advance!
-Ron
More information about the macports-dev
mailing list