Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-05-2004, 04:01 PM
|
#1
|
LQ Newbie
Registered: Jun 2004
Posts: 6
Rep:
|
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.
|
|
|
06-05-2004, 04:06 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.. 
|
|
|
06-05-2004, 04:11 PM
|
#3
|
LQ Newbie
Registered: Jun 2004
Posts: 6
Original Poster
Rep:
|
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
Last edited by clo99dx; 06-05-2004 at 04:13 PM.
|
|
|
06-05-2004, 04:13 PM
|
#4
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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

|
|
|
06-05-2004, 04:15 PM
|
#5
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
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.
|
|
|
06-05-2004, 04:24 PM
|
#6
|
LQ Newbie
Registered: Jun 2004
Posts: 6
Original Poster
Rep:
|
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
|
|
|
06-05-2004, 04:27 PM
|
#7
|
LQ Newbie
Registered: Jun 2004
Posts: 6
Original Poster
Rep:
|
su -c worked, thanks everyone for the help
|
|
|
All times are GMT -5. The time now is 10:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|