gpt4 book ai didi

linux - 什么是 "useradd -r -d/opt/otrs/-c ' OTRS 用户的 otrs"和 "usermod -G nogroup otrs www-data"的 OS X

转载 作者:太空狗 更新时间:2023-10-29 12:31:03 26 4
gpt4 key购买 nike

我正在尝试在 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

关于linux - 什么是 "useradd -r -d/opt/otrs/-c ' OTRS 用户的 otrs"和 "usermod -G nogroup otrs www-data"的 OS X,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27172842/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com