我可以在root下创建超级用户吗? [英] Can I create a super user under root?

查看:60
本文介绍了我可以在root下创建超级用户吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要向特定用户提供对服务器的完全访问权限。



如果我授予该用户root权限,则同一用户可以更改超级用户密码我以管理员身份访问服务器。



是否有可能创建一个可以root身份运行但不能更改root密码的用户?



提前谢谢!

I need to give complete access to a server to a specific user.

If I grant root access to that user that same user can change the superuser password preventing me to get access to the server as an administrator.

Is there any possibility to create a user that can operate as root but that can''t change the root password?

Thank you in advance!

推荐答案

你不应该拥有root用户帐户特权。这就是为什么root帐户不仅仅是一个提升用户而是一个特殊帐户。



为什么你想要普通用户的root访问权限?如果你需要管理任何东西,只需使用su命令成为root,直到你完成了你正在做的任何超级用户的事情。



如果您需要使用 groupadd 命令将用户的访问扩展到可以创建新组的内容,将用户添加到该组并更改您要授予其访问权限的所有权和权限完全访问组成员。
You shouldn''t have a user account with root privileges. That''s why the root account is not just an elevated user but a special account.

Why do you want root access for a regular user? If you need to admin anything, just use the su command to become root until you''re done doing whatever superuser stuff it is you''re doing.

If you need to extend access for a user to something you can create a new group using the groupadd command, add the user to this group and change the ownership and permissions on whatever it is you want to give access to to full access for group members.


这篇关于我可以在root下创建超级用户吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆