You are not logged in.

#1 2011-04-18 21:06:27

amadar
Banned
Registered: 2011-04-15
Posts: 147

How to give user permission to access dev/sr0?

I've tried putting my user in the disk, cdrom, and optical groups, but VirtualBox still tells me that my user doesn't have access to the cd-rom drive. It suggests putting my user in the "device" group but I don't believe that group is used in Arch Linux. How do I give my user permission for the cdrom drive so VirtualBox can continue?

Offline

#2 2011-04-18 21:10:08

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: How to give user permission to access dev/sr0?

Standard permission on /dev/sr0 is Access: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (   93/ optical)  so it should work.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2011-04-18 21:13:27

amadar
Banned
Registered: 2011-04-15
Posts: 147

Re: How to give user permission to access dev/sr0?

The command "ls -l /dev/sr0" shows

brw------- 1 root root 11, 0 Apr 18 13:23 /dev/sr0

for me. I notice it doesn't have the second "rw" like yours does. Is that the problem?

Last edited by amadar (2011-04-18 21:14:25)

Offline

#4 2011-04-18 21:25:06

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 346

Re: How to give user permission to access dev/sr0?

Can you tell us the content of /etc/fstab ?

Also, are you using a Desktop Environment like Gnome or KDE ? They use PolicyKit to manage permission which may or may not be a problem

Edit: Sorry forget what I said, if /dev/sr0 has the wrong permission, it may be an udev problem instead

Last edited by ChoK (2011-04-18 21:26:44)


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

#5 2011-04-18 21:46:04

amadar
Banned
Registered: 2011-04-15
Posts: 147

Re: How to give user permission to access dev/sr0?

Sure, here's fstab:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 0 1
/dev/sda4 /home ext4 defaults 0 1

Should I uncomment or add any lines?

I'm using Gnome 3 in fallback mode (since gnome-shell won't work apparently).

What do you think might be up with UDEV?

Last edited by amadar (2011-04-18 21:51:53)

Offline

#6 2011-04-18 22:22:17

amadar
Banned
Registered: 2011-04-15
Posts: 147

Re: How to give user permission to access dev/sr0?

Well, anyways, I changed the group for /dev/sr0 to "optical" and my user already belongs to the "optical" group so that solved the problem. Initially, the group for /dev/sr0 was "root". Isn't it supposed to be "disk" or "optical" by default though?

Also, I noticed during boot that "Waiting for UDev uevents to be processed" takes ridiculously long (more than a minute). Might that be related?

EDIT: Hmmmm.... it appears UDev times out after 180 seconds after having changed sr0 from root group to optical group... I'll see if changing it back to root returns my boot to normal...

EDIT#2: That doesn't appear to have anything to do with it. Grrr. Why are my users unable to use sr0 with default Arch settings?

Last edited by amadar (2011-04-18 22:40:42)

Offline

#7 2011-04-18 23:37:49

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: How to give user permission to access dev/sr0?

udev do have something to do with it. The default udev rules do set the ownership to root:optical


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB