Welcome, Guest. Please login or register.

Login with username, password and session length
Pages: [1]   Go Down
Print
Author Topic: System command and PFSYSEUID variable  (Read 1294 times)
0 Members and 1 Guest are viewing this topic.
Lauren
Administrator

Posts: 176


View Profile
« on: May 29, 2008, 09:25:31 AM »

System command and PFSYSEUID variable – submitted by Chris Henschen

As some of you may have found out Linux and SCO handle the use
of the setuid bit differently. (setuid bit is the S or 4775 in
chmod dclerk, dreport, etc is set to) Linux when running an
application with this set will revert back to the login accounts
access where SCO maintains the access of the account, in our case
"filepro". This recently caused me problems since the Java
Virtual Machine runs in the users home folder, and was confused
with where things were located. Anyways we found that by using
the environmental variable PFSYSEUID=no the system command is
run as the user and not filePro. This might come in handy for
something along the line. Therefore my processing in this case
was as follows that worked:

166 ------- - - - - - - - - - - - - - - - -
◄ If: @OS ne "DOS" and @OS ne "windows"
Then: putenv "PFSYSEUID","no"
167 ------- - - - - - - - - - - - - - - - -
◄ If: @OS ne "DOS" and @OS ne "windows"
Then: system "PATH=$PATH:/usr/java/bin;export PATH;umask 000;"{javacmd
168 ------- - - - - - - - - - - - - - - - -
◄ If: @OS eq "DOS" or @OS eq "windows"
Then: system javacmd

Hope you find this helpful, as if I knew this years ago I
could have executed character Unix WP and been able to
print without a problem too.
« Last Edit: May 30, 2008, 02:19:02 PM by Lauren » Logged
Pages: [1]   Go Up
Print
Jump to:  

Valid XHTML 1.0! Powered by SMF 1.1.15 | SMF © 2011, Simple Machines | Massive Blue Theme By Cadosoas Valid CSS!