2

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

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

1 回答 1

1

以下链接可能会有所帮助: 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
于 2014-11-27T15:50:03.843 回答