Subject: | |
From: | |
Reply To: | |
Date: | Mon, 5 May 2014 09:23:47 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On 05/05/2014 05:53 AM, Chris Schanzle wrote:
> 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.
>
Hi Chris,
These are just copy and paste instructions on something I will
do maybe two or three times a year. I was just thinking that
if "-o uses,exec" let the user write and execute, maybe there was
a "-o" to let the user dismount.
I will just use Substitute User in the copy and paste instructions:
su root -c "umount /mnt/LIVE"
Thanks to everyone for the tips!
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|