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


View Poll Results: How often are you logged in as root?
Always, there is none greater! 18 19.78%
Never, why would I want to control my system? 2 2.20%
Only when it is necessary. (I am a linux god and use my system correctly!) 68 74.73%
Root, who's root? 4 4.40%
Multiple Choice Poll. Voters: 91. You may not vote on this poll

Reply
  Search this Thread
Old 05-16-2002, 03:10 PM   #31
vfs
Member
 
Registered: Apr 2002
Location: Brazil
Distribution: Slackware
Posts: 184

Rep: Reputation: 30

Did you ever shot a 12 gauge double-barreled shotgun's barrels at the same time? No?

Well... Always logging as root looks like shooting this way on your feet.

Be a lil asleep and type:

rm -rf /

instead of

rm -rf /uselessdir

for example

As regular user, all you can destroy is your own data. Some days ago I destroyed my $HOME, but my family's files were protected from my stupidity. Think what could happen if I was root.


"However, it's your system" -- from aaa_base.tgz Slackware's package tag.

vfs
 
Old 06-07-2002, 04:16 PM   #32
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Re: Re: Re: Why you should never log on as root and only use the su command when you absolute

Quote:
Originally posted by cdhjrt


This is only true on Win9x flavors of Windoze, on NT flavors users are by default unprivileged. Its the upper management of some companies that insist they need to install software and do other "neat" things on their systems which force sysadmins (kicking and screaming) to make them local admins.
Yup. Possibly the only smart thing M$ did in their lifetime, and they removed that too with Windoze XP. All XP users are admins by default.
 
Old 06-07-2002, 07:54 PM   #33
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
log in as average.joe.loser then "su" to perform said functions.
 
Old 06-07-2002, 11:48 PM   #34
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
when i wan just new to linux , i run the command cat >/etc/passwd as root and saw nothing(actually i wanted cat /etc/passwd). so exit by pressing ctrl-D. so after a reboot i could not get into any of the accont. and i reinstalled the system.

so playing as root in linux will be dangerous especially when you are not familiar with the commands
 
Old 06-08-2002, 04:03 AM   #35
tunedLow
Member
 
Registered: Sep 2001
Location: Salt Lake City
Distribution: Slackware 8.1
Posts: 133

Rep: Reputation: 15
avg_joe_loser here,

Just last night I finished installing my first Slackware. Later, I was installing a program that created its own subdir called usr. I went to rm it and out of force of habit I typed /usr.

As soon as I did I realized my mistake, but it was too late. Ended up reinstalling everything. The good side is that I learned a few more things with this install. Run as user.
 
Old 06-08-2002, 04:22 AM   #36
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
That's gotta suck. During my install of LFS, I forgot to type $LFS and instead of installing VIM in /LFS/.... I installed it in / Which probably doesn't mean anything, but it sure could have sucked if it were something like GCC or glibc.
 
Old 06-08-2002, 07:59 AM   #37
Muddy
Member
 
Registered: May 2002
Location: Ohio
Distribution: Mandrake 9.2 Custom Kernel & Mythtv!
Posts: 256

Rep: Reputation: 30
well I'm lazy, but no so lazy I can't type su and my password... I'm always fat fingering crap anyhow.... I shudder to think what damage I'd do if I was root all the time.
 
Old 06-08-2002, 10:46 AM   #38
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
root stuff kinda annoys me. It should have been like in windoze where any user can be admin if it's set so
and unless you're root you can do much in linux console. For X doesn't really matter
 
Old 06-08-2002, 05:46 PM   #39
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
Re: Re: Re: Re: Why you should never log on as root and only use the su command when you absolute

Quote:
Originally posted by sewer_monkey


Yup. Possibly the only smart thing M$ did in their lifetime, and they removed that too with Windoze XP. All XP users are admins by default.
Microsoft still make the same silly mistake again and again, years and after years. That is to shutdown the windoze, or to log-off, one has still need to go through the START button.
 
Old 06-08-2002, 05:50 PM   #40
therion12
Member
 
Registered: Dec 2001
Location: chicago, IL
Distribution: Gentoo 1.4_rc1
Posts: 913

Rep: Reputation: 30
Re: Re: Re: Re: Re: Why you should never log on as root and only use the su command when you absolut

Quote:
Originally posted by shoot2kill


Microsoft still make the same silly mistake again and again, years and after years. That is to shutdown the windoze, or to log-off, one has still need to go through the START button.
Umm no, you can make a shortcut to shutdown, restart, and log-off on the desktop. There is a trick for doing it. I dont remember exactly what the command is, becuase i like the start button personally.
 
Old 06-08-2002, 06:07 PM   #41
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
what i wanted to emphasize is that refering to one who would like to shutdown or log-off windoze, because he or she wants to end the session, why would one need a start button for to end a session?
 
Old 06-08-2002, 11:18 PM   #42
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Re: Re: /root

Quote:
Originally posted by sewer_monkey


Hmmmm... I think you should urgently apply a certain patch to fix the vulnerability to the freeporn virus...

http://www.bbspot.com/News/2001/05/hole.html

Mwahaaa. What a maroon. Running as root (most likely in X even) and launching a shell script from an email without even looking at it first?!? Jeez, I hope someone explained what happened to him, just before they lopped off his admin rights.

Back to boot camp, Bozo

<edit>Same for the dipstick NT admin that tried to run it and passed it on. That didn't even look like a legitimate cert advisory come to think of it.

Hello, internet... Here there be dragons, idiots.</edit>

Last edited by Psycho; 06-08-2002 at 11:29 PM.
 
  


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 11:19 AM.

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