summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20120610/007748.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-discuss/20120610/007748.html')
-rw-r--r--zarb-ml/mageia-discuss/20120610/007748.html148
1 files changed, 148 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20120610/007748.html b/zarb-ml/mageia-discuss/20120610/007748.html
new file mode 100644
index 000000000..630c66cf7
--- /dev/null
+++ b/zarb-ml/mageia-discuss/20120610/007748.html
@@ -0,0 +1,148 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-discuss] Cannot unmount media as user
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Cannot%20unmount%20media%20as%20user&In-Reply-To=%3C4FD47E40.8080409%40laposte.net%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="007747.html">
+ <LINK REL="Next" HREF="007749.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-discuss] Cannot unmount media as user</H1>
+ <B>andre999</B>
+ <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Cannot%20unmount%20media%20as%20user&In-Reply-To=%3C4FD47E40.8080409%40laposte.net%3E"
+ TITLE="[Mageia-discuss] Cannot unmount media as user">andre999mga at laposte.net
+ </A><BR>
+ <I>Sun Jun 10 13:00:16 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="007747.html">[Mageia-discuss] Cannot unmount media as user
+</A></li>
+ <LI>Next message: <A HREF="007749.html">[Mageia-discuss] Cannot unmount media as user
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7748">[ date ]</a>
+ <a href="thread.html#7748">[ thread ]</a>
+ <a href="subject.html#7748">[ subject ]</a>
+ <a href="author.html#7748">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Len Lawrence a &#233;crit :
+&gt;<i> On 10/06/12 10:59, andre999 wrote:
+</I>&gt;&gt;<i> Len Lawrence a &#233;crit :
+</I>&gt;&gt;&gt;<i> Mageia 2 fully updated
+</I>&gt;&gt;&gt;<i> GNOME Classic
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> This is probably a newbie question.... I am not sure when this
+</I>&gt;&gt;&gt;<i> started to happen but when, as a user, I try to unmount a USB drive
+</I>&gt;&gt;&gt;<i> via the desktop icon I am told that I am not authorized to perform
+</I>&gt;&gt;&gt;<i> that operation. After browsing bugzilla and the forums it looked
+</I>&gt;&gt;&gt;<i> like the best way to get past this would be to use sudo. However,
+</I>&gt;&gt;&gt;<i> editing the sudoers file always throws up a syntax error. I have
+</I>&gt;&gt;&gt;<i> tried various commands based on examples but cannot get any to work.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> e.g.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> ALL /bin/umount NOPASSWD
+</I>&gt;&gt;&gt;<i> %users /bin/umount NOPASSWD
+</I>&gt;&gt;&gt;<i> %users localhost=/bin/umount NOPASSWD
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> What is the correct recipe? RTFM only makes my old brain spin.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> Len
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> try :
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> %users ALL=/bin/umount NOPASSWD: ALL
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> or maybe :
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> %users ALL=/bin/umount device NOPASSWD: ALL
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> where &quot;device&quot; is whatever the usb drive is mounted as.
+</I>&gt;&gt;<i> Not workable if &quot;device&quot; is variable.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Alternately, you could do :
+</I>&gt;&gt;<i> su
+</I>&gt;&gt;<i> (enter password)
+</I>&gt;&gt;<i> umount ...
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> As to why you are having the problem :
+</I>&gt;&gt;<i> It means that the drive was mounted with root privileges, or the
+</I>&gt;&gt;<i> privileges of another user.
+</I>&gt;&gt;<i> Thus it is requiring root privileges (or that of the other user) to
+</I>&gt;&gt;<i> unmount.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Was it plugged it when the system was booted ? That could cause it to
+</I>&gt;&gt;<i> have root privileges.
+</I>&gt;&gt;<i> Is it in a line the /etc/fstab file ?
+</I>&gt;&gt;<i> (if so, you just have to add the option &quot;users&quot; in the
+</I>&gt;&gt;<i> comma-separated list in the third position in the line.)
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Or it could be a bug.
+</I>&gt;&gt;<i>
+</I>&gt;<i> A bug seems doubtful because there do not seem to be any other reports
+</I>&gt;<i> of this behaviour. I have been forced to take the direct su/password
+</I>&gt;<i> route.
+</I>&gt;<i>
+</I>&gt;<i> The medium was plugged in at boot time but has been removed and
+</I>&gt;<i> replugged a few times. I had not considered that point. What you are
+</I>&gt;<i> saying is that removable media are treated as fixed if already plugged
+</I>&gt;<i> in at boot time? This is starting to make sense.
+</I>
+It has happened to me in the past, although currently I have no problem
+with a dvd that I sometimes have inserted on boot. (I use Gnome as
+well, but haven't yet updated to mga2.)
+If that is the cause, either something is not configured right or not
+installed, or it is a bug.
+If you have systemd activated, a configuration problem is not unlikely.
+
+&gt;<i> Will investigate fstab, edit if necessary and reboot without the
+</I>&gt;<i> drive . And if that works, mend sudoers.
+</I>
+For fstab, the &quot;users&quot; option lets any user unmount the drive, even if
+they didn't mount it. As well as mount it. It is a good option to use
+for removable media.
+&gt;<i>
+</I>&gt;<i> Thanks
+</I>&gt;<i>
+</I>&gt;<i> Len
+</I>&gt;<i>
+</I>&gt;<i>
+</I>
+
+--
+Andr&#233;
+
+</PRE>
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="007747.html">[Mageia-discuss] Cannot unmount media as user
+</A></li>
+ <LI>Next message: <A HREF="007749.html">[Mageia-discuss] Cannot unmount media as user
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#7748">[ date ]</a>
+ <a href="thread.html#7748">[ thread ]</a>
+ <a href="subject.html#7748">[ subject ]</a>
+ <a href="author.html#7748">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
+mailing list</a><br>
+</body></html>