Main Page | Report this Page
 
Linux Forum Index  »  Linux Miscellaneous Topics 2  »  question about Linux boxes only running as root...
Page 2 of 2    Goto page Previous  1, 2

question about Linux boxes only running as root...

Author Message
Wanna-Be Sys Admin...
Posted: Fri Nov 06, 2009 6:20 pm
Guest
Unruh wrote:

Quote:
Wanna-Be Sys Admin <sysadmin at (no spam) example.com> writes:

The Doctor wrote:

Right I got a customer who is only running one account, namely root
and 1 app. I suspect this person is opening himself to trouble.

yes/no?

Depends, might be perfectly fine (and probably is). What's the
application running? Anyway, most of security issues revolve around
things other than root 99% of the time (but those 99% of things
usually end up being things done as root once exploited).

IF that system never ever ever is connected to the net in any way, via
modem or ethernet, or anything else, then this may well be fine. It is
still dangerous, since that account CAN run anything, on purpose or by
accident. It can also do immense damage (rm -r /) which a special
account could not.

Well, the OP never said what the user does (I got the impression it
meant they user wasn't using the system for any accounts, and just had
some services running), but yeah, if they are using it and doing things
as root that you'd want to do as a normal non priv user, then yeah,
it's less safe.
--
Not really a wanna-be, but I don't know everything.
 
Wanna-Be Sys Admin...
Posted: Fri Nov 06, 2009 6:21 pm
Guest
The Doctor wrote:

Quote:
In article <R0OIm.3739$gg6.1377 at (no spam) newsfe25.iad>,
Wanna-Be Sys Admin <sysadmin at (no spam) example.com> wrote:
The Doctor wrote:

Right I got a customer who is only running one account, namely root
and 1 app. I suspect this person is opening himself to trouble.

yes/no?

Depends, might be perfectly fine (and probably is). What's the
application running? Anyway, most of security issues revolve around
things other than root 99% of the time (but those 99% of things
usually end up being things done as root once exploited).
--
Not really a wanna-be, but I don't know everything.

And E-newsletter app.

So, is that news letter app running as root? If so, should it be if you
can help it? If he can, he should run a non priv user account just for
that app.
--
Not really a wanna-be, but I don't know everything.
 
Baho Utot...
Posted: Fri Nov 06, 2009 7:49 pm
Guest
The Natural Philosopher wrote:

[putolin]

Quote:
I do think people get too antsy about security. By far and away the
greater risks are not from root kits, but from things like phishing and
so on. There are ten unguarded windows boxes for every one reasonbly
well guarded linux box. They are a much softer target. Id say that
running as root is an unnecessary risk, with almost no benefits, but its
not the worst thing you can do.

The worst thing you could do is type rm -rf / or rm -rf .* while as root
account.
 
Unruh...
Posted: Fri Nov 06, 2009 8:23 pm
Guest
Wanna-Be Sys Admin <sysadmin at (no spam) example.com> writes:

Quote:
The Doctor wrote:

In article <R0OIm.3739$gg6.1377 at (no spam) newsfe25.iad>,
Wanna-Be Sys Admin <sysadmin at (no spam) example.com> wrote:
The Doctor wrote:

Right I got a customer who is only running one account, namely root
and 1 app. I suspect this person is opening himself to trouble.

yes/no?

Depends, might be perfectly fine (and probably is). What's the
application running? Anyway, most of security issues revolve around
things other than root 99% of the time (but those 99% of things
usually end up being things done as root once exploited).
--
Not really a wanna-be, but I don't know everything.

And E-newsletter app.

So, is that news letter app running as root? If so, should it be if you
can help it? If he can, he should run a non priv user account just for
that app.

Sounds like it is worse than that. Most E-newletters are associated with
networking to the outside world (otherwise that E is probably
misplaced). But if you are connecte d to the outside world, having your
user run as root, becomes much more dangerous. Next the OP will be
telling us that that root account also has no password, because the user
cannot be bothered to remember a difficult password. At which point that
system is certain to be exploited, causing problems for that system, and
more likely for everyone else on the net as it gets used as a spam bot
and as a source for attacks on others.

Quote:
--
Not really a wanna-be, but I don't know everything.
 
Unruh...
Posted: Fri Nov 06, 2009 8:26 pm
Guest
Baho Utot <baho-utot at (no spam) invalid.com> writes:

Quote:
The Natural Philosopher wrote:

[putolin]

I do think people get too antsy about security. By far and away the
greater risks are not from root kits, but from things like phishing and
so on. There are ten unguarded windows boxes for every one reasonbly
well guarded linux box. They are a much softer target. Id say that
running as root is an unnecessary risk, with almost no benefits, but its
not the worst thing you can do.

The worst thing you could do is type rm -rf / or rm -rf .* while as root
account.

Nope. That just wipes you out. That is self limiting damage. Either you
no longer have a machine to play with or you learn not to do that.
Worse is subverting that machine to
attack other machines and to send spam and phishing attacks out to
others.
 
Stan Bischof...
Posted: Fri Nov 06, 2009 10:26 pm
Guest
Unruh <unruh-spam at (no spam) physics.ubc.ca> wrote:
Quote:
Baho Utot <baho-utot at (no spam) invalid.com> writes:

The Natural Philosopher wrote:

[putolin]

I do think people get too antsy about security. By far and away the
greater risks are not from root kits, but from things like phishing and
so on. There are ten unguarded windows boxes for every one reasonbly
well guarded linux box. They are a much softer target. Id say that
running as root is an unnecessary risk, with almost no benefits, but its
not the worst thing you can do.

The worst thing you could do is type rm -rf / or rm -rf .* while as root
account.

Nope. That just wipes you out. That is self limiting damage. Either you
no longer have a machine to play with or you learn not to do that.
Worse is subverting that machine to
attack other machines and to send spam and phishing attacks out to
others.


Worse yet is to wander by an Apollo Domain network and try rm -fr //* !

Stan
 
Michael Black...
Posted: Fri Nov 06, 2009 10:44 pm
Guest
On Fri, 6 Nov 2009, Baho Utot wrote:

Quote:
The Natural Philosopher wrote:

[putolin]

I do think people get too antsy about security. By far and away the
greater risks are not from root kits, but from things like phishing and
so on. There are ten unguarded windows boxes for every one reasonbly
well guarded linux box. They are a much softer target. Id say that
running as root is an unnecessary risk, with almost no benefits, but its
not the worst thing you can do.

The worst thing you could do is type rm -rf / or rm -rf .* while as root
account.

No, the worst thing you could do is do that and then don't learn from it.


Michael
 
Maxwell Lol...
Posted: Sat Nov 07, 2009 4:07 pm
Guest
spike1 at (no spam) freenet.co.uk writes:

Quote:
And verily, didst Maxwell Lol <nospam at (no spam) com.invalid> hastily babble thusly:
And then someone can walk up to a dedicated application, and with the
mouse save a file that overwrites a file like /etc/passwd -
/etc/shadow, and thereby deleting the password. Or they can trash the
system by overwriting some critical file.

Even the kernel itself.

That's a critical file..... Smile
 
Maxwell Lol...
Posted: Sat Nov 07, 2009 4:11 pm
Guest
The Natural Philosopher <tnp at (no spam) invalid.invalid> writes:

Quote:
Youy can configure IIRC a no password user login, and put that user in
the root group so privileges needed for admin are granted
automatically, and still run as an unprivileged user..

Sounds like a very bad idea to me to perenantly grant IIRC privileges
this way.. a Setgid mechanism, which drops these privilegdes once the
network channels are established would be better.

well its not secure from the keyboard, but it is secure from
perversion of user processes.

What is the PID and GID of the IRC process? If the GID grants that
process to modify a system file, then a buffer overflow in the IRC
daemon can grant an attacker full access to your computer.
 
Maxwell Lol...
Posted: Sat Nov 07, 2009 4:13 pm
Guest
The Natural Philosopher <tnp at (no spam) invalid.invalid> writes:

Quote:

I assumed that was indeed the case, yes.

There is no need to grant privileges beyond necessity.


To paraphrase Occam Wink

That's the Principle of Least Priviledge.

http://en.wikipedia.org/wiki/Principle_of_least_privilege
 
Maxwell Lol...
Posted: Sat Nov 07, 2009 4:15 pm
Guest
doctor at (no spam) doctor.nl2k.ab.ca (The Doctor) writes:

Quote:
In article <R0OIm.3739$gg6.1377 at (no spam) newsfe25.iad>,
Wanna-Be Sys Admin <sysadmin at (no spam) example.com> wrote:
The Doctor wrote:

Right I got a customer who is only running one account, namely root
and 1 app. I suspect this person is opening himself to trouble.

yes/no?

Depends, might be perfectly fine (and probably is). What's the
application running? Anyway, most of security issues revolve around
things other than root 99% of the time (but those 99% of things usually
end up being things done as root once exploited).
--
Not really a wanna-be, but I don't know everything.

And E-newsletter app.


That's vague.

Is it a web page?
Is it an X-based page viewer?
Is it a mailling list handler?

You should not do ANY of these as root.
 
Bill Marcum...
Posted: Sun Nov 08, 2009 6:56 pm
Guest
On 2009-11-07, Maxwell Lol <nospam at (no spam) com.invalid> wrote:
Quote:
The Natural Philosopher <tnp at (no spam) invalid.invalid> writes:

Youy can configure IIRC a no password user login, and put that user in
the root group so privileges needed for admin are granted
automatically, and still run as an unprivileged user..

Sounds like a very bad idea to me to perenantly grant IIRC privileges
this way.. a Setgid mechanism, which drops these privilegdes once the
network channels are established would be better.

well its not secure from the keyboard, but it is secure from
perversion of user processes.

What is the PID and GID of the IRC process? If the GID grants that
process to modify a system file, then a buffer overflow in the IRC
daemon can grant an attacker full access to your computer.

IRC=Internet Relay Chat

IIRC=If I Remember Correctly

HTH, HAND.
 
Wanna-Be Sys Admin...
Posted: Sun Nov 08, 2009 8:55 pm
Guest
Unruh wrote:

Quote:
Wanna-Be Sys Admin <sysadmin at (no spam) example.com> writes:

The Doctor wrote:

In article <R0OIm.3739$gg6.1377 at (no spam) newsfe25.iad>,
Wanna-Be Sys Admin <sysadmin at (no spam) example.com> wrote:
The Doctor wrote:

Right I got a customer who is only running one account, namely
root
and 1 app. I suspect this person is opening himself to trouble.

yes/no?

Depends, might be perfectly fine (and probably is). What's the
application running? Anyway, most of security issues revolve around
things other than root 99% of the time (but those 99% of things
usually end up being things done as root once exploited).
--
Not really a wanna-be, but I don't know everything.

And E-newsletter app.

So, is that news letter app running as root? If so, should it be if
you
can help it? If he can, he should run a non priv user account just
for that app.

Sounds like it is worse than that. Most E-newletters are associated
with networking to the outside world (otherwise that E is probably
misplaced). But if you are connecte d to the outside world, having
your user run as root, becomes much more dangerous. Next the OP will
be telling us that that root account also has no password, because the
user cannot be bothered to remember a difficult password. At which
point that system is certain to be exploited, causing problems for
that system, and more likely for everyone else on the net as it gets
used as a spam bot and as a source for attacks on others.

--
Not really a wanna-be, but I don't know everything.

Well, few systems will allow root logins if a password isn't set, so I'd
not worry about it not having a password in that sense. But yeah, the
description just doesn't sound like a wise setup.
--
Not really a wanna-be, but I don't know everything.
 
 
Page 2 of 2    Goto page Previous  1, 2
All times are GMT - 5 Hours
The time now is Sat Nov 21, 2009 4:12 pm