MarkLeong
09-18-2001, 06:02 AM
How do I give another user the same rights as root?
The user should log in with his/her own account but has root's rights.
The user should log in with his/her own account but has root's rights.
|
Click to See Complete Forum and Search --> : User's right MarkLeong 09-18-2001, 06:02 AM How do I give another user the same rights as root? The user should log in with his/her own account but has root's rights. Craig McPherson 09-18-2001, 06:04 AM This is a bad thing to do, but if you really want to do it, it's pretty easy. Edit the /etc/passwd file, and look for the entry for the user. The first number after the user's username is the UserID (uid). Change this UID to 0 (zero), and the user will have full root access. Silent Bob 09-18-2001, 06:14 AM Why not just tell them the root password? It's not going to compromise your system security any further... :) As for the actual problem. You need to edit /etc/passwd Find the line that reads <username>:x:UID:GID:<full name>:/home/<username>:/bin/bash UID and GID are the user and group numbers for that user, they will probably be in the 500's. If you change those to 0 the user will have root privileges. Seriously though, that isn't a good idea. You shouldn't log on with root privileges just for doing regular user stuff. Logging on as root should be reserved purely for system maintainance. A misplaced space at the command line could completely hose your system YOU HAVE BEEN WARNED Whoops, posted at the same time as Craig [ 18 September 2001: Message edited by: Silent Bob ] Strike 09-18-2001, 10:31 AM Better solution: use sudo. That way whenever you want to do something as root, simply do sudo <whatever> and you can do it as root - just put the following line in your /etc/sudoers (with visudo, don't manually edit it): <username> ALL = NOPASSWD : ALL (replacing <username> with your username of course) MarkLeong 09-18-2001, 09:07 PM Thanks. Dim 11-12-2002, 10:22 PM I've been told it's not a good idea to be on the Internet while logged on as root.. but how about when I want to do some system management/maintenance or install stuff while under my regular user id? that's why i wanted to give it all "root" rights.. or whats my best solution here? Thanks Vlad902 11-12-2002, 10:33 PM sudo.... Dun'kalis 11-12-2002, 10:42 PM Like everyone said, set up sudo. Root permissions for a normal user is a BAD idea. A disaster waiting to happen. Loki3 11-12-2002, 10:58 PM If you never login to root and always use a normal user account like I do and you want to do something that requires root privs, just su root and then do the command that required privs and then type exit and your back to your chilling account. Yeah... _Loki bosox79 11-12-2002, 10:58 PM Originally posted by Dun'kalis Like everyone said, set up sudo. Root permissions for a normal user is a BAD idea. A disaster waiting to happen. I concur with Dun'kalis & everyone else who said that giving root access to someone else is a bad idea. this is a good way to hose your system. Sudo access is the best way to go that way to go:D :D Dun'kalis 11-12-2002, 11:05 PM Who is this Craig Mcpherson character? Weird. And why did you drag this post up from the bowels of LNO? dims 11-13-2002, 01:46 PM Sorry to bring this post up from the dead, but the reason I want to do this is what I dont have to enter the Root password everytime that I try to use something that requires it.. like Terminal as Root, or file manager as root.. etc... So i tried to config Sudo, but I dont have VISUDO for some reason.. can't find it.. Is there something that I need to do? Thanks Alex Cavnar, aka alc6379 11-13-2002, 08:04 PM Just open /etc/sudoers.conf. That's the file that visudo edits to setup sudo permissions... justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |