- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Non-Command Line users
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
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
12-07-2000 11:16 AM
12-07-2000 11:16 AM
Non-Command Line users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:26 AM
12-07-2000 11:26 AM
Re: Non-Command Line users
At the very beginning of the user's profile place a trap like this:
# trap "" 1 2 3
At the end of the user's profile do this:
# exec sqlplus
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:43 AM
12-07-2000 11:43 AM
Re: Non-Command Line users
Thanks for the quick response. But, would you mind expanding on what:
trap "" 1 2 3
does?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:56 AM
12-07-2000 11:56 AM
Re: Non-Command Line users
stty -isig
in the beginning of their profile. This disable the terminals checking of special control characters against the INTR and QUIT parameters. This will not allow them to CTRL-C anywhere, even when running a report, which I don't want them to do either!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 12:08 PM
12-07-2000 12:08 PM
Re: Non-Command Line users
Hope this helps.
...Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 12:57 PM
12-07-2000 12:57 PM
Re: Non-Command Line users
The 'trap' is an interrupt routine. A 'trap' command is used to catch a signal such as the CTRL_C key sequence. If argument to the trap is a null string ('' or ""), as here, each signal specified is simply ignored. Thus the CTRL_C or "INT" signal becomes a no-op, and the user cannot break-out. To see a list of signals, do:
# kill -l
The 'exec' command replaces the current shell with a new shell or program. In this case, exiting sqlplus (or an application that you have 'exec'ed) exits the then current environment and logs the user off.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2000 07:26 AM
12-18-2000 07:26 AM
Re: Non-Command Line users
I would like to add something to what JRF says...
1> In the . profile you append one more line....
trap " " 1 2 3
exec sqlplus
exit $?
2> OR you can put this in /etc/profile. (this is because the .profile may be tampered by the user , as it is owned by him)...as below...
if [ $LOGNAME="xyz>" -o $LOGNAME = "yud" ]
then
export SHELL=/bin/false
exec /usr/oracle/bin/sqlplus
exit $?
fi
Thus,
** you can cover-up multiple users from same file, which is writeable only by the root.
** Secondly as the SHELL has been exported as /bin/false, even if the user tries to use "!" at sqlplus> prompt , he won't be able to fall into shell.
** all signal will be trapped.
** And he will be thrown out of the system, the moment he exits the sqlplus.
Try this...it works fine on our systems.
Suhas...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2000 07:41 AM
12-18-2000 07:41 AM
Re: Non-Command Line users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2001 01:09 AM
01-12-2001 01:09 AM
Re: Non-Command Line users
stty erase "^H" kill "^U" intr "^C" eof "^D"
you may remove intr "^C" eof "^D" for them not to interrupt the system by ^C or ^D.
Also, I add the trap command options between the menu or command to go go directly to the application.
? Set up Application startup script
trap "" 2 3 4 5 6 7 8 10 12 13 15 16 17 19 20 21
. appl_scr.sh
trap -
exit 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2001 09:42 AM
01-12-2001 09:42 AM