Re: [opensuse-factory] permissions for sound, dvd, etc

2006-08-22 Thread Stanislav Brabec
Andreas píše v Po 21. 08. 2006 v 12:05 -0700:
 I would like to change the default permissions for the sound devices and 
 the removable media. Right now (10.2 Alpha 3) the first user wins, 
 meaning whoever logs on first gets the exclusive rights on the devices. 
 Not very user friendly, except when you're the first one.

 I figured it's got to be somewhere between udev, hal, resmgr and 
 PolicyKit. Perhaps with pam also involved? Or is there another 
 mechanism I didn't even think of (yet)?

pam_devperm does it for X sessions:
/etc/pam.d/gdm
/etc/pam.d/gdm-autologin
/etc/pam.d/xdm

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
-
SUSE LINUX, s. r. o.  e-mail: [EMAIL PROTECTED]
Lihovarská 1060/12tel: +420 284 028 966
190 00 Praha 9fax: +420 284 028 951
Czech Republichttp://www.suse.cz/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-factory] permissions for sound, dvd, etc

2006-08-22 Thread Ludwig Nussel
On Monday 21 August 2006 21:05, Andreas wrote:
 I would like to change the default permissions for the sound devices and 
 the removable media. Right now (10.2 Alpha 3) the first user wins, 
 meaning whoever logs on first gets the exclusive rights on the devices. 
 Not very user friendly, except when you're the first one.

That's not the case. All users logged in via console or xdm have access to
sound devices thanks to resmgr (provided that the kernel supports
ACLs on /dev). Mounting of removeable media is likely broken due to
PolicyKit not beeing properly integrated yet, that's a problem
unrelated to device permissions.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-factory] permissions for sound, dvd, etc

2006-08-22 Thread Andreas
El Martes, 22 de Agosto de 2006 01:50, Ludwig Nussel escribió:
 That's not the case. All users logged in via console or xdm have
 access to sound devices thanks to resmgr (provided that the kernel
 supports ACLs on /dev). Mounting of removeable media is likely broken
 due to PolicyKit not beeing properly integrated yet, that's a problem
 unrelated to device permissions.

Ludwig,
without tweaking anything, right after a vanilla installation, the 
devices /dev/dsp and everything in /dev/snd has the permissions 0600 
for the first user who logs in. subsequently logged in users do *not* 
have any sound. Actually, a KDE session for such users starts with an 
error Message from arts about the default device being busy. Xine-ui or 
any other player with direct access to e.g. alsa also sheds an error 
message about the sound device. After manually changing the file 
permissions in /dev sound works for the other users too, as expected.

If this is not the default behaviour (as I thought), should I file a bug 
report?

-- 
Gruß
Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-factory] permissions for sound, dvd, etc

2006-08-22 Thread Marcus Meissner
On Tue, Aug 22, 2006 at 08:22:01AM -0700, Andreas wrote:
 El Martes, 22 de Agosto de 2006 01:50, Ludwig Nussel escribió:
  That's not the case. All users logged in via console or xdm have
  access to sound devices thanks to resmgr (provided that the kernel
  supports ACLs on /dev). Mounting of removeable media is likely broken
  due to PolicyKit not beeing properly integrated yet, that's a problem
  unrelated to device permissions.
 
 Ludwig,
 without tweaking anything, right after a vanilla installation, the 
 devices /dev/dsp and everything in /dev/snd has the permissions 0600 
 for the first user who logs in. subsequently logged in users do *not* 
 have any sound. Actually, a KDE session for such users starts with an 
 error Message from arts about the default device being busy. Xine-ui or 
 any other player with direct access to e.g. alsa also sheds an error 
 message about the sound device. After manually changing the file 
 permissions in /dev sound works for the other users too, as expected.
 
 If this is not the default behaviour (as I thought), should I file a bug 
 report?

Check if they have ACLs. (+ in ls -l output).

Alpha3 is known to have bugs here, so you can open a bugreport.

Ciao, Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-factory] permissions for sound, dvd, etc

2006-08-22 Thread Andreas
El Martes, 22 de Agosto de 2006 09:11, Marcus Meissner escribió:
 Check if they have ACLs. (+ in ls -l output).

 Alpha3 is known to have bugs here, so you can open a bugreport.

 Ciao, Marcus
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

No ACL's.
ls -l output:
[EMAIL PROTECTED]:~ ls -l /dev/audio /dev/*dsp /dev/mixer /dev/snd/*
crw--- 1 andreas audio  14, 12 2006-08-22 21:26 /dev/adsp
crw--- 1 andreas audio  14,  4 2006-08-22 21:26 /dev/audio
crw--- 1 andreas audio  14,  3 2006-08-22 21:26 /dev/dsp
crw--- 1 andreas audio  14,  0 2006-08-22 21:26 /dev/mixer
crw--- 1 andreas audio 116,  9 2006-08-22 14:26 /dev/snd/controlC0
crw--- 1 andreas audio 116,  8 2006-08-22 14:26 /dev/snd/pcmC0D0c
crw--- 1 andreas audio 116,  7 2006-08-22 14:26 /dev/snd/pcmC0D0p
crw--- 1 andreas audio 116,  6 2006-08-22 14:26 /dev/snd/pcmC0D1c
crw--- 1 andreas audio 116,  5 2006-08-22 14:26 /dev/snd/pcmC0D2c
crw--- 1 andreas audio 116,  4 2006-08-22 14:26 /dev/snd/pcmC0D3c
crw--- 1 andreas audio 116,  3 2006-08-22 14:26 /dev/snd/pcmC0D4p
crw--- 1 andreas audio 116, 10 2006-08-22 21:26 /dev/snd/seq
crw--- 1 andreas audio 116,  2 2006-08-22 14:26 /dev/snd/timer

I filed a bug report at 
https://bugzilla.novell.com/show_bug.cgi?id=201055

-- 
HTH
Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-factory] permissions for sound, dvd, etc

2006-08-21 Thread Juan Erbes

2006/8/21, Andreas [EMAIL PROTECTED]:

I would like to change the default permissions for the sound devices and
the removable media. Right now (10.2 Alpha 3) the first user wins,
meaning whoever logs on first gets the exclusive rights on the devices.
Not very user friendly, except when you're the first one.

So I tried changing the rules for udev as laid out in /etc/udev/rules.d,
but to no avail. I managed to change the group for the devices, but not
the permissions (from 0600 to 0666 or at least 0644).

I then learned about resmgr and went and changed the
file /etc/resmgr.conf.d/99-desktop.conf and added some rules for sound
and cdrom devices. Still no success.

The next stop was in/etc/PolicyKit/privilege.d. There is a bunch of
files which allegedly take care of permissions for all kinds of
devices. I changed the file hal-storage-removable-mount-privilege, but
that did not have any effect on the permissions for my dvd drive or the
usb stick.

Before I finally mess up the hal configuration (I already checked: it's
in /usr/share/hal and /etc/hal) I was wondering if anyone knows where I
actually have to tweak my system to let the other users hear sound and
mount dvd's (or at least play a video dvd with kaffeine  friends).

I figured it's got to be somewhere between udev, hal, resmgr and
PolicyKit. Perhaps with pam also involved? Or is there another
mechanism I didn't even think of (yet)?



I have similar problems, and as user I can't mount any removable
device (CD, DVD, pendrive, etc.
In /media I found the file .hal-mtab-lock, and the content of mtab is:
/dev/sda2 / reiserfs rw,acl,user_xattr 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
debugfs /sys/kernel/debug debugfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
/dev/sda4 /home reiserfs rw,acl,user_xattr 0 0
/dev/sda3 /windows/C vfat rw,noexec,nosuid,nodev,gid=100,umask=0002 0 0
automount(pid2991) /misc autofs rw,fd=4,pgrp=2991,minproto=2,maxproto=4 0 0
automount(pid2993) /net autofs rw,fd=4,pgrp=2993,minproto=2,maxproto=4 0 0

When I insert a Cd appear the popup window in kde asking what to do,
and I press ok, appear other window empty and a label Permiso
denegado.
Only can mount as root in Konsole, with the command: mount /dev/hda /media
The other problem is with digikam, when it try to connect to the cam, it closes.

Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-factory] permissions for sound, dvd, etc

2006-08-21 Thread Rajko M
Juan Erbes wrote:

 In /media I found the file .hal-mtab-lock,

Remove it and try again. It might be leftover of some crash.

-- 
Regards,
Rajko.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]