On Fri, 14 Dec 2001, Carey F. Cox wrote:
> > >How can I set permissions on devices under /dev, i.e. /dev/sg0?
> >
> > Just like you would a file, e.g.
> > chmod 644 /dev/sg0
>
> I guess I should have been more clear. What I want is the functionality
> of assigning certain devices to the user. This will work for devices
> listed in fstab, but not devices such as a SCSI scanner, which is what
> I want access to. What you suggest would work well for a mostly single
> user system, but I worry about security on multi-user systems.
Well, if your users are logging in locally, then you can use the
functionality provided by the pam console module. Look at the file
/etc/security/console.perms for information.
Otherwise, just to the standard UNIX thing: create a group for the device,
chown root.group /dev/thedevice, and add your users to that group.
--
If I had a dollar for every brain that you don't have,
I'd have one dollar. - Squidward to SpongeBob
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list