I don't think you're going to be able to do what you want in an ad-hoc way, i.e. without using an fstab entry. Take a look at both the "user" and "users" options (the latter which is more permissive), in the mount(8) man page. These both seem to work when placed in /etc/fstab entries, but not from the mount command line.

An alternative that has been proposed would be to set up something using sudo, but either way, you're looking at setting up a config file, rather than just doing this with a few ad-hoc commands.

Gilbert

On 06/05/2014 2:12 PM, ToddAndMargo wrote:
On 05/05/2014 08:23 PM, Franchisseur Robert wrote:
-- Le (On) 2014-05-04 -0700 à (at) 23:09:32 ToddAndMargo écrivit
(wrote): --

Hi All,

"#" is roots user prompt
"$" is my user's prompt

# mount -t ext3 -o users,exec /dev/sdc1  /mnt/LIVE
# chmod -R 2777 /mnt/LIVE
$ cp -R /home/CDs/Keepers/Linux/Usb.CreateLiveUSB /mnt/LIVE
$ umount /mnt/LIVE

I can not umount /mnt/LIVE because it is not in fstab
and "$" is not root.

I want the user to be able to umount this on and I don't
want it cluttering up fstab.

Is there an "-o" option that will allow the
user to umount it?


        Hello,

        with :
        # mount -t ext3 -o user,exec /dev/sdc1  /mnt/LIVE
                           ==== without 's'


        it works for me under SL5.10



Hi Franchisseur,

SL 6.5

$ su root -c "mount -t ext3 -o user,exec /dev/sdc1  /mnt/LIVE"
Password:

$ umount /mnt/LIVE
umount: /mnt/LIVE is not in the fstab (and you are not root)

RATS!

By chance was your drive in your fstab?

-T

--
Gilbert E. Detillieux           E-mail: <[email protected]>
Dept. of Computer Science       Web:    http://www.cs.umanitoba.ca/~gedetil/
University of Manitoba          Phone:  (204)474-8161
Winnipeg MB CANADA  R3T 2N2     Fax:    (204)474-7609

Reply via email to