Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to correctly solve permissions problems (PAM)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Tue Jul 12, 2005 6:12 am    Post subject: How to correctly solve permissions problems (PAM) Reply with quote

Hi,

How do I set permissions on my system so users on audio group can access audio devices and users on scanner group can access the scanner? Everthing was running fine until last emerge -auDv world (I should have payed more attention to etc-update).


Thanks,

Gustavo
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Tue Jul 12, 2005 6:34 am    Post subject: Reply with quote

In /etc/security/console.perms
Code:

<console>  0600 <sound>      0660 root.audio
<console>  0600 <usb>        0660 root.usb
<console>  0600 <scanner>    0660 root.scanner


Also, check /etc/udev/permissions.d
Code:

# audio devices
dsp*:root:audio:0660
audio*:root:audio:0660
midi*:root:audio:0660
mixer*:root:audio:0660
sequencer*:root:audio:0660
sound/*:root:audio:0660
snd/*:root:audio:0660
beep:root:audio:0660
admm*:root:audio:0660
adsp*:root:audio:0660
aload*:root:audio:0660
amidi*:root:audio:0660
dmfm*:root:audio:0660
dmmidi*:root:audio:0660
sndstat:root:audio:0660

# scanner devices
scanner:root:scanner:0660
usb/scanner*:root:scanner:0660
Back to top
View user's profile Send private message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Tue Jul 12, 2005 7:08 am    Post subject: Reply with quote

Thanks. Is there a way I can "flush" the permissions without rebooting so I can test the system?
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Tue Jul 12, 2005 7:17 am    Post subject: Reply with quote

Edit: see next post

Last edited by /dev/random on Tue Jul 12, 2005 7:31 am; edited 1 time in total
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Tue Jul 12, 2005 7:22 am    Post subject: Reply with quote

If you're running udev you can repopulate by running udevstart as root.
Back to top
View user's profile Send private message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Tue Jul 12, 2005 7:31 pm    Post subject: Reply with quote

Sound seems to be working, but I still can't access the scanner. For the scanner I' m using libusb (not kernel modules) so it does not create any of the /dev/scanner dev's.

Here is what happens on a tipical attemp:

Code:


scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
gralves@gustavo ~ $ sudo  scanimage -L
Password:
device `plustek:libusb:002:002' is a Canon N670U/N676U/LiDE20 USB flatbed scanner


This is my console.perms:
Code:

# permission definitions
<console>  0660 <serial>     0660 root.tty
<console>  0660 <floppy>     0660 root.floppy
<console>  0600 <sound>      0660 root.audio
<console>  0600 <cdrom>      0660 root.cdrom
<console>  0600 <pilot>      0660 root.uucp
<console>  0600 <jaz>        0660 root.disk
<console>  0600 <zip>        0660 root.disk
<console>  0600 <ls120>      0660 root.disk
<console>  0600 <scanner>    0660 root.scanner
<console>  0600 <camera>     0600 root
<console>  0600 <memstick>   0600 root
<console>  0600 <flash>      0600 root
<console>  0600 <diskonkey>  0660 root.disk
<console>  0600 <rem_ide>    0660 root.disk
<console>  0600 <fb>         0600 root
<console>  0600 <kbd>        0600 root
<console>  0600 <joystick>   0600 root
<console>  0600 <v4l>        0600 root.sys
<console>  0700 <gpm>        0700 root
<console>  0600 <mainboard>  0600 root
<console>  0660 <burner>     0660 root.cdrw
<console>  0600 <usb>        0660 root.usb
<console>  0600 <rio500>     0600 root
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Tue Jul 12, 2005 7:35 pm    Post subject: Reply with quote

Check out https://forums.gentoo.org/viewtopic-t-355784-highlight-.html
Back to top
View user's profile Send private message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Tue Jul 12, 2005 10:58 pm    Post subject: Reply with quote

libsane had already installed that to me.

It works if I unplug the scanner and plug it again. The problem is that when I reboot the computer I have to disconnect the scanner and reconnect it for it to work.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Tue Jul 12, 2005 11:37 pm    Post subject: Reply with quote

gralves wrote:
libsane had already installed that to me.

It works if I unplug the scanner and plug it again. The problem is that when I reboot the computer I have to disconnect the scanner and reconnect it for it to work.

Do you have coldplug in the default runlevel?
Back to top
View user's profile Send private message
gralves
Guru
Guru


Joined: 20 May 2003
Posts: 389
Location: Sao Paulo, Brazil

PostPosted: Tue Jul 12, 2005 11:55 pm    Post subject: Reply with quote

It is at boot run-level. Should I change it to default?

edit:
Changed to default. Didn't work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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