[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How can i call a function which is usually used by root?



2008/12/2 Wildemar Wildenburger wrote:
And if you absolutely have to use the device files, then you could
always change their permissions. Not that that's recommended, just
saying.

Changing permissions is not wise as it allows a user to bypass filesystem permissions.

A possibility is for the OP to read up on setuid and setgid; that offers the potential to restrict a user to what a program will allow rather than allowing unfettered access to a device (assuming no security holes in the application).

--
Paul

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]