Home
TeamSite
Permission Problem
jajtiii
We are experiencing a very strange permission issue and I am wondering if there is some setting in 6.5 that I have overlooked.
(all of this works fine on the old 5.5.2 boxes)
In the DCT, we call an inline command which simply opens an XML file and reads it out. The ipl is :
my $file_in = $ARGV[0];
open(XMLFILE,"$file_in") or die "Couldn't open $file_in for reading: $!\n";
print <XMLFILE>;
close(XMLFILE);
exit(0);
The form of the command is <inline command = "[ipl] [path-to-xml]"/>
When I run the command and path from the command line, it works fine, but it fails (generating a 'Permission Denied' error) when doing a preview. In both cases, I am logged in as the same user (who has rights to read that file).
It seems to be failing on my 'open' perl call, as it keeps generating my error.
TS 6.5, OD w/DD 6.0.1
Solaris 9
Find more posts tagged with
Comments
Adam Stoller
What does the 'ls -l' output for the XML file look like?
I don't recall who the inline callout scripts run as - so you might need to make sure the XML file is world-readable or adjust the group-ownership of it somehow.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Valentine
if it is solaris, the script should be readable by the
iwui user
Check that the parent directory, and parent of a parent and so on, has an o+x permission
Also chck that file is world readable.
jajtiii
The file is definitely 'readable'. As mentioned in the original post, if I run the command and parameter from the command line, it works fine.
-r-xr-xr-x 1 teamsite TS_devteam 1157 Mar 7 08:41 categories.xml
-r-xr-xr-x 1 teamsite TS_devteam 508 Mar 7 08:41 colors.xml
-r-xr-xr-x 1 teamsite TS_devteam 603 Mar 7 08:41 groups.xml
-r-xr-xr-x 1 teamsite TS_devteam 1187 Mar 7 08:41 icons.xml
-r-xr-xr-x 1 teamsite TS_devteam 2195 Mar 7 08:41 locations.xml
I have actually set the IPL to world-executable, in the troubleshooting process.
Again, this thing works fine in 5.5.2. I am wondering if <inline commands> operate under different parameters or if there is a setting I am missing in 6.5.
TS 6.5, OD w/DD 6.0.1
Solaris 9
jajtiii
Also, as implied above, the IPL is getting called (my error catching is working). It simply fails on the 'file open' perl command, for some reason.
I monkeyed with the path parameter and it gave me a new error (file not found), so I am certain that it is finding the file...it only does not have the rights.
Again, if I login to Teamsite as USERA, it fails. IF I telnet as USERA, it works fine run from the command line.
TS 6.5, OD w/DD 6.0.1
Solaris 9
Migrateduser
I wonder if the output is possibly to blame. Maybe the format of your output is not what the DCT is expecting and instead of showing a more meaningful response, displays a permission denied error message.
Just a shot in the dark...
Dave
Current Environment(s):
(1) TS 6.1 SP2 on W2K3
(2) TS 6.1 SP2 on W2K
Migrateduser
Hi.
try with this as i suffered with the same earlier.
Go to the workarea (iwmnt/default...) and give the read and write permission to the users...
It shd work.
RG.
jajtiii
This thing is driving me crazy (it makes no sense.)
Here is the output of the ls command :
dr-xr-xr-x 3 teamsite TS_devteam 512 Jan 25 08:41 ..
-r-xr-xr-x 1 teamsite TS_devteam 1187 Mar 7 08:41 icons.xml
-r-xr-xr-x 1 teamsite TS_devteam 603 Mar 7 08:41 groups.xml
-r-xr-xr-x 1 teamsite TS_devteam 508 Mar 7 08:41 colors.xml
-r-xr-xr-x 1 teamsite TS_devteam 1157 Mar 7 08:41 categories.xml
-r-xr-xr-x 1 teamsite TS_devteam 2195 Mar 7 08:41 locations.xml
dr-xr-xr-x 2 teamsite TS_devteam 512 Mar 10 11:21 .
None of these files work.
To answer other questions :
1. If I simply copy the xml between the <substitution> tags and paste it where the inline command works, it works like a champ. (as mentioned, the thing works fine in ver 5.5.2)
2. I have gone so far as to make the above xml files and the get_filelist.ipl 777.
3. If I run this thing from the command line, it returns the expected results.
TeamSite seems to be translating either who is running the task or converting the actual permissions on the files.
TS 6.5, OD w/DD 6.0.1
Solaris 9
nipper
>open(XMLFILE,"$file_in") or die "Couldn't open $file_in for reading: $!\n";
What is the default open for Perl ?
try
open(XMLFILE,"<$file_in") or die "Couldn't open $file_in for reading: $!\n";
(just a guess)
jajtiii
After pulling out all of my hair, I decided to move the file to my user directory (/export/home/TS01master) and run the thing. It runs like a champ.
Getting tired, so I actually signed in as my uber account...this account owns nearly every file and directory in our system and is what TeamSite runs under. I logged into the TeamSite app as this user and attempted to open the DCR...get the same exact error...permission problem.
TS 6.5, OD w/DD 6.0.1
Solaris 9
nipper
Check the parent directories. Do they have world read access ?
Adam Stoller
At this point all I can suggest is contact support.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com