Bug 65508 - mount done by root does not respect owner option
Summary: mount done by root does not respect owner option
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: util-linux
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-26 07:30 UTC by Need Real Name
Modified: 2007-04-18 16:42 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-05-26 07:30:17 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2002-05-26 07:30:11 UTC
Description of Problem:

A mount done by root does not respect owner option. This is important for 
autofs support.

(util-linux sources are not on the source iso images!)

Version-Release number of selected component (if applicable):


How Reproducible:

Consider the line in /etc/fstab:

/dev/hdd4               /mnt/zip100.0           auto    noauto,owner 0 0

and ls -l /dev/hdd4
brw-------    1 achim    disk      22,  68 Apr 11 16:25 /dev/hdd4

Steps to Reproduce:

My shell:
[achim@localhost achim]$ groups
achim disk uucp

here I mount the drive:

[achim@localhost achim]$ mount /mnt/zip100.0/
[achim@localhost achim]$ mount|grep /dev/hdd
/dev/hdd4 on /mnt/zip100.0 type vfat (rw,nosuid,nodev,user=achim)
[achim@localhost achim]$ umount /mnt/zip100.0/
[achim@localhost achim]$ mount|grep /dev/hdd
[achim@localhost achim]$ 

Actual Results:
and now I do this as root:
[root@localhost root]# mount /mnt/zip100.0/
[root@localhost root]# mount |grep /dev/hdd
/dev/hdd4 on /mnt/zip100.0 type vfat (rw,nosuid,nodev)

Expected Results:
I'd like to have the owner flag respected even when I do this by root.

Additional Information:
	
This is the reason, why some howto-hints fail on Redhat Linux.

In /etc/autofs.misc:
zip             -fstype=auto,owner                      :/dev/hdd4

[achim@localhost achim]$ ls -ld /misc/zip
drwxr-xr-x    2 root     root        16384 Jan  1  1970 /misc/zip

this is not the intended result. The reason: mount is always executed as 
root by automount. The user=achim option does no apply by the same reason

Comment 1 Elliot Lee 2002-06-20 16:18:08 UTC
Just because it doesn't list a specific 'user=' option there when you mount it as root doesn't 
mean its behaviour changes - if no user is explicitly authorized to umount it, only root can 
umount it.

If you are wanting automount to do the mount as the user accessing the mount point, that 
is a different problem that is probably not practical to solve.

Either way, NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.