Re: [SLUG] Permission problems w/ hard disk

From: Mario Lombardo (mario@alienscience.com)
Date: Wed Oct 09 2002 - 15:15:11 EDT


Matt, thanks; it works. For conversation's sake, there are a few
different approaches to this solution, correct?

I mean, I can suid to the VMware application to give it superuser or
root rights to do things despite who is logged in or using it.

--or--

I can set the partition in /etc/fstab with a particular gid or uid
limit so a user with a rating par or better can have full use of the
disk/partition.

I want to make sure I understand this stuff so please set me straight.

/mario

>On Wed, 2002-10-09 at 04:54, Mario Lombardo wrote:
>> I'm enjoying running VMware, but I've had to log in as root in X to
>> get it to work because it needs access to the hard disk as a raw
>> device. Here's my partition layout:
>>
>> MBR = LILO
>> /dev/hda1 = Win98SE
>> /dev/hda2 = /boot
>> /dev/hda5 = / ext2 Linux
>> /dev/hda6 = /swap
>>
>> VMware uses the native Win98SE partition. If I log in as a normal
>> user, I will get denied access to /dev/hda. I would like to give
>> access to a particular user to use VMware. How should I approach
>> this w/o comprising too much security? 
>
>A quick ls -l of hda1 shows the following:
>
>$ ls -l /dev/hda1
>brw-rw---- 1 root disk 3, 1 Apr 14 2001 /dev/hda1
>
>Modify the applicable user and add the user to the group "disk" (as you
>can see above the group "disk" has rw access):
>
>$ usermod -G disk <username>
>
>--
>Matt Miller
>Systems Administrator
>MP TotalCare
>gpg public key id:
>08BC7B06
>
>Content-Type: application/pgp-signature; name=signature.asc
>Content-Description: This is a digitally signed message part
>
>Attachment converted: rasberry:signature.asc 177 (????/----) (000443D4)



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:48:35 EDT