Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] sys-fs/udev-119 disk permissions wrong?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 977

PostPosted: Thu May 01, 2008 7:09 pm    Post subject: [Solved] sys-fs/udev-119 disk permissions wrong? Reply with quote

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 7:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Thu May 01, 2008 10:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 977

PostPosted: Fri May 02, 2008 7:06 pm    Post subject: Reply with quote

Thanks for the reply, makes sense.

Kind regards
mic
Back to top
View user's profile Send private message
gsra99
n00b
n00b


Joined: 06 Jan 2008
Posts: 61

PostPosted: Sat May 10, 2008 9:43 pm    Post subject: vmware and disk wirte privileges Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 6609

PostPosted: Sat May 10, 2008 9:51 pm    Post subject: Re: vmware and disk wirte privileges Reply with quote

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
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 683
Location: Alaska

PostPosted: Sun May 11, 2008 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 303
Location: Namur, Belgium

PostPosted: Tue May 26, 2009 7:08 am    Post subject: Re: vmware and disk wirte privileges Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum