Mounting a drive - not using fstab or root (David Ryder) [SEC=UNCLASSIFIED]

Lawson Hanson L.Hanson at bom.gov.au
Wed May 28 21:29:43 BST 2008


David Ryder wrote:
> ------------------------------
> Date: Wed, 28 May 2008 09:27:12 +1000
> From: David Ryder <davaweb at bigpond.net.au>
> Subject: Mounting a drive - not using fstab or root
> To: Ubuntu-au mailing list <ubuntu-au at lists.ubuntu.com>
> Message-ID: <1211930832.7171.22.camel at ubuntu-server.dryder.org.CEDARS>
> Content-Type: text/plain; charset=UTF-8
> 
> I have a drive which at various times in the day and week,
> I want to mount/umount, via cron and a script, in ?/media
> or another folder /media/this-drive-folder/.  Because I want
> to use different folders at different mount times (for
> valid business reasons) the drive can not be in fstab,
> as I understand it, because then I would not have the choice
> of which folder to mount it in.
> 
> But - mount wants root only to mount.  I think users can mount
> fstab drives if noauto, user (or suid using sudoers?) are used
> but that does not overcome my mount location needs.
> 
> So, the crux of all this is, is it possible to mount an ntfs drive
> that is not in fstab, as a user in a script, without needing sudo?
> 
> Thanks,
> David
> ------------------------------

Hi David,

You could take a look at the "pmount/pumount" commands ...
    you will need to install the "pmount" package first

Regards,

Lawson Hanson



More information about the ubuntu-au mailing list