- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- com file fails immediately but runs OK when it's r...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 03:28 AM
11-03-2006 03:28 AM
com file fails immediately but runs OK when it's renamed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 03:36 AM
11-03-2006 03:36 AM
Re: com file fails immediately but runs OK when it's renamed
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 03:40 AM
11-03-2006 03:40 AM
Re: com file fails immediately but runs OK when it's renamed
Welcome to the OpenVMS ITRC Forum.
If a half-dozen folks, supposedly actually looking at the system can not figure it out, how do you expect us to help?
You'll need to show us many more detials, notably about the file protections involved.
On potential setup which will cause a similar problem is when a remain list file does not allow delete. If deletes are not allowed, then new creates are also not allowed as for many users the new file effectively deletes the old one, by making it invisible (harder to read).
$
$
$ create tmp.tmp
aap
Exit
$ create tmp.tmp
noot
Exit
$ set prot=(o,g,s,w) tmp.tmp.1
$ dir/prot tmp.tmp.*
Directory EISNER$DRA3:[DECUSERVE_USER.HEIN.TMP]
TMP.TMP;2 (RWED,RWED,,)
TMP.TMP;1 (,,,)
Total of 2 files.
$ create tmp.tmp
mies
Exit
$ del tmp.tmp.
$ del tmp.tmp.
$ create tmp.tmp
%CREATE-E-OPENOUT, error opening EISNER$DRA3:[DECUSERVE_USER.HEIN.TMP]TMP.TMP; as output
-RMS-E-PRV, insufficient privilege or file protection violation
The manual run may have used different privs, and once a good new file is in place, hiding the overly protected one, all will seem well. But any future simple wildcard delete will leave only the protect one, which in turn will prevent new creates with a priv violation.
Hope this helps,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 03:42 AM
11-03-2006 03:42 AM
Re: com file fails immediately but runs OK when it's renamed
you did. For example, "@ FRED" may differ
from "@ FRED.COM", if "FRED" is a logical
name. Renaming it would evade the logical
name. Many things are possible; too many to
guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 04:01 AM
11-03-2006 04:01 AM
Re: com file fails immediately but runs OK when it's renamed
My example shows the message you report, but before it is also shows a critical section indicating it was a failure to create xyz.
At this point we can only speculate whether the real problem was with a priv getting the the command file, or with something it tries to do.
It might help to clarify this for yourself by adding a first lien to the script with:
$write sys$output "hello world"
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 04:32 AM
11-03-2006 04:32 AM
Re: com file fails immediately but runs OK when it's renamed
If it's like the similar problem I've had, try the following:
Create a dummy log file with an editor and set the ownership and privileges to the same as other files in the same directory. Then the batch job will use the ownership of the existing file, instead of it's own, when it createsa the new log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 04:38 AM
11-03-2006 04:38 AM
Re: com file fails immediately but runs OK when it's renamed
Here are the exact error messages:
%%%%%%%%%%% OPCOM 3-NOV-2006 12:20:27.13 %%%%%%%%%%%
Message from user AUDIT$SERVER on NOAH
Security alarm (SECURITY) and security audit (SECURITY) on NOAH, system id: 1028
Auditable event: Batch process login failure
Event time: 3-NOV-2006 12:20:27.12
PID: 20245EDC
Process name: BATCH_231
Username: PROS_USER
Process owner: [D_MAIL,PROS_USER]
Image name: $1$DIA0:[SYS1.SYSCOMMON.][SYSEXE]LOGINOUT.EXE
Status: %RMS-E-PRV, insufficient privilege or file protection
violation
BATCH1-on-NOAH->
%%%%%%%%%%% OPCOM 3-NOV-2006 12:32:02.38 %%%%%%%%%%%
Message from user AUDIT$SERVER on NOAH
Security alarm (SECURITY) and security audit (SECURITY) on NOAH, system id: 1028
Auditable event: Batch process login failure
Event time: 3-NOV-2006 12:32:02.36
PID: 20242D1A
Process name: BATCH_233
Username: KAIS_USER
Process owner: [D_MAIL,KAIS_USER]
Image name: $1$DIA0:[SYS1.SYSCOMMON.][SYSEXE]LOGINOUT.EXE
Status: %RMS-E-PRV, insufficient privilege or file protection
violation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 04:54 AM
11-03-2006 04:54 AM
Re: com file fails immediately but runs OK when it's renamed
I don't think it's a matter of the name of the file, but how the file is executed.
What is going on is.... when a batch job is submitted, when the batch process is created, the process actually runs a login, which includes reading the user authorization file and attempting to write a .log file to the default login directory, or another file.
For some reason, this job is unable to complete this login process.
Is the first job being performed in batch, the other interactively? Are they being sumbitted by the same user ID?
If the same file is executed by
exactly the same user with
@myjob
Does it get the exact same results?
Does the order of the job effect it?
Is there a symbol or logical name with the
file name?
Have fun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 05:10 AM
11-03-2006 05:10 AM
Re: com file fails immediately but runs OK when it's renamed
- if both users are able to log in interactively
- the protection of the various login files, e.g. SYLOGIN, LOGIN from UAF-record
- protection on default directory and on the submitted com-file
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 06:01 AM
11-03-2006 06:01 AM
Re: com file fails immediately but runs OK when it's renamed
is the batch job specifying a log file?
If yes, is the log file actually created?
Your error message is from AUTHORIZE, so idf the log file cannot be created, this WOULD be the result.
But. like the others said, too little info to give anything more than speculation.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 06:10 AM
11-03-2006 06:10 AM
Re: com file fails immediately but runs OK when it's renamed
Enabling security auditng for failed operations should give details in the audit log.
But maybe my speculation was close.
What if there was a 'old-name.log' which is protect for delete access by the username fro the job and there is no, or not-protected 'new-name.log'. The log file, by default, takes teh name of the .com file, so your rename could push it to a different security environment.
How about a $DIR/SECU (or $DIR/PROT/OWN ) for both the old log file name and new log file name (all versions).
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 08:15 AM
11-03-2006 08:15 AM
Re: com file fails immediately but runs OK when it's renamed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 05:15 AM
11-08-2006 05:15 AM
Re: com file fails immediately but runs OK when it's renamed
"Thanks for all the help, folks;"
To express those thanks, review:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Proost.
Have one on me.
jpe