- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Limit interactive login to a user
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
Discussions
Discussions
Forums
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
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
тАО05-09-2006 04:36 AM
тАО05-09-2006 04:36 AM
Limit interactive login to a user
can login interactively?
Let say I want user XYZ to be able to login
interactively only two times, but he should be
able to run as many process as he need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 04:41 AM
тАО05-09-2006 04:41 AM
Re: Limit interactive login to a user
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 04:54 AM
тАО05-09-2006 04:54 AM
Re: Limit interactive login to a user
note that /MAXJOBS also limits the batch, detached and network jobs for the user. See UAF> HELP MOD/MAXJOBS
The user can spawn as many subprocesses as PRCLM allows (per each job).
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 05:00 AM
тАО05-09-2006 05:00 AM
Re: Limit interactive login to a user
avoid. The user I am trying to limit generates many batch job while login in and some of the batch jobs do inter-process communication while executing the task.
But I don't want this user to login more than twice interactively because they always stay in the system for days and causes other problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 05:03 AM
тАО05-09-2006 05:03 AM
Re: Limit interactive login to a user
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 05:29 AM
тАО05-09-2006 05:29 AM
Re: Limit interactive login to a user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 05:53 AM
тАО05-09-2006 05:53 AM
Re: Limit interactive login to a user
the following may not be 'simple', but it seems to work ;-)
This is a complex PIPE statement based on the following ITRC entry:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=876934
$ pipe show user 'F$GETJPI("","USERNAME") |
search sys$pipe/noout/stat 'F$GETJPI("","USERNAME") | search sys$pipe matched | ( read sys$pipe x ; y=F$ELEMENT(2," ",F$EDIT(x,"TRIM,COMPRESS")) ; def/job count &y )
The job-wide logical COUNT would contain the no. of times this user is logged in simultaneously cluster-wide. You can then base further decisions during SYLOGIN.COM on the value of this logical.
Volker.
PS: You might want to use your browser's View Source Text function to read and copy the above pipe statement. Note that it's all one DCL line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 01:33 PM
тАО05-09-2006 01:33 PM
Re: Limit interactive login to a user
You can also check the Process Name of the process from within SYLOGIN.COM (or a group LOGIN.COM invoked by SYLOGIN.COM). The first interactive process is automatically assigned a process name corresponding to the username. The second process (on that cluster node) is assigned a process name based on the login device. If the process name <> the username, then you could just LOGOUT the process.
It is a little more complex, but something similar could be done on a clusterwide basis with a little thought.
I hope that the above is helpful.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 07:19 PM
тАО05-09-2006 07:19 PM
Re: Limit interactive login to a user
a slight correction:
You may want to include the argument for the first SEARCH command with a leading and trailing space, to prevent false matches, if the login username happens to be a substring of another logged in username, i.e. use:
" ''F$EDIT(F$GETJPI("","USERNAME"),"TRIM")' "
Volker.