Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is running as root bad?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Mon Jun 09, 2003 5:49 am    Post subject: Reply with quote

After reading this thread I can't believe how many people don't seem to be aware of the existence of sudo. sudo is great. Everybody should worship sudo. sudo makes it clean and painless to stay secure. Everybody emerge sudo, damnit!

I want to edit my fstab?
Code:
sudo vim /etc/fstab

I enter my password, then I'm off to edit fstab.

I want to update?
Code:
sudo emerge -u world

Ditto. If it's been less than 5 minutes I edited my fstab, I won't even need to retype my password.
Back to top
View user's profile Send private message
JanErik
Guru
Guru


Joined: 28 Oct 2002
Posts: 488
Location: Finland

PostPosted: Mon Jun 09, 2003 6:15 pm    Post subject: Reply with quote

Is there any good HowTo about managing a standard user on your home desktop, if not, maybe one should be written?
Back to top
View user's profile Send private message
IntergalacticWalrus
Guru
Guru


Joined: 07 Jan 2003
Posts: 513
Location: Montreal QC (Canada)

PostPosted: Mon Jun 09, 2003 8:57 pm    Post subject: Reply with quote

Finnish wrote:
I always run as root, because I haven't learned how to give a normal user the rights to do everything I can do as root. Like shutting down, mounting, inserting/removing kernel modules, removing anything except inside the home directory and so on. Also on Windoze I always run as Administrator.


Shutting down: If you are running a login manager, anyone with local access to the machine can shutdown or reboot freely.

Mounting: Either add the 'user' option to the mountpoint you want user-mountable in your fstab, or switch it to supermount if you have it in your kernel.

Inserting/removing kernel modules: hotplug should suffice for most real-time kernel loading.

As for Windows, I must admit I run as Administrator too, but that's mostyle because
1. Windows lacks a decent "sudo" solution.
2. I mostly run Windows for games and running games as admin on Windows is generally recommended (as stupid as it may sound for a Unix user like me).
Back to top
View user's profile Send private message
Anti
n00b
n00b


Joined: 18 Apr 2002
Posts: 45

PostPosted: Mon Jun 09, 2003 9:36 pm    Post subject: Reply with quote

heh, I've been running as root for years. Until a few months ago. Got tired listening to people telling me I shouldn't. So now I'm a good user, not running root all the rime. Funny enough, I never made a mistake while running root, but after a week being a normal user, I su'd to root and deleted a homedir. Really nice.
You'll do brainfarts even if you're usually running as a normal user and then doing su.
And even if you have a console dedicated to running the root session, you could just as easily become confused/tired/whatever and pull a crapper in that window and destroy everything.
_________________
stuff is good.
Back to top
View user's profile Send private message
Wilhelm
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 149

PostPosted: Wed Jun 18, 2003 10:34 pm    Post subject: Reply with quote

Doesn't it also depend on what you are doing on your box.

Me for instance i run a domain on my box and log in under root mostly on console and as a user under X (where i browse for lazy HOWTO's). From X i su into terminals.

If i would be using it for day-to-day use i wouldn't have run root all the time. For now i am cause i do a lot of config-diving and modifying ;P


Also isn't running as root for day-to-day jobs a sign of weakness that you aren't able to configure your machine properly??
Back to top
View user's profile Send private message
scap1784
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 225

PostPosted: Thu Jun 19, 2003 10:01 pm    Post subject: Reply with quote

When i boot my mahing i open vt1 as root and open everything else as a normall user. This way if i need to do something as root i can do it there. If i am in X i just use su. i am also i college student and people are over all the time. If i am login as root they can hop on my puter and do anything they want :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum