LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-01-2004, 05:38 AM   #1
flynnhandley
LQ Newbie
 
Registered: Aug 2003
Distribution: mandrake
Posts: 28

Rep: Reputation: 15
got root ?


How do i make my self the equivilent of the all mighty root ?

im sick of having to enter passwords all the time and having to run konquor as root
 
Old 07-01-2004, 05:53 AM   #2
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
hi,

Quote:
How do i make my self the equivilent of the all mighty root ?
er, why?

the whole point of having the permissions system is to maintain security and protect the operating system - it's one of the fundamental tenets of Linux / Unix.

You normally only require root access to make changes to the system - eg install new software. once it's all set up, you're good to go and the permissions issue shouldn't get in your way.

i agree it can sometimes be frustrating having to enter passwords, but i feel more secure in the knowledge that i'm using an operating system that isn't constantly attacked by viruses, or where a casual mistake might trash the whole thing....
 
Old 07-01-2004, 05:55 AM   #3
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
Never mind

Last edited by LinuxLala; 07-01-2004 at 05:57 AM.
 
Old 07-01-2004, 06:30 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you can use the sudo command.

add youself to the wheel group

#visudo

uncomment the line below "# Same thing without a password"

On Fedora it is line 23.

You will have to

$sudo <root commands>

but you do not have to su all the time.
 
Old 07-01-2004, 08:56 AM   #5
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
I see a lot of messages about people want to do "too many" things as root. Must be a sympton of using windows too much and to take for granted the ability to do anything to a filesystem...including deleting things you shouldn't etc. which is what you get in Windows. But to run Konqueror as root....why

CK
 
Old 07-01-2004, 09:04 AM   #6
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Rep: Reputation: 30
I have been experimenting with Linux. Mostly Madrake 10.0 Official and SuSE 9.1 Personal. When I used M$win I had to have a lot of programs to protect and clean up spy-ware, etc. No matter what I did I always seemd to get some kind of virus, fortunately I knew how to be cautious and I had things in place so it never got bad, but it was a pian in the a**.

What I am doing now, and I know there are some security risks that pop up from time to time, is keep linux on with no firewall. I haven't used a virus scan or any spy-ware programs. I am doing this on purpose.

With M$win it took only a matter of hours before your computer was infested with something. I have had linux on for weeks at a time, connected to DSL, without any problems. With M$win it would slow down becuase of infestations(amongst other things,) but with linux, again, no problem. I like the security in linux, even if I do have to log in as root every now and then, But I don't do it unless I have to.

Now when I tell this to M$win users, they seem somewhat surprised, lol. I love it.


Webwolf

Last edited by webwolf70; 07-01-2004 at 09:06 AM.
 
Old 07-01-2004, 11:07 AM   #7
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
Yes - indeed though there is also a good reason why windows is more susceptible to virus attack than linux. If you are intent on causing havoc it's better to target windows as 90+ percent or there abouts of home desktops use it. Why write a virus that only target a small minority of desktops.

As time goes on, and more linux desktops appear in peoples home (hooray ), then maybe us linux users should be more wary.
 
Old 07-01-2004, 11:43 AM   #8
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Rep: Reputation: 30
Quote:
Originally posted by cck23


As time goes on, and more linux desktops appear in peoples home (hooray ), then maybe us linux users should be more wary.

True, but I still think that it won't even be close to what M$win has and will have in the coming years. From what I understand is that in order for a virus to do real damage it needs to get to the root. And if I am not logged in as root then, from my understanding, it shouldn't be as much of a problem. M$win's registry is wide open, leaving it very vulnerable to viruses and spyware.

Webwolf

Last edited by webwolf70; 07-01-2004 at 11:45 AM.
 
Old 07-01-2004, 04:57 PM   #9
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
Webwolf you are correct. in fact, i was goint to make that comment about a virus only making real damage if it has been run as root. But i removed it before submitting as I am not an expert in these matters
 
Old 07-02-2004, 07:38 AM   #10
Talan
LQ Newbie
 
Registered: May 2004
Location: Canada
Distribution: SuSE 9.1, Fedora Core 1
Posts: 6

Rep: Reputation: 0
Quote:
Originally posted by kevinatkins
er, why?

the whole point of having the permissions system is to maintain security and protect the operating system - it's one of the fundamental tenets of Linux / Unix.

You normally only require root access to make changes to the system - eg install new software. once it's all set up, you're good to go and the permissions issue shouldn't get in your way.

i agree it can sometimes be frustrating having to enter passwords, but i feel more secure in the knowledge that i'm using an operating system that isn't constantly attacked by viruses, or where a casual mistake might trash the whole thing.... [/B]
Not to sound condescending but wouldn't it have been more efficient to just answer his question instead of questioning his reasons and methods?

One thing that's been annoying me lately is when people ask a simple, one-answer, question and get a long-winded response. (Usually answering more but in this case answering nothing )
 
Old 07-02-2004, 08:12 AM   #11
cck23
Member
 
Registered: Jun 2004
Location: Surrey, UK
Distribution: Mandrake 10 Download
Posts: 73

Rep: Reputation: 16
That's true Talan but we're here to exchange ideas as well.


If you serve to answer someone's questions without questions you wont be helping them either. It's quite possible that someone could be using root access unecessarily and without asking them, you won't be able to advise them appropriately.
 
Old 07-02-2004, 08:58 AM   #12
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
hi talan,

fair point.

perhaps a direct answer to the original question, and then, possibly, a small caution would have been better - i appreciate what you're saying.
 
Old 07-02-2004, 09:21 AM   #13
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I think that the comment (as at the first reply) was a fair one. Maybe it could have been expressed a little better () but: we at LQ should always try to educate each other as to correct use of the system. Running as root is inherently unsafe and the majority of us never do it and can't understand why anyone would want to.

Think of LQ as a conversation - in a conversation the comment would have gone by without anyone mentioning it.

But, yeah, diplomacy is always a good thing
 
Old 07-02-2004, 12:53 PM   #14
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
The reason you get long-winded responses to questions like this is because giving the answer and then an explanation will never work. The person will usually take the answer and compeltely disregard any later cautionary statements. Does anyone want to venture a guess on how many times a command-sequence in a tutorial/how-to are executed verbatim before the user reads "substitute your YYY for ZZZ in the commands above". If what I'm saying didn't have at least an inkling of truth, then the joke-saying "when all else fails, read the directions" would not exist.

Take this fictional exchange:
Question:
How do I drive my car into a tree?

Answer:
You press the accelerator until you're traveling at a good speed, and then turn the steering wheel in the direction of the tree.

I would not suggest doing this as you will likely hurt yourself and your car.

Tomorrow's Newspaper Headline
Driver Hospitalized For Hitting Tree

I'm not suggesting anyone here is that dense. I am simply trying to illustrate that when someone is determined to get an answer for a question, they want the answer and don't care about qualifications. I've done it before, and I'm sure most readers of this reply have done it before. The only thing the person answering the question can do is bury the answer in a set of qualifications. The guy looking for the answer is guaranteed to read until the answer is found. Maybe in searching for the answer, some of the qualifications will sink in and maybe cause them to rethink their position.

Last edited by Dark_Helmet; 07-02-2004 at 12:54 PM.
 
Old 07-02-2004, 01:08 PM   #15
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
After reading the OP's question, one can only come away with the notion that this is an individual who most likely does not understand the whole point of NOT running as root.

If the person had asked for example:

Hi, I am interested in a way to always have root privaleges without haviing to enter my password.
I realize this can be dangerous, but I often need to do ABC or XYZ as root and this would make my life easier.

Then the question would be answered in a manner such as you have suggested.

As such, the OP seems to be a user without Clue.
So some was distributed.

As always, it comes down to asking good questions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration