Re: only root can unmount

2008-12-06 Thread Douglas A. Tutty
On Tue, Dec 02, 2008 at 06:23:19PM -0800, Daniel Burrows wrote:
 On Tue, Dec 02, 2008 at 10:50:23PM +, T o n g [EMAIL PROTECTED] was 
 heard to say:
  On Tue, 02 Dec 2008 06:01:59 -0800, Daniel Burrows wrote:
  
   [EMAIL PROTECTED]:~$ grep dvd /etc/fstab
   /dev/dvd   /media/dvd   autousers,noauto,exec,ro0 
   0 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0
   
 Is it intentional that one line says users and the other one says
   user?
  
  Ahhh, thanks Daniel. Bingo, that's the real reason. I'll report the bug 
  to grml-rebuildfstab.
 
   What I don't understand is why the one with users was the one that
 worked.  I thought that user was the correct string, and the manpage
 agrees with me.

I thought that user means that any one user could mount, but only that
same user (and root) could then unmount.  Whereas, users means that
any user can mount and any other user could then unmount.  I suppose
users is helpful if people are co-operative or hurtful if you get
unmount wars.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-12-05 Thread Chris Bannister
On Mon, Dec 01, 2008 at 04:23:18AM +, T o n g wrote:
 A! Thanks a lot for the comment Sven. I find the real reason:
 
 [EMAIL PROTECTED]:~$ grep dvd /etc/fstab
 /dev/dvd   /media/dvd   autousers,noauto,exec,ro0  0
  ^
 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

 [EMAIL PROTECTED]:~$ mount /media/dvd
 
 [EMAIL PROTECTED]:~$ umount /media/dvd  echo ok
 ok
 
 [EMAIL PROTECTED]:~$ mount /mnt/dvd
 
 [EMAIL PROTECTED]:~$ umount /mnt/dvd
 umount: only root can unmount /dev/dvd from /mnt/dvd
 
 I.e., the trick is not actually the name-du-jour of the DVD drive, but 
 the mount point -- under /mnt, no; under /media yes.

Why the 2 /dev/dvd entries? Pick one, but make sure the entry has
users not user :)

-- 
Chris.
==
I contend that we are both atheists. I just believe in one fewer god
than you do. When you understand why you dismiss all the other
possible gods, you will understand why I dismiss yours.
   -- Stephen F Roberts


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-12-02 Thread Daniel Burrows
On Mon, Dec 01, 2008 at 04:23:18AM +, T o n g [EMAIL PROTECTED] was heard 
to say:
 [EMAIL PROTECTED]:~$ grep dvd /etc/fstab
 /dev/dvd   /media/dvd   autousers,noauto,exec,ro0  0
 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

  Is it intentional that one line says users and the other one says
user?

  Daniel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-12-02 Thread T o n g
On Tue, 02 Dec 2008 06:01:59 -0800, Daniel Burrows wrote:

 [EMAIL PROTECTED]:~$ grep dvd /etc/fstab
 /dev/dvd   /media/dvd   autousers,noauto,exec,ro0 
 0 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0
 
   Is it intentional that one line says users and the other one says
 user?

Ahhh, thanks Daniel. Bingo, that's the real reason. I'll report the bug 
to grml-rebuildfstab.

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-12-02 Thread Daniel Burrows
On Tue, Dec 02, 2008 at 10:50:23PM +, T o n g [EMAIL PROTECTED] was heard 
to say:
 On Tue, 02 Dec 2008 06:01:59 -0800, Daniel Burrows wrote:
 
  [EMAIL PROTECTED]:~$ grep dvd /etc/fstab
  /dev/dvd   /media/dvd   autousers,noauto,exec,ro0 
  0 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0
  
Is it intentional that one line says users and the other one says
  user?
 
 Ahhh, thanks Daniel. Bingo, that's the real reason. I'll report the bug 
 to grml-rebuildfstab.

  What I don't understand is why the one with users was the one that
worked.  I thought that user was the correct string, and the manpage
agrees with me.

  Daniel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-30 Thread Andrei Popescu
On Sun,30.Nov.08, 06:15:20, T o n g wrote:
 
 Thanks everyone. Here is all info required from the replies so far, apart 
 from above: 
 
[snip info]

The only thing that sticks out is that you have /dev/dvd in fstab but 
mount talks about /dev/scd2. Try replacing /dev/dvd with /dev/scd2 in 
fstab.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: only root can unmount

2008-11-30 Thread T o n g
On Sun, 30 Nov 2008 10:12:56 +0200, Andrei Popescu wrote:

 The only thing that sticks out is that you have /dev/dvd in fstab but
 mount talks about /dev/scd2. Try replacing /dev/dvd with /dev/scd2 in
 fstab.

[EMAIL PROTECTED]:~$ grep dvd /etc/fstab
/dev/scd2 /mnt/dvd auto user,noauto,exec,ro 0 0

[EMAIL PROTECTED]:~$ umount /mnt/dvd
umount: only root can unmount /dev/scd2 from /mnt/dvd

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-30 Thread Andrei Popescu
On Sun,30.Nov.08, 16:47:06, T o n g wrote:
 On Sun, 30 Nov 2008 10:12:56 +0200, Andrei Popescu wrote:
 
  The only thing that sticks out is that you have /dev/dvd in fstab but
  mount talks about /dev/scd2. Try replacing /dev/dvd with /dev/scd2 in
  fstab.
 
 [EMAIL PROTECTED]:~$ grep dvd /etc/fstab
 /dev/scd2 /mnt/dvd auto user,noauto,exec,ro 0 0
 
 [EMAIL PROTECTED]:~$ umount /mnt/dvd
 umount: only root can unmount /dev/scd2 from /mnt/dvd

And the output of 'mount' is still the same (as in no 'user')? If this 
is the case it seems as if mount would ignore your fstab!

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: only root can unmount

2008-11-30 Thread T o n g
On Sun, 30 Nov 2008 10:12:56 +0200, Andrei Popescu wrote:

 The only thing that sticks out is that you have /dev/dvd in fstab but
 mount talks about /dev/scd2. Try replacing /dev/dvd with /dev/scd2 in
 fstab.

Ah, it works now. Thanks a lot Andrei. That's the solution.

The reason that it didn't work when I first change is because that I 
should have umount it before trying.

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-30 Thread Sven Joachim
On 2008-11-30 20:13 +0100, T o n g wrote:

 On Sun, 30 Nov 2008 10:12:56 +0200, Andrei Popescu wrote:

 The only thing that sticks out is that you have /dev/dvd in fstab but
 mount talks about /dev/scd2. Try replacing /dev/dvd with /dev/scd2 in
 fstab.

 Ah, it works now. Thanks a lot Andrei. That's the solution.

Hm, I still do not quite understand why this solves the problem.
Because I have this in /etc/fstab:

/dev/cdrom  /media/cdromiso9660 ro,user,noauto  0   0

and I can umount discs that I mounted as user just fine.  Besides, you
really should not need to figure out what the name-du-jour of your DVD
drive is, that's the job of udev.

Sven


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-30 Thread T o n g
On Sun, 30 Nov 2008 23:11:29 +0100, Sven Joachim wrote:

 The only thing that sticks out is that you have /dev/dvd in fstab but
 mount talks about /dev/scd2. Try replacing /dev/dvd with /dev/scd2 in
 fstab.

 Ah, it works now. Thanks a lot Andrei. That's the solution.
 
 Hm, I still do not quite understand why this solves the problem. Because
 I have this in /etc/fstab:
 
 /dev/cdrom/media/cdromiso9660 ro,user,noauto  0   0
 
 and I can umount discs that I mounted as user just fine.

A! Thanks a lot for the comment Sven. I find the real reason:

[EMAIL PROTECTED]:~$ grep dvd /etc/fstab
/dev/dvd   /media/dvd   autousers,noauto,exec,ro0  0
/dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

[EMAIL PROTECTED]:~$ mount /media/dvd

[EMAIL PROTECTED]:~$ umount /media/dvd  echo ok
ok

[EMAIL PROTECTED]:~$ mount /mnt/dvd

[EMAIL PROTECTED]:~$ umount /mnt/dvd
umount: only root can unmount /dev/dvd from /mnt/dvd

I.e., the trick is not actually the name-du-jour of the DVD drive, but 
the mount point -- under /mnt, no; under /media yes.

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-29 Thread T o n g
On Wed, 26 Nov 2008 21:30:03 +, T o n g wrote:

 I get the following error when unmounting dvd:
 
 $ umount /mnt/dvd
 umount: only root can unmount /dev/dvd from /mnt/dvd
 
 Strange is that, I have user in my fstab:
 
 $ grep dvd /etc/fstab
 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0
 
 and moreover, I mounted /mnt/dvd as myself, not root.
 
 What could be wrong?

Hi, 

Thanks everyone. Here is all info required from the replies so far, apart 
from above: 

As me:

[EMAIL PROTECTED]:~$ mount /mnt/dvd

[EMAIL PROTECTED]:~$ mount | grep /dvd
/dev/scd2 on /mnt/dvd type udf (ro,nosuid,nodev,utf8)

[EMAIL PROTECTED]:~$ ls -l /bin/umount
-rwsr-xr-x 1 root root 44088 2008-04-28  /bin/umount

[EMAIL PROTECTED]:~$ umount /mnt/dvd
umount: only root can unmount /dev/dvd from /mnt/dvd

[EMAIL PROTECTED]:~$ grep dvd /etc/fstab
/dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

[EMAIL PROTECTED]:~$ cat /proc/mounts | grep dvd
/dev/scd2 /mnt/dvd udf ro,nosuid,nodev,utf8 0 0

[EMAIL PROTECTED]:~$ groups
tong adm tty disk mail news uucp dialout fax voice cdrom floppy tape sudo 
audio dip www-data video plugdev games users guest 

[EMAIL PROTECTED]:~$ ls -ld /mnt/dvd
dr-xr-xr-x 4 4294967295 4294967295 136 09-29 12:17 /mnt/dvd

thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



only root can unmount

2008-11-26 Thread T o n g
Hi,

I get the following error when unmounting dvd:

$ umount /mnt/dvd
umount: only root can unmount /dev/dvd from /mnt/dvd

Strange is that, I have user in my fstab:

$ grep dvd /etc/fstab
/dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

and moreover, I mounted /mnt/dvd as myself, not root. 

What could be wrong? 

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-26 Thread Sven Joachim
On 2008-11-26 22:30 +0100, T o n g wrote:

 I get the following error when unmounting dvd:

 $ umount /mnt/dvd
 umount: only root can unmount /dev/dvd from /mnt/dvd

 Strange is that, I have user in my fstab:

 $ grep dvd /etc/fstab
 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

 and moreover, I mounted /mnt/dvd as myself, not root. 

 What could be wrong? 

I have no idea, but first please show the output of mount | grep /dvd.

Sven


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-26 Thread Mirco Piccin
Hi all

 I get the following error when unmounting dvd:

 $ umount /mnt/dvd
 umount: only root can unmount /dev/dvd from /mnt/dvd

 Strange is that, I have user in my fstab:

 $ grep dvd /etc/fstab
 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

 and moreover, I mounted /mnt/dvd as myself, not root.

Maybe you need to setuid root for /bin/umount (as this is usually):
-rwsr-xr-x 1 root root 44088 2008-04-29 03:57 /bin/umount

Hope this helps you.
Regards
M


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-26 Thread lee
On Wed, Nov 26, 2008 at 09:30:03PM +, T o n g wrote:

 $ grep dvd /etc/fstab
 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0
 
 and moreover, I mounted /mnt/dvd as myself, not root. 
 
 What could be wrong? 

There seems to be a comma missing, and you seem to have tried to
specify auto together with noauto. It'll probably work without
auto (because then the comma won't be missing); apparently you don't
want it to be mounted when booting anyway. noauto makes sense
because it's possible that there is not always a disk in the drive
when booting.

See man fstab and man mount for the options.


-- 
Don't let them, daddy. Don't let the stars run down.
http://adin.dyndns.org/adin/TheLastQ.htm


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-26 Thread Douglas A. Tutty
On Wed, Nov 26, 2008 at 05:38:40PM -0600, lee wrote:
 On Wed, Nov 26, 2008 at 09:30:03PM +, T o n g wrote:
 
  $ grep dvd /etc/fstab
  /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0
  
  and moreover, I mounted /mnt/dvd as myself, not root. 
  
  What could be wrong? 
 
 There seems to be a comma missing, and you seem to have tried to
 specify auto together with noauto. It'll probably work without
 auto (because then the comma won't be missing); apparently you don't
 want it to be mounted when booting anyway. noauto makes sense
 because it's possible that there is not always a disk in the drive
 when booting.
 
 See man fstab and man mount for the options.

Isn't that isolated auto for the fstype field, not the mount options
field?

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: only root can unmount

2008-11-26 Thread Boyd Stephen Smith Jr.
On Wednesday 26 November 2008, lee [EMAIL PROTECTED] wrote about 'Re: 
only root can unmount':
On Wed, Nov 26, 2008 at 09:30:03PM +, T o n g wrote:
 $ grep dvd /etc/fstab
 /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0

There seems to be a comma missing, and you seem to have tried to
specify auto together with noauto.

Nope.  He's using the auto filesystem with options user, noauto, exec and 
ro.  Since those options are supported by all filesystems, that should be 
working fine.
-- 
Boyd Stephen Smith Jr. ,= ,-_-. =. 
[EMAIL PROTECTED]  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy   `-'(. .)`-' 
http://iguanasuicide.org/  \_/ 


signature.asc
Description: This is a digitally signed message part.


Re: only root can unmount

2008-11-26 Thread lee
On Wed, Nov 26, 2008 at 07:20:12PM -0600, Boyd Stephen Smith Jr. wrote:
 On Wednesday 26 November 2008, lee [EMAIL PROTECTED] wrote about 'Re: 
 only root can unmount':
 On Wed, Nov 26, 2008 at 09:30:03PM +, T o n g wrote:
  $ grep dvd /etc/fstab
  /dev/dvd /mnt/dvd auto user,noauto,exec,ro 0 0
 
 There seems to be a comma missing, and you seem to have tried to
 specify auto together with noauto.
 
 Nope.  He's using the auto filesystem with options user, noauto, exec and 
 ro.  Since those options are supported by all filesystems, that should be 
 working fine.

Oh, you're right. Maybe the problem is the mount point, not allowing
users to access it. I have this in /etc/fstab, automatically generated:


/dev/hdc/media/cdrom0   udf,iso9660 user,noauto 0   0


[EMAIL PROTECTED]:~$ mount /media/cdrom0/
mount: unknown filesystem type 'iso9660'
[EMAIL PROTECTED]:~$


Looks like I could mount it if /dev/hdc would exist and if the kernel
had support for iso9660 :) There's also:


[EMAIL PROTECTED]:~$ groups
lee dialout cdrom floppy audio video plugdev
[EMAIL PROTECTED]:~$ 


-- 
Don't let them, daddy. Don't let the stars run down.
http://adin.dyndns.org/adin/TheLastQ.htm


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problem: 'only root can unmount /dev/something from /somewhere'

2001-07-15 Thread Guy Geens
 Norbert == Norbert Nemec [EMAIL PROTECTED] writes:

Norbert Hi there, on quite a number of machines I've encountered the
Norbert problem, that a normal user can mount filesystems
Norbert (user-flag set in /etc/fstab) but when trying to unmount,
Norbert the above error is given instead. It seems a problem in
Norbert either kernel 2.4 series or one of the new versions of
Norbert mount, since I never had that problem before.

Newer versions of mount have given a different meaning to the `user'
flag. Only the user who issued the mount command can do the umount.

If you want to have the old behaviour, change the fstab flag to
`users'.

(This feature is described in the mount man page.)

-- 
G. ``Iggy'' Geens - ICQ: #64109250
Home: [EMAIL PROTECTED] - Work: [EMAIL PROTECTED]
WWW: http://users.pandora.be/guy.geens/
`I want quality, not quantity. But I want lots of it!'



Problem: 'only root can unmount /dev/something from /somewhere'

2001-07-14 Thread Norbert Nemec
Hi there,

on quite a number of machines I've encountered the problem, that a normal user 
can mount filesystems (user-flag set in /etc/fstab) but when trying to 
unmount, the above error is given instead. It seems a problem in either kernel 
2.4 series or one of the new versions of mount, since I never had that 
problem before.

Any ideas?

Ciao,
Nobbi

-- 
-- __
-- JESUS CHRIST IS LORD!
--  To Him, even that machine here has to obey...
--
-- _Norbert Nobbi Nemec
-- Hindenburgstr. 44  ...  D-91054 Erlangen  ...  Germany
-- eMail: [EMAIL PROTECTED]   Tel: +49-(0)-9131-204180



Re: Problem: 'only root can unmount /dev/something from /somewhere'

2001-07-14 Thread Carel Fellinger
On Sat, Jul 14, 2001 at 10:34:20AM +0200, Norbert Nemec wrote:
 Hi there,
 
 on quite a number of machines I've encountered the problem, that a normal 
 user 
 can mount filesystems (user-flag set in /etc/fstab) but when trying to 
 unmount, the above error is given instead. It seems a problem in either 
 kernel 
 2.4 series or one of the new versions of mount, since I never had that 
 problem before.

Only the user that mounted a user mountable drive can unmount it. And
root offcourse:)

-- 
groetjes, carel