gpt4 book ai didi

linux - 在ubuntu中创建共享用户帐户

转载 作者:太空宇宙 更新时间:2023-11-04 03:46:01 25 4
gpt4 key购买 nike

我正在尝试想出一种在 Ubuntu 中创建名为 appuser 的用户的最佳方法。创建该用户的原因是:

1. 该用户将用于安装和启动Tomcat、MySQL等应用程序
2. 其他用户将使用其帐户登录系统。然后使用 su appuser,他们应该能够登录到该用户并管理 tomcat、mysql 等。

创建此用户的最佳实践是什么?

最佳答案

1)Give 755 permission to mysql and tomcat folder so any one can read and execute application but dont write or modify the data.
2)also provide grant permission to mysql DB for users.

OR

those having full permission to application of tomact or mysql other user(new users) also part of that group.

OR

you can use ACL (access control list) for the same.

关于linux - 在ubuntu中创建共享用户帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28162348/

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