SCIENTIFIC-LINUX-USERS Archives

May 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chris Schanzle <[log in to unmask]>
Reply To:
Chris Schanzle <[log in to unmask]>
Date:
Mon, 5 May 2014 08:53:48 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
On 5/5/14, 3:21 AM, ToddAndMargo wrote:
>>> On May 5, 2014 2:10, ToddAndMargo <[log in to unmask]> 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?
>>>
>
> You don't know the whole story.  I wanted to mount it
> as root.  Then I wanted to test if I could write to
> it as group=user (100).
>
> I wanted to umount the drive as a user so I
> didn't have to go back to root and then back to
> user again for some more tests you are not seeing.
>
> I was hoping there was a "-o " option to allow
> that.  Google have failed me.
>
> -T

What you do as root usually must be undone by root.
Perfect use case for a specific 'sudo' to allow a specific user to umount /mnt/LIVE.

ATOM RSS1 RSS2