On Thu, 6 Jun 2013 01:52:40 +0000
"Edward Ned Harvey (vbox-users)" <vbox-us...@clevertrove.com> wrote:

> > From: Stephan von Krawczynski [mailto:sk...@ithnet.com]
> > 
> > I try to use a physical disk from a (linux) guest on a linux host. The
> > corresponding /dev/sdX file has root.disk set as owner.
> 
> You should be using rdsk instead of dsk.
> 
> If you "ls -l" /dev/sdX you'll see, it's actually just a symlink.
> ls -l /dev/rdsk/c3t1d0p0
> lrwxrwxrwx 1 root root 53 2013-05-29 21:26 /dev/rdsk/c3t1d0p0 -> 
> ../../devices/pci@0,0/pci1028,211@1f,2/disk@1,0:q,raw
> 
> You have to check perms by "ls -l" on the target.
> ls -l /devices/pci@0,0/pci1028,211@1f,2/disk@1,0:q,raw
> 
> In my case, I see these perms:
> cr-------- 1 root root
> 
> Which means no.  Being part of the "disk" group isn't going to do any good.
> 
> sudo chown eharvey /dev/rdsk/c3t1d0p0
> 
> Worse yet, the permissions will reset every time you reboot the host.
> 
> I use a SMF service to chown the volumes on every reboot.  (And start and 
> stop the guests.)
> https://code.google.com/p/simplesmf/

Unfortunately, this is not correct, as in my distro (openSUSE) things are
different:

# ls -l /dev/sdd
brw-rw---- 1 root disk 8, 48  5. Jun 15:08 /dev/sdd

As you can see this is a block-device node and no link. Furthermore I cannot
easily change owner or permissions as this node is somehow linked to udev
services (or systemd) and there seems to be no valid config option to change
these. This is why /etc/permissions tells you:

# [...] Also devices files (/dev/*) are not static but
# managed via udev so this file can't be used to modify device
# permissions either.

A simple chown does not work permanently, the node is back to its original
settings within minutes.

Still the question holds up why a vbox user on the host that is in group
"disk" cannot access the above device node correctly, although the very same
user _can_ access it via VBoxManage to create the vmdk file ...
When the user was no member of "disk" he could not run the VBoxManage command
in question. So this was cured.

-- 
Regards,
Stephan


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
VBox-users-community mailing list
VBox-users-community@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vbox-users-community
_______________________________________________
Unsubscribe:  
mailto:vbox-users-community-requ...@lists.sourceforge.net?subject=unsubscribe

Reply via email to