HP3000-L Archives

March 2007, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
john pitman <[log in to unmask]>
Reply To:
john pitman <[log in to unmask]>
Date:
Thu, 8 Mar 2007 08:52:34 +1100
Content-Type:
text/plain
Parts/Attachments:
text/plain (95 lines)
Thanks for the ideas guys, but no wiser, but see below

When I run the program as MGR, it works. When I run it as a lesser user,
fails to open files that are there. 
I have changed owner of the sub directory to be that of non-mgr user, done a
chmod 555 and then 777 on all the files, no go. Added AL and AM to user,
still no go. Always getting a 50 from errno, but bad account doesn't make
sense, if it works as MGR?

Anyway, have just tried making the file name relative, rather than absolute,
and that seems to have fixed it....but why? The user is a member of the
account (obviously!)....

Thanks
john

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf
Of Donna Hofmeister
Sent: Thursday, 8 March 2007 3:59 AM
To: [log in to unmask]
Subject: Re: [HP3000-L] posix question....

by saying '/dir' -- you're implying this directory is hanging off of root?
could your syntax be wrong and you really want './dir'  or possibly
'../dir'?  anyhow....

you are also implying that the directory command is being issued for the
entire directory.  the permission for the *directory* (not the files) will
allow access to what's below 'dir'.  that you can see into the directory as
'mgr' (and mgr is probably the creator) isn't suprising.       - d

----- 
Donna Hofmeister, HP-CSA Sr. System Programmer
dgarverick -at- longs -dot- com
925-210-6631 Longs Drug Stores

>>>MY opinions, not Longs Drug Stores'<<<


----- Original Message ----
From: john pitman <[log in to unmask]>
To: [log in to unmask]
Sent: Tuesday, March 6, 2007 10:24:59 PM
Subject: [HP3000-L] posix question....


I have a funny one.



A user is running a program that creates files in a posix dir - /xyz say. A
batch job under a different logon then ftps the files to another system, and
renames the files to another posix dir, say    /abc. This means the /abc
files are listed as created by the batch job user.



Next day, user runs same program again. This checks for existence of files
in   /abc dir, and all the opens fail, with errno = 50. Even if I do  a
chmod 777 on the first file, the open still fails.even though I can see the
file as the session user, and I can cat it to the terminal..

What am I missing here please?



If I run the program as MGR, it all works fine..



Thanks,

john




* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


 
____________________________________________________________________________
________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2