blob: 5d77ad2a20b5f3d2536ff1700a0b06edac3d207b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
<!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=%3C4FD47013.3090904%40laposte.net%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007746.html">
<LINK REL="Next" HREF="007747.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=%3C4FD47013.3090904%40laposte.net%3E"
TITLE="[Mageia-discuss] Cannot unmount media as user">andre999mga at laposte.net
</A><BR>
<I>Sun Jun 10 11:59:47 CEST 2012</I>
<P><UL>
<LI>Previous message: <A HREF="007746.html">[Mageia-discuss] Cannot unmount media as user
</A></li>
<LI>Next message: <A HREF="007747.html">[Mageia-discuss] Cannot unmount media as user
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7744">[ date ]</a>
<a href="thread.html#7744">[ thread ]</a>
<a href="subject.html#7744">[ subject ]</a>
<a href="author.html#7744">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Len Lawrence a écrit :
><i> Mageia 2 fully updated
</I>><i> GNOME Classic
</I>><i>
</I>><i> This is probably a newbie question.... I am not sure when this
</I>><i> started to happen but when, as a user, I try to unmount a USB drive
</I>><i> via the desktop icon I am told that I am not authorized to perform
</I>><i> that operation. After browsing bugzilla and the forums it looked like
</I>><i> the best way to get past this would be to use sudo. However, editing
</I>><i> the sudoers file always throws up a syntax error. I have tried
</I>><i> various commands based on examples but cannot get any to work.
</I>><i>
</I>><i> e.g.
</I>><i>
</I>><i> ALL /bin/umount NOPASSWD
</I>><i> %users /bin/umount NOPASSWD
</I>><i> %users localhost=/bin/umount NOPASSWD
</I>><i>
</I>><i> What is the correct recipe? RTFM only makes my old brain spin.
</I>><i>
</I>><i> Len
</I>><i>
</I>
try :
%users ALL=/bin/umount NOPASSWD: ALL
or maybe :
%users ALL=/bin/umount device NOPASSWD: ALL
where "device" is whatever the usb drive is mounted as.
Not workable if "device" is variable.
Alternately, you could do :
su
(enter password)
umount ...
As to why you are having the problem :
It means that the drive was mounted with root privileges, or the
privileges of another user.
Thus it is requiring root privileges (or that of the other user) to unmount.
Was it plugged it when the system was booted ? That could cause it to
have root privileges.
Is it in a line the /etc/fstab file ?
(if so, you just have to add the option "users" in the comma-separated
list in the third position in the line.)
Or it could be a bug.
--
André
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007746.html">[Mageia-discuss] Cannot unmount media as user
</A></li>
<LI>Next message: <A HREF="007747.html">[Mageia-discuss] Cannot unmount media as user
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7744">[ date ]</a>
<a href="thread.html#7744">[ thread ]</a>
<a href="subject.html#7744">[ subject ]</a>
<a href="author.html#7744">[ 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>
|