LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Given regular user root privileges (https://www.linuxquestions.org/questions/linux-newbie-8/given-regular-user-root-privileges-190101/)

clo99dx 06-05-2004 04:01 PM

Given regular user root privileges
 
Hello

First time using linux so please dont flame me. I am using Mandrake and added a new user. How do I give that user root privileges? I was searching the board and tried "has this been asked? button" but couldnt find any hints.

trickykid 06-05-2004 04:06 PM

Re: Given regular user root privileges
 
Quote:

Originally posted by clo99dx
Hello

First time using linux so please dont flame me. I am using Mandrake and added a new user. How do I give that user root privileges? I was searching the board and tried "has this been asked? button" but couldnt find any hints.

Actually asked all the time and 99.9999% will give the same answer of, "Don't Do It!"

Its a security risk and bad security practice. Setup sudo or su when needing to be root. Of if you just simply don't care about security, just login as root, but don't cry when your system is vulnerable if on the net and one day you find either its cracked, hacked or setup as a community machine for the crackers who will use it to crack other networks and systems, making you look at fault.. ;)

clo99dx 06-05-2004 04:11 PM

Thanks for the info. Reason why I ask is becuase when I am trying to run nmap -sS switch it asks for root acces. Im used to running it on a windows box which i can manage. Any hints?

Looking up on SUDO right now

trickykid 06-05-2004 04:13 PM

Quote:

Originally posted by clo99dx
Thanks for the info. Reason why I ask is becuase when I am trying to run nmap -sS switch it asks for root acces. Im used to running it on a windows box which i can manage. Any hints?

Looking up on SUDO right now

su - root
password:

# nmap -sS


;)

darthtux 06-05-2004 04:15 PM

For one command do a

su -c "command"

Otherwise you may want to check into sudo
man sudo

BTW, this question has been dealt with at least four times in the last week on the forums.

clo99dx 06-05-2004 04:24 PM

I logged in under sudo root, i go to the directory where nmap is located and it gives me command not found, on the other user is ok. Thanks for the help before

clo99dx 06-05-2004 04:27 PM

su -c worked, thanks everyone for the help


All times are GMT -5. The time now is 11:56 PM.