COE Home

COE Discussion Forum

This is an open forum for CATIA & CADAM users worldwide. Feel free to discuss any issues pertaining to CATIA/CADAM software, hardware platforms, Operating System software, Training & Support.

The intent is to provide a discussion area where users can help each other, no matter what time zone you're in! COE retains the right to delete any posting, which in the judgment of the Board of Directors, is not in the interest of the User Community.



BackRefreshOptionsSearchHelp

load module can't set userid to root
How do I supress this bogus "error" message? David Filmer 09/03/02
The module to which JS0PSC is a link should be suid root Leonard E. Salika 09/04/02
Messy, messy, messy David Filmer 09/09/02
alternative solution Gary Hornyak 09/10/02
Don't forget that there are more suid root executables ... Leonard E. Salika 09/10/02

Post new message in this thread


TopPreviousNextPrintReply

Date: September 03, 2002 06:20 PM
Author: David Filmer (DavidFilmer@Freightliner.com)
Subject: How do I supress this bogus "error" message?

Anytime I run any CATIA utilities, I get a completely spurious message (both to the console as well as to the CATWHATEVER.out file) that says:

JS0PSC load module can't set userid to root: Not owner
Check aix file permission: Not owner

It appears that something in the utility is trying to do a suid to root (a pretty stupid thing to try to do). The "error" is bogus and irrelevant; the utility goes on to process normally and succeed or fail on its own merits.

Unfortunately, while I know this is bogus, USERS don't, and are often troubled by an apparent problem. Does anyone know how I can supress this behavior to avoid confusing the users?

(http://neo3.sba.com/forums/Index.cfm?CFApp=57&Message_ID=73625)




TopPreviousNextPrintReply

Date: September 10, 2002 09:13 AM
Author: Gary Hornyak (ghornyak@us.ibm.com)
Subject: alternative solution

Another possible solution to eliminate the message would be to modify the shell scripts (such as catutil) to remove the procedure call to "cleaner" which calls the JS0PSC program or redirect the output (stderr) of JS0PSC to /dev/null, (similar to what is done in the catini shell script, which also invokes JS0PSC).

What JS0PSC Does and Why setuid is needed?: The JS0PSC program makes a call to the AIX program "slibclean" which is the reason for the setuid to root. The following is extracted from "man slibclean", in case you are not familiar with this program:

'The slibclean command unloads all object files with load and use counts of 0. It can also be used to remove object files that are no longer used from both the shared library region and in the shared library and kernel text regions by
removing object files that are no longer required.'

On today's workstations with large amounts of physical memory, it probably isn't as important to execute the slibclean as it was when workstations had 64 MB (or less) of real memory. Given the "special purpose" of the JS0PSC program (basically does the code to run with root privilege, executes the slibclean utility as root then exits) the risk of allowing JS0PSC to run setuid root is little or none.
If you do do choose to enable the setuid on DFS, I believe you also need to execute the DFS command "cm setsetuid" on the DFS "mount point" of the CATIA binaries. Otherwise, it may be best to modify the shell scripts that invoke the JS0PSC program, rather than attempt to modify the JS0PSC program. Hope this helps.

(http://neo3.sba.com/forums/Index.cfm?CFApp=57&Message_ID=73724)