Re: How to make mount command mount partions as user not only as root ?



=SERGE= wrote:

hello
I'd be grateful if you'd explain me howto get mount
command to mount partions as user not only as root (w/o fstab)

I try to mount /dev/hda4 (vfat) partion
I gave rwx to /dev/hda4
I gave rwx to /mnt/hda4

That's irrelevant.

I gave +s to /bin/mount

I do : mount -t vfat /dev/hda4 /mnt/hda4


No way, I always get 'Only root can do that'

What is the way to do it?

The only way I can think of is to edit */etc/fstab* and explicitly
set /user/ or /users/ as a mount option.

Like so...

/dev/hda4 /mnt/hda4 vfat defaults,users 0 0

(Substitute /defaults/ for whatever mount options you have for it.)

--
*Aragorn*
(registered GNU/Linux user #223157)
.



Relevant Pages

  • [Trouble Ticket #190335] AutoReply: freebsd-questions Digest, Vol 246, Issue 26
    ... please edit your Subject line so it is more specific ... you need to open a root xterm or even a root shell, ... boot manager is installed for this mirror and I would like to remove it ... was that NFS mount managwed ...
    (freebsd-questions)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... They have physical access to the machine. ...
    (FreeBSD-Security)
  • 2.6 kernel NFS root mount problem
    ... I'm tying to run 2.6.18 kernel on ARM AT91RM9200DK board with NFS mount ... usb usb1: Product: AT91 OHCI ... Unable to mount root fs via NFS, ...
    (Linux-Kernel)
  • NFS root mount problem
    ... I'm tying to run 2.6.18 kernel on ARM AT91RM9200DK board with NFS mount ... usb usb1: Product: AT91 OHCI ... Unable to mount root fs via NFS, ...
    (Linux-Kernel)
  • Re: nfs help?
    ... If you use root on client to mount an export, ... NFS, the original ownership is maintained, but numerically: ...
    (Fedora)