Article View: nl.comp.programmeren
Article #723Re: Paralelle Poort acess als gewone user?
From: Rick Schippers
Date: Sat, 06 Nov 1999 00:00
Date: Sat, 06 Nov 1999 00:00
27 lines
2036 bytes
2036 bytes
Bart Vandewoestyne wrote: > > Ik zou willen een programma schrijven om de parallelle poort te sturen. > Ik wil dit programma als gewone user kunnen uitvoeren. Tot nu toe slaag > ik erin om het programma goed te doen lopen als root. In de Linux I/O > port programming mini-HOWTO vond ik het volgende: > > The ioperm() call requires your program to have root privileges; thus > you need to either run it as the root user, or make it setuid root. You > can drop the root privileges after you have called ioperm() to enable > the ports you want to use. You are not required to explicitly drop your > port access privileges with ioperm(..., 0) at the end of your program; > this is done automatically as the process exits. [KNIP] Kan je niet gewoon na het compilen 'chmod +s foo' doen, waarbij foo dus je gecompilede executable is. Of denk ik nou veel te simpel? Rick -- E-Mail: ricks@telebot.com ICQ: 18900164 Homepage: http://come.to/skaterick Uptime: 11:53pm up 4:16, 1 user, load average: 0.46, 0.49, 0.47
Technical Details
Message-ID:
<3824B19D.DE89FA3C@telebot.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3824ACD8.A1206590@skynet.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100a19,100fd66209ba543c X-Google-Attributes: gid100a19,public X-Google-Thread: 107324,100fd66209ba543c X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,100fd66209ba543c X-Google-Attributes: gidfcea4,public X-Google-Thread: fb7d6,100fd66209ba543c X-Google-Attributes: gidfb7d6,public From: Rick Schippers <ricks@telebot.com> Subject: Re: Paralelle Poort acess als gewone user? Date: 1999/11/06 Message-ID: <3824B19D.DE89FA3C@telebot.com> X-Deja-AN: 545350480 Content-Transfer-Encoding: 7bit References: <3824ACD8.A1206590@skynet.be> X-Accept-Language: nl, en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@wxs.nl X-Trace: reader1.wxs.nl 941929457 19141 195.121.208.35 (6 Nov 1999 23:04:17 GMT) Organization: The Borg Collective Mime-Version: 1.0 NNTP-Posting-Date: 6 Nov 1999 23:04:17 GMT Newsgroups: nl.comp.programmeren,be.comp.os.linux,be.comp.programming,nl.comp.os.linux