[wellylug] cron trouble
Tim Nicholas
tim at nicholas.net.nz
Thu Jun 10 23:24:59 NZST 2004
On redhat systems (I don't know which others... seemingly not debian)
access to devices like dsp is controlled by pam_console and
pam_console_apply.
Basically, when a user logs in in one of the terminals defined in
/etc/security/console.perms (lines starting '<console>=' or
'<xconsole>=') PAM changes the permissions on all the relevant devices
(also defined in that file) making them owned by the user who logged in.
When the user logs out and when the system boots, pam_console_apply gets
run. It sets the ownership of the devices back to the defaults (mostly
root.root).
I suggest that you change to use the debian model of device ownership.
Remove the devices you want access to from console.perms and manually
change the ownership to, for example, user root and group audio,
permissions 660. Then add all the users who need access to the device to
the audio group.
Tim
On 06/10/04 09:48, JP wrote:
> --- Andrej Ricnik wrote: > On Wed, 09 Jun 2004 23:24,
>
>>You could try to force it to be a login-shell
>>by wrapping it into a su - ct -c
>
>
> Thanks Andrej. I tried that -- no joy. I also tried
> messing with the PAM settings for cron, but cron
> doesn't seem to support the pam_group.so library at
> all.
>
> Using sudo is a possibility, since root certainly has
> access to /dev/dsp, but I'd prefer not to go granting
> root willy-nilly.
>
> Cheers
> Tony
>
> ________________________________________________________________________
> Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/
>
>
--
Tim Nicholas || Cilix
Email: tim at nicholas.net.nz || Wellington, New Zealand
http://tim.nicholas.net.nz/ || Cell/SMS: +64 21 337 204
More information about the wellylug
mailing list