开发者

how to give the user a full permissions in linux redhat 5 [closed]

开发者 https://www.devze.com 2023-02-17 07:23 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. 开发者_开发技巧 Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers. 开发者_开发技巧

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I have created the user "tungsten" now how do I give full permissions to the user in linux redhat 5


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

 daniel:x:1000:100:WhateverUserNameYouUse,someMoreInfo:/home/daniel:/bin/bash

Change that 1000 and 100 for 0

 daniel:x:0:0:WhateverUserNameYouUse,someMoreInfo:/home/daniel:/bin/bash

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.


If someone should have full permissions the proper way is giving him sudo access to the root user. Then he can use sudo 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消