Re: [SLUG] Permission problems w/ hard disk

From: Matt Miller (mmiller1@mptotalcare.com)
Date: Wed Oct 09 2002 - 09:14:48 EDT


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




This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:45:52 EDT