But still, listen, the entire idea with a normal user account is to not have complete access to everything. If that's what you want, you can just as well log in as root directly. There are several reasons not to do that, though, among others that normal user software usually isn't as secure as what is normally required by root access, meaning that if someone hacks into a user utility, like gaim, over the internet when you're logged in as root, they can trash your entire system. Why do you want to do this? Comment and maybe I'll can help you w/o doing this.
发布评论
评论(2)
正如 ThiefMater 所说,正确的方法是给他 sudo 访问权限,但如果你想为某个用户设置完全权限,编辑 /etc/passwd
你应该有类似的内容,
将 1000 和 100 更改为 0
但是,听着,整个普通用户帐户的想法是不能完全访问所有内容。如果这就是您想要的,您也可以直接以 root 身份登录。不过,有几个原因不这样做,其中之一是普通用户软件通常不如 root 访问通常要求的安全,这意味着如果有人通过互联网侵入用户实用程序,例如 gaim,当您以 root 身份登录,他们可能会破坏您的整个系统。
你为什么要这样做?发表评论,也许我可以帮助你,而无需这样做。
As ThiefMater stated, the proper way is giving him sudo access, but if you wish to set full permissions for a certain user, edit /etc/passwd
You should have something like
Change that 1000 and 100 for 0
But still, listen, the entire idea with a normal user account is to not have complete access to everything. If that's what you want, you can just as well log in as root directly. There are several reasons not to do that, though, among others that normal user software usually isn't as secure as what is normally required by root access, meaning that if someone hacks into a user utility, like gaim, over the internet when you're logged in as root, they can trash your entire system.
Why do you want to do this? Comment and maybe I'll can help you w/o doing this.
如果某人应该拥有完全权限,正确的方法是授予他对
root
用户的sudo
访问权限。然后他可以使用 sudo su - 来获取 root shell。另一种解决方案是为用户提供 UID 0,这使他成为 root 用户。然而,通常最好只有一个 UID 0 用户:root。
If someone should have full permissions the proper way is giving him
sudo
access to theroot
user. Then he can usesudo su -
to get a root shell.Another solution would be giving the user the UID 0 which makes him a root user. However, usually it's good to have only one UID 0 user: root.