On Thu, Feb 16, 2017 at 06:52:53PM -0700, Chris Trask wrote:
> Basically, I need to edit a configuration file that is owned by
> ROOT. Seems that a series of SLEEP commands are keeping the network
> manager from loading, and that is keeping me from all internet access.
> Those cammands need to be turned into remarks and the file saved.
>
> In one blog I just encountered, the poster added himself to the
> ROOT group, then gave himself all permissions. That sounds reasonable.
Allowing a user-level login to have root permissions/access without a
conscious privelege escalation is a Really Bad Idea(tm). This lack of
privelege separation is why some OSs are so vulnerable to attack from
viruses etc. There should be comments in the blog that say that :) It's
less of a problem if you're the only user, but it's "not the done
thing".
I imagine you have 2 options.
1: login as root and edit the files (you'd need the root account
password) though this option may be locked out by policy on the system
2: login as normal and use sudo for priv escalation. I think this is
the preferred option in the linux world.
"sudo nano fred.conf" (assuming nano is your editor of choice, and
fred.conf is the file to edit). using it like this means that the
current commend is executed with higher prevelege, but you are returned
to normal on completion. I read you can get a superuser shell with "sudo
-i" which allows you to operate in a priv-escalated environment.
sudo is "s(uper)u(ser-)do", so sudo should be pronounced ess-you-doo..
(now THAT'S going to start a big fight, so I'll get back under my bridge
now* :) )
Now we're out of my linux experience (it is more like the SystemV rather
than the BSD flavour of UNIX that I use)... I'm sure another of our
friends here will be able to correct me where I'm wrong.
davidt
* say it however you want :) we'll know what you mean...
--
_________________________________________________________________
Options: http://lists.thomasclausen.net/mailman/listinfo/olympus
Archives: http://lists.thomasclausen.net/mailman/private/olympus/
Themed Olympus Photo Exhibition: http://www.tope.nl/
|