diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-November/000493.html')
-rw-r--r-- | zarb-ml/mageia-sysadm/2010-November/000493.html | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-November/000493.html b/zarb-ml/mageia-sysadm/2010-November/000493.html new file mode 100644 index 000000000..ab0586eea --- /dev/null +++ b/zarb-ml/mageia-sysadm/2010-November/000493.html @@ -0,0 +1,102 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-sysadm] Usernames, uids, and groups + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20Usernames%2C%20uids%2C%20and%20groups&In-Reply-To=%3C20101110175401.GC21938%40mars-attacks.org%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000491.html"> + <LINK REL="Next" HREF="000495.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-sysadm] Usernames, uids, and groups</H1> + <B>nicolas vigier</B> + <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20Usernames%2C%20uids%2C%20and%20groups&In-Reply-To=%3C20101110175401.GC21938%40mars-attacks.org%3E" + TITLE="[Mageia-sysadm] Usernames, uids, and groups">boklm at mars-attacks.org + </A><BR> + <I>Wed Nov 10 18:54:01 CET 2010</I> + <P><UL> + <LI>Previous message: <A HREF="000491.html">[Mageia-sysadm] Usernames, uids, and groups +</A></li> + <LI>Next message: <A HREF="000495.html">[Mageia-sysadm] Usernames, uids, and groups +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#493">[ date ]</a> + <a href="thread.html#493">[ thread ]</a> + <a href="subject.html#493">[ subject ]</a> + <a href="author.html#493">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On Wed, 10 Nov 2010, Luca Berra wrote: + +><i> On Wed, Nov 10, 2010 at 06:25:38PM +0100, nicolas vigier wrote: +</I>>><i> On Wed, 10 Nov 2010, Luca Berra wrote: +</I>>><i> +</I>>>><i> On Wed, Nov 10, 2010 at 01:32:47PM +0100, Michael Scherer wrote: +</I>>>>><i> Le mercredi 10 novembre 2010 à 11:55 +0100, nicolas vigier a écrit : +</I>>>>>><i> On Wed, 10 Nov 2010, Luca Berra wrote: +</I>>>>>><i> +</I>>>>>><i> > 2) Accountability. No idea in France, but here system administratros +</I>>>>>><i> > need to be accounted (*). +</I>>>>>><i> +</I>>>>>><i> When someone runs "sudo su -" or something equivalent there is no +</I>>>>>><i> accountability on what he did after that. +</I>>>>><i> +</I>>>>><i> Even more cunning, emacs or vim can run process ( except that vim has a +</I>>>>><i> mode where it can prevent it with -Z, do not know for emacs ). +</I>>>><i> +</I>>>><i> it is better to use sudoedit for editing files, it will copy the +</I>>>><i> original file to a temporary copy, revert to caller uid, let user edit +</I>>>><i> the file, and move it into place afterwards. +</I>>><i> +</I>>><i> Unless the list of files you are allowed to edit is very limited, it is +</I>>><i> very easy to open a root shell by editing a config file. +</I>><i> not with sudoedit +</I> +With sudoedit too. Many config files are shell scripts or perl scripts +that you can edit to run other commands. Many config files also contain +paths for programs, libraries or plugins, environement variables or +other things that you can use to run anything you want. So unless you +can edit only a very limited number of files, there are many ways to +open a root shell. + +>>><i> another options is using noexec (sudo will preload a shlib overriding +</I>>>><i> exec calls) +</I>>><i> +</I>>><i> But you have an editor running as root, and you can then edit any file. +</I>><i> the idea is that the editor runs as unprivileged user +</I> +I was talking about noexec option here. + +</PRE> + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000491.html">[Mageia-sysadm] Usernames, uids, and groups +</A></li> + <LI>Next message: <A HREF="000495.html">[Mageia-sysadm] Usernames, uids, and groups +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#493">[ date ]</a> + <a href="thread.html#493">[ thread ]</a> + <a href="subject.html#493">[ subject ]</a> + <a href="author.html#493">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm +mailing list</a><br> +</body></html> |