BTS

Issue582

Title only root can unmount
Priority bug Status resolved
Superseder Nosy List gebi, mika, suntong
Assigned To mika Topics release-stopper

Created on 2008-12-01.05:15:49 by suntong, last changed 2009-03-01.19:45:46 by mika.

Messages
msg2012 (view) Author: mika Date: 2009-03-01.19:45:44
We believe that your issue has been closed by the upload of
Version 0.3.34 of grml-rebuildfstab from Michael Prokop <mika@grml.org>.
The explanation is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 01 Mar 2009 20:22:07 +0100
Source: grml-rebuildfstab
Binary: grml-rebuildfstab
Architecture: source all
Version: 0.3.34
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-rebuildfstab - fstab-rebuilder for grml
Changes: 
 grml-rebuildfstab (0.3.34) unstable; urgency=low
 .
   * Use 'user' instead of 'users' again after discussing the issue.
     [Closes: issue582]
Checksums-Sha1: 
 662d0459749221f17edd7d2ec2e1fd5a5e24d5f9 902 grml-rebuildfstab_0.3.34.dsc
 15edb9130c1f19bb4c9b66a9aed7ce5467809efa 10917 grml-rebuildfstab_0.3.34.tar.gz
 ea95a865b886397a18c3caf811de0e28b51985ba 11908 grml-rebuildfstab_0.3.34_all.deb
Checksums-Sha256: 
 97c315774a08126aefdce20e3c73f3e455c5960305272f07e16af400daa13af8 902 grml-rebuildfstab_0.3.34.dsc
 6eb2828115df4e2f44442d7ea7d5b48ebf88e92f03009512e3db79d63736b022 10917 grml-rebuildfstab_0.3.34.tar.gz
 df3e08f48312aab3c2a8ca22cb0cb45423085260c9880095bf2faf1e371f87cb 11908 grml-rebuildfstab_0.3.34_all.deb
Files: 
 7c5c09d2477dd674ad5de5524906a4f1 902 grml optional grml-rebuildfstab_0.3.34.dsc
 2715f8b8e06972be0bdfd8049689a439 10917 grml optional grml-rebuildfstab_0.3.34.tar.gz
 b0ae9cd8953f12e51d52414e0737116e 11908 grml optional grml-rebuildfstab_0.3.34_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJquKg2N9T+zficugRAkvQAJ95RaFbtOkyE0wNCKU6ppqrwMtFHACeK1YV
UupMVz3L+q7XHnBS8FknRSg=
=sf7P
-----END PGP SIGNATURE-----
msg2011 (view) Author: mika Date: 2009-03-01.19:17:16
* Michael Gebetsroither <bts@bts.grml.org> [20090301 19:29]:

> users is imho ok for live-mode, but _not_ for installed mode.

Alright, then I'll re-adjust grml-rebuildfstab and grml-live to just
use 'user'.

> similar decision as with sudo on live vs. installed mode in grml

ACK, thanks

regards,
-mika-
msg2010 (view) Author: gebi Date: 2009-03-01.18:29:07
users is imho ok for live-mode, but _not_ for installed mode.

similar decision as with sudo on live vs. installed mode in grml
msg2008 (view) Author: mika Date: 2009-03-01.18:06:40
* Michael Gebetsroither <bts@bts.grml.org> [20090301 18:48]:

> imho thats ok for a live-cd.

*what's* ok? :) "users"?

And please notice that grml-rebuildfstab is/might be present on
harddisk installations as well, so we aren't talking just about live
systems.

regards,
-mika-
msg2006 (view) Author: gebi Date: 2009-03-01.17:48:14
imho thats ok for a live-cd.
msg1993 (view) Author: mika Date: 2009-02-28.16:19:10
Gebi, what's your opinion about this issue? Should we close this bugreport now 
as we are using 'users' instead of 'user' for CD/DVD mounting? Or should we 
consider using 'user' instead of 'users' again (due to security reasons)?

That's what it looks like currently:

% grep users /etc/fstab
/dev/fd0       /mnt/floppy    auto   users,noauto,exec                      
0      0
/dev/external  /mnt/external  auto   users,noauto,exec,rw,uid=mika,gid=mika 
0      0
/dev/external1 /mnt/external1 auto   users,noauto,exec,rw,uid=mika,gid=mika 
0      0
/dev/cdrom     /mnt/cdrom     auto   users,noauto,exec,ro                   
0      0
/dev/dvd       /mnt/dvd       auto   users,noauto,exec,ro                   
0      0

I'm not sure whether 'users' really is a sane choise. What about you?

regards,
-mika-
msg1726 (view) Author: mika Date: 2008-12-09.07:09:53
* Tong Sun <bts@bts.grml.org> [20081209 02:52]:
> On Mon, Dec 8, 2008 at 7:15 PM, Michael Prokop <bts@bts.grml.org> wrote:

> > We believe that your issue has been closed by the upload of
> > Version 0.3.33 of grml-rebuildfstab from Michael Prokop <mika@grml.org>. . .

> >   * Use 'users' instead of 'user' for CD/DVD mounting.

> I thought it's better to make the changes for all mount points, e.g,
> HD/USB as well. What's your consideration to limit the changes to
> CD/DVD only?

For security reasons. Gebi, what's you opinion about this?

But we've to investigate on this issue anyway because I'd like to
re-evaluate whether there are any other options for us regarding
mounting (like pmount).

regards,
-mika-
msg1725 (view) Author: suntong Date: 2008-12-09.01:52:03
Thanks mika,

On Mon, Dec 8, 2008 at 7:15 PM, Michael Prokop <bts@bts.grml.org> wrote:
>
> Michael Prokop <mika@grml.org> added the comment:
>
> We believe that your issue has been closed by the upload of
> Version 0.3.33 of grml-rebuildfstab from Michael Prokop <mika@grml.org>. . .
>
>   * Use 'users' instead of 'user' for CD/DVD mounting.

I thought it's better to make the changes for all mount points, e.g,
HD/USB as well. What's your consideration to limit the changes to
CD/DVD only?

thanks
msg1724 (view) Author: mika Date: 2008-12-09.00:15:45
We believe that your issue has been closed by the upload of
Version 0.3.33 of grml-rebuildfstab from Michael Prokop <mika@grml.org>.
The explanation is attached below

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 09 Dec 2008 01:11:21 +0100
Source: grml-rebuildfstab
Binary: grml-rebuildfstab
Architecture: source all
Version: 0.3.33
Distribution: unstable
Urgency: low
Maintainer: Michael Prokop <mika@grml.org>
Changed-By: Michael Prokop <mika@grml.org>
Description: 
 grml-rebuildfstab - fstab-rebuilder for grml
Changes: 
 grml-rebuildfstab (0.3.33) unstable; urgency=low
 .
   * Use 'users' instead of 'user' for CD/DVD mounting.
     Thanks to Tong Sun. [Closes: issue582]
   * Update VCS headers.
   * Bump to Standard-Version 3.8.0 (no further changes).
Checksums-Sha1: 
 f5fec60f08ebd32028759633e0e6cb175acb5991 902 grml-rebuildfstab_0.3.33.dsc
 1ba9b4fb1c6ef5df44e1026bf24ee7263aa4b019 10910 grml-rebuildfstab_0.3.33.tar.gz
 04ff1f415cc98b8572ee92afeb08ff32e9d84316 11884 grml-rebuildfstab_0.3.33_all.deb
Checksums-Sha256: 
 4fe6b6614e559528ae26cb9e18472b18d6b0a8fc6dbb1902387560848d9494ff 902 grml-rebuildfstab_0.3.33.dsc
 47ebdd68b6012284f69faaa50c5c9528c654557b9ea623ac3e5a3d5c02207ca5 10910 grml-rebuildfstab_0.3.33.tar.gz
 24f48e8a3eb23e8290ff2ec4f296cc9c1d0f1a944032057a92ae70f36394ac18 11884 grml-rebuildfstab_0.3.33_all.deb
Files: 
 60c30414ac19bfa6d3b49e35724653ce 902 grml optional grml-rebuildfstab_0.3.33.dsc
 dd80a288b2d237664eb370922eb38412 10910 grml optional grml-rebuildfstab_0.3.33.tar.gz
 9c94c543c974dfdaf931fdbdf01a4e57 11884 grml optional grml-rebuildfstab_0.3.33_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJPbfm2N9T+zficugRAkgWAJ4sHD3hx5R8LwFNvzXlWrgGPYLrtgCcD+Du
LAjqWj0r8Nq2XSiYIgwwMtU=
=hqRA
-----END PGP SIGNATURE-----
msg1713 (view) Author: suntong Date: 2008-12-02.22:52:25
Found the real bug. Now it works:

$ grep -B1 dvd /etc/fstab
# Added by GRML
/dev/dvd /mnt/dvd auto users,noauto,exec,ro 0 0

I.e., it should be *users*, not *user*.
msg1712 (view) Author: suntong Date: 2008-12-01.05:15:47
Hi,

I get the "only root can unmount" error when unmounting dvd:

As me:

tong@helios:~$ mount /mnt/dvd

tong@helios:~$ mount | grep /dvd
/dev/scd2 on /mnt/dvd type udf (ro,nosuid,nodev,utf8)

tong@helios:~$ umount /mnt/dvd
umount: only root can unmount /dev/dvd from /mnt/dvd

$ grep -B1 dvd /etc/fstab
# Added by GRML
/dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

The solution is rather simple, change the mount point from under /mnt to under
/media in grml-rebuildfstab.

Details at thread
http://thread.gmane.org/gmane.linux.debian.user/340043

PS. Get Error: property topic: 'grml-rebuildfstab' is not a keyword.
when try to set property.
History
Date User Action Args
2009-03-01 19:45:46mikasetstatus: need-eg -> resolved
nosy: mika, gebi, suntong
messages: + msg2012
2009-03-01 19:17:16mikasetnosy: mika, gebi, suntong
messages: + msg2011
2009-03-01 18:29:07gebisetnosy: mika, gebi, suntong
messages: + msg2010
2009-03-01 18:06:41mikasetnosy: mika, gebi, suntong
messages: + msg2008
2009-03-01 17:48:15gebisetnosy: mika, gebi, suntong
messages: + msg2006
2009-02-28 16:19:37mikasetstatus: chatting -> need-eg
nosy: mika, gebi, suntong
2009-02-28 16:19:32mikasettopic: + release-stopper
nosy: mika, gebi, suntong
2009-02-28 16:19:11mikasetnosy: mika, gebi, suntong
messages: + msg1993
2008-12-09 07:09:55mikasetnosy: mika, gebi, suntong
messages: + msg1726
2008-12-09 07:08:42mikasetnosy: + gebi
2008-12-09 01:52:05suntongsetstatus: resolved -> chatting
nosy: mika, suntong
messages: + msg1725
2008-12-09 00:15:47mikasetstatus: chatting -> resolved
nosy: mika, suntong
messages: + msg1724
2008-12-09 00:07:33mikasetpriority: urgent -> bug
assignedto: mika
nosy: + mika
2008-12-02 22:53:24suntongsetpriority: bug -> urgent
2008-12-02 22:52:28suntongsetstatus: unread -> chatting
messages: + msg1713
2008-12-01 05:15:49suntongcreate