简体   繁体   English

在ubuntu中创建共享用户帐户

[英]Create shared user account in ubuntu

I am trying to come up with a best approach for creating a user called appuser in Ubuntu. 我正在尝试提出一种在Ubuntu中创建名为appuser的用户的最佳方法。 The reason to create this user is: 创建此用户的原因是:

1. This user will be used to install and start applications like Tomcat, MySQL etc. 1.此用户将用于安装和启动Tomcat,MySQL等应用程序。
2. Other users will login to system using their account. 2.其他用户将使用其帐户登录系统。 Then using su appuser, they should be able to login to this user and manage tomcat, mysql etc. 然后使用su appuser,他们应该能够登录到该用户并管理tomcat,mysql等。

What is the best practice to create this user? 创建此用户的最佳实践是什么?

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.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM