1. Linux Question

Sorry to interrupt the debate.

Can anyone explain to me.
If I write a program using a Linux I/O so library that
requires the user to have Super User permissions to
run the program. Then if I statically link library and the program
will the program still require these same permissions.
If this is true then how can anyone write software that can be
used by all users on a linux system.

Bernie

new topic     » topic index » view message » categorize

2. Re: Linux Question

-rwxr-xr-x permissions for the file. 
chmod 755 my-library.so   ?
maybe I misunderstand your question or Linux, my Linux is as rough as my
Windows.

2/10/2002 4:49:32 PM, Bernie Ryan <xotron at localnet.com> wrote:

>
>Sorry to interrupt the debate.
>
>Can anyone explain to me.
>If I write a program using a Linux I/O so library that
>requires the user to have Super User permissions to
>run the program. Then if I statically link library and the program
>will the program still require these same permissions.
>If this is true then how can anyone write software that can be
>used by all users on a linux system.
>
>Bernie
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Linux Question

On Sunday 10 February 2002 04:49 pm, Bernie Ryan wrote:

> Sorry to interrupt the debate.
>
> Can anyone explain to me.
> If I write a program using a Linux I/O so library that
> requires the user to have Super User permissions to
> run the program. Then if I statically link library and the program
> will the program still require these same permissions.
> If this is true then how can anyone write software that can be
> used by all users on a linux system.

Turning off execute privileges on the .so for everyone doesn't affect 
the operation at all.
If the shared library is readable by others, it'll work.
If no one but the owner can read it, then only it won't.

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

4. Re: Linux Question

Oops.  That's what I meant in my previous post, too.
-rwxr--r--
chmod 744, right?

2/10/2002 6:49:07 PM, Irv Mullins <irvm at ellijay.com> wrote:

>
>On Sunday 10 February 2002 04:49 pm, Bernie Ryan wrote:
>
>> Sorry to interrupt the debate.
>>
>> Can anyone explain to me.
>> If I write a program using a Linux I/O so library that
>> requires the user to have Super User permissions to
>> run the program. Then if I statically link library and the program
>> will the program still require these same permissions.
>> If this is true then how can anyone write software that can be
>> used by all users on a linux system.
>
>Turning off execute privileges on the .so for everyone doesn't affect 
>the operation at all.
>If the shared library is readable by others, it'll work.
>If no one but the owner can read it, then only it won't.
>
>Regards,
>Irv
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu