OS X相当于"useradd -R语言 d /opt/otrs/ -c 'OTRS user' otrs"和"usermod -G nogroup otrs www-data"



我正在尝试在Mac上安装otrs。我想知道以下命令的OS X等效物是什么?

useradd -r -d /opt/otrs/ -c 'OTRS user' otrs
usermod -G nogroup otrs www-data

以下链接可能会有所帮助: http://www.maclife.com/article/columns/terminal_101_creating_new_users

此脚本提供了更多信息和示例:http://wiki.freegeek.org/index.php/Mac_OSX_adduser_script

据此,以下命令应该这样做:

dscl . create /Users/otrs
dscl . create /Users/otrs RealName "OTRS user"
dscl . create /Users/otrs NFSHomeDirectory /opt/otrs
dseditgroup -o edit -t user -a otrs nogroup
dseditgroup -o edit -t user -a otrs otrs
dseditgroup -o edit -t user -a otrs www-data

最新更新