You are not logged in.

#1 2004-09-17 22:24:12

jftaylor21
Member
From: Arch Linux Forums
Registered: 2004-02-21
Posts: 237

Is su -c safe?

Hi,
I was just wondering how safe su -c is.
I know that it only does one command and then stops, but by doing so, am I opening a hole for someone to get in?

Offline

#2 2004-09-17 22:36:19

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: Is su -c safe?

It's not good to have the hole open...


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#3 2004-09-17 23:39:52

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: Is su -c safe?

safe??
welcome to loonix world,


arch + gentoo + initng + python = enlisy

Offline

#4 2004-09-18 01:37:59

contrasutra
Member
From: New Jersey
Registered: 2003-07-26
Posts: 507

Re: Is su -c safe?

Any threads that spawn from the original command you run will have root permissions I think, so just be sure to run a binary you are sure is safe.

Sometimes you have to run things as root, it's not dangerous, just be careful.

You may also want to look into 'sudo'.


"Contrary to popular belief, penguins are not the salvation of modern technology.  Neither do they throw parties for the urban proletariat."

Offline

#5 2004-09-18 09:50:07

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Is su -c safe?

Doug Gwyn wrote:

UNIX was not designed to stop you from doing stupid things, because that
would also stop you from doing clever things.

(same applys to linux and any higher evolved OS)


The impossible missions are the only ones which succeed.

Offline

Board footer

Powered by FluxBB