> it works exactly as you say. The devices are created only when I try
to
> access them, They are not there before.
> The reason it did not work for me before was that I tried to use those
> devices as a normal non-root user.
> When those devices are created, root is the owner and the perms are
> rw-------.
> 
> So I guess I will have to edit /etc/devfs.conf and add something about
> permissions (I think I saw some commands in man pages).
> 

1. Install the latest pam
2. Add to /etc/devfsd.conf:

REGISTER        .*      CFUNCTION
/lib/security/pam_console_apply_devfsd.so pam_console_apply_single
$devpath

(single line of course)

3. remove or comment out these lines from devfsd.conf (they are
redundant with the above change):

#REGISTER       sound/.*        EXECUTE /sbin/pam_console_apply
#REGISTER       snd/.*          EXECUTE /sbin/pam_console_apply

4. Edit /etc/security/console.perms in obvious way (man console.perms)

5. enjoy :-)

-andrej

Reply via email to