- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Limiting number of interactive sessions for a spec...
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
тАО06-10-2009 08:34 AM
тАО06-10-2009 08:34 AM
Hardware: I64
OS: OpenVMS 8.3
Is there a simple way to limit the number of interactive terminal sessions a specific user account can open?
Thanks/
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 09:02 AM
тАО06-10-2009 09:02 AM
SolutionMODIFY user /MAXJOBS=n
However that limit applies to all job modes, not interactive.
The other approach is to put code in the users' LOGIN.COM that uses lexicals F$CONTEXT and F$PID to count the interactive sessions on either that node, or the entire cluster, and log off the user if the limit has been reached. Note that the account must have the RESTRICTED or CAPTIVE flag set to prevent the user from having an easy way to get around this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 09:03 AM
тАО06-10-2009 09:03 AM
Re: Limiting number of interactive sessions for a specific user.
Maxjobs
Maxacctjobs
Maxdetach
You could of course include some code in your sylogin script to control the number of interactive login's (on a node-by-node basis)
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 09:05 AM
тАО06-10-2009 09:05 AM
Re: Limiting number of interactive sessions for a specific user.
Otherwise I think the only choice you have is for code in SYLOGIN.COM to check for this user and interactive session.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 09:06 AM
тАО06-10-2009 09:06 AM
Re: Limiting number of interactive sessions for a specific user.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 09:29 AM
тАО06-10-2009 09:29 AM
Re: Limiting number of interactive sessions for a specific user.
the MAX parameter in UAF looks nteresting, BUT:
that way you should realise that a user restricted to n sessions that currently DOES use his n session CAN NOT print! That would create another (print-)job, which would get his totals over the limit, which would not be allowed.
IMHO, the way to go is already suggested by Jess. Careful DCL will do exactly all your specific requirements, and can have a clusterwide working.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 11:08 PM
тАО06-10-2009 11:08 PM
Re: Limiting number of interactive sessions for a specific user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 03:02 AM
тАО06-11-2009 03:02 AM
Re: Limiting number of interactive sessions for a specific user.
Craig
$ SET NOON
$ MODE = F$MODE()
$ LOGIN_FILE = "SYS$LOGIN:LOGIN.DAT"
$ IF MODE .EQS. "INTERACTIVE"
$ THEN
$ IF F$SEARCH("''LOGIN_FILE'") .EQS. "" - THEN $CREATE 'LOGIN_FILE'
$ OPEN/READ/WRITE/SHARE=READ - LOGIN_FIL 'LOGIN_FILE'/ERROR=ERROR
$ ENDIF
$ EXIT
$ ERROR:
$ WRITE SYS$OUTPUT "LOGIN conflict occured"
$ LOGOUT