Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Running custom menu as another user
johnjamesmarsh
Hi,
I have a lot of CGI menu items that I want my users to execute that require more privileges than the user has (such as creating a temporary branch and workarea). I am wondering is there any way I can give the user the permission to do this from a custom menu item. I know I can do it from a workflow but that means starting a custom menu item that starts a workflow that calls a CGI task.
Anyone have any better ideas?
We are using TS 5.5.2 on Solaris 8.
Thanks
John
Find more posts tagged with
Comments
Migrateduser
Depending on where you want to create a branch, the user has to be master or administrator, correct? So let a master or administrator userid own the custom menu cgi and do a setuid on the owner like
chmod 4775 yourcustommenu.cgi
The script will then execute as the owner now.
And make sure you're calling /iw-bin/yourcustommenu.cgi and not /iw-bin/iw_cgi_wrapper.cgi/yourcustommenu.cgi.
We have scripts that are owned by root, so they are executed as root since some of them need permission to edit the role files, group file etc., but you have to be wary about which scripts can have root permission.
Thanks
Migrateduser
If you run your scripts as root, you also have to handle perl taint issues.
http://gunther.web66.com/FAQS/taintmode.html
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com