| View previous topic :: View next topic |
| Author |
Message |
micmac l33t

Joined: 28 Nov 2003 Posts: 947
|
Posted: Thu May 01, 2008 2:09 pm Post subject: [Solved] sys-fs/udev-119 disk permissions wrong? |
|
|
Hi all,
I updated to udev-119 recently and ran into some permission issues afterwards. I found that device permissions for hda* and sda* changed from | Code: | | brw-rw---- 1 root disk | to | Code: | | brw-r----- 1 root disk | Shouldn't the disk group have rw access in general?
Last edited by micmac on Fri May 02, 2008 2:07 pm; edited 1 time in total |
|
| Back to top |
|
 |
Link31 Apprentice

Joined: 17 Apr 2006 Posts: 152 Location: France
|
Posted: Thu May 01, 2008 5:50 pm Post subject: |
|
|
I don't think so. I just emerged udev-119 but i didn't rebooted yet, and the file permissions on /dev/sda* are brw-r-----.
Disk group members have the rights to read the device at low-level (raw), but not the rights to modify the data. Otherwise these users would have full control on the system, since they could change their own rights in the system files at low-level. |
|
| Back to top |
|
 |
micmac l33t

Joined: 28 Nov 2003 Posts: 947
|
Posted: Fri May 02, 2008 2:06 pm Post subject: |
|
|
Thanks for the reply, makes sense.
Kind regards
mic |
|
| Back to top |
|
 |
gsra99 n00b


Joined: 06 Jan 2008 Posts: 36
|
Posted: Sat May 10, 2008 4:43 pm Post subject: vmware and disk wirte privileges |
|
|
| How do you change this? Unfortunately if you want run a guest OS directly from the hard disk, i.e. /dev/hda, it will not allow it as users in the group disk do not have write access. The only way I know how is to "chmod g+w /dev/hda", but when you reboot everything is reset, so I have to do this everytime before running vmware which is a bit annoying. |
|
| Back to top |
|
 |
PaulBredbury Veteran


Joined: 14 Jul 2005 Posts: 5931
|
Posted: Sat May 10, 2008 4:51 pm Post subject: Re: vmware and disk wirte privileges |
|
|
| gsra99 wrote: | | How do you change this? |
Create a custom udev rule. Easy example:
/etc/udev/rules.d/91-local.rules
| Code: | | KERNEL=="hda", MODE="0770" |
|
|
| Back to top |
|
 |
hunky Guru


Joined: 19 Nov 2003 Posts: 522 Location: Alaska
|
Posted: Sat May 10, 2008 10:59 pm Post subject: |
|
|
I haven't read up on my udev rule creating lately so pardon me this question:
If sda is the problem, I would just create this file 91-local.rules with sda substituted for hda I'm assuming. Reason I'm not 100% sure is the KERNEL part - not sure what that refers to, but guessing it will work. Thanks - will give this a try. /jd |
|
| Back to top |
|
 |
Tin Apprentice

Joined: 22 Dec 2005 Posts: 272 Location: Namur, Belgium
|
Posted: Tue May 26, 2009 2:08 am Post subject: Re: vmware and disk wirte privileges |
|
|
| PaulBredbury wrote: | | gsra99 wrote: | | How do you change this? |
Create a custom udev rule. Easy example:
/etc/udev/rules.d/91-local.rules
| Code: | | KERNEL=="hda", MODE="0770" |
|
Works perfectly for me for disk sda (needed to boot vmware on a physical disk)
Thank you very much _________________ Tin, the gentoobie |
|
| Back to top |
|
 |
|