Ask a Question related to SCO, Design and Development.
-
irontech #1
Re: Disable user hit "del" key to cancel
Hi Brian K. White
Thank you for your helpful reply. :)
--
Posted via [url]http://dbforums.com[/url]
irontech Guest
-
Change user role from "Publisher" to "Administrator"
Have three users on a particular website - all need to be "administrators". Two are listed as administrators (one of which is me), the third is... -
Acrobat9: How to Disable "Welcome back to Shared Review" Dialog ?
Hi. Every time, when shared PDF file is opened, "Welcome back to Shared Review" dialog, "Comment & Markup" window, and "Please add your comments... -
How to disable the "Format Table" menu item?
I have my site set up to disallow users to specify fonts and background colors, and yet in the "Table" menu, they can access the "Format Table"... -
How do you disable the right click ability when using<cfform type="flash">?
How do you disable the right click ability when using <cfform type="flash">? -
"User cannot change pwd" and "Pwd never expire" by using Directory
I create a account by using the DirectorySerive and it is running: --------------------------------------------------------- Dim ContainerEntry As... -
irontech #2
Re: Disable user hit "del" key to cancel
Brian K. White,
Is that any way I could disable only all oridinary user hit delete key
but not root?
I have thousand plus users ID, I tried put (stty intr "") into
/etc/profile, but it effect even root.
Thanks.
--
Posted via [url]http://dbforums.com[/url]
irontech Guest
-
Brian K. White #3
Re: Disable user hit "del" key to cancel
On Thu, 10 Jul 2003 02:55:56 +0000, irontech wrote:
>
> Brian K. White,
>
> Is that any way I could disable only all oridinary user hit delete key
> but not root?
>
> I have thousand plus users ID, I tried put (stty intr "") into
> /etc/profile, but it effect even root.
>
> Thanks.
((`id -u`)) && stty intr ""
--
Brian K. White -- [email]brian@aljex.com[/email] -- [url]http://www.aljex.com/bkw/[/url]
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
Brian K. White Guest
-
Brian K. White #4
Re: Disable user hit "del" key to cancel
On Thu, 10 Jul 2003 01:44:12 -0400, Brian K. White wrote:
excuse me> On Thu, 10 Jul 2003 02:55:56 +0000, irontech wrote:
>>>>
>> Brian K. White,
>>
>> Is that any way I could disable only all oridinary user hit delete key
>> but not root?
>>
>> I have thousand plus users ID, I tried put (stty intr "") into
>> /etc/profile, but it effect even root.
>>
>> Thanks.
>
> ((`id -u`)) && stty intr ""
that works only in ksh (and bash and probably others) but not
plain sh. So here is the less interesting but more compatible:
[ `id -u` = 0 ] || stty intr ""
--
Brian K. White -- [email]brian@aljex.com[/email] -- [url]http://www.aljex.com/bkw/[/url]
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
Brian K. White Guest
-
James J #5
Re: Disable user hit "del" key to cancel
irontech <member27304@dbforums.com> expounded in
news:3093568.1057802156@dbforums.com:
>
> Brian K. White,
>
> Is that any way I could disable only all oridinary user hit delete key
> but not root?
>
> I have thousand plus users ID, I tried put (stty intr "") into
> /etc/profile, but it effect even root.
>
> Thanks.
Depending on the circumstances, I think a better option might be to change
intr to something the users aren't likely to hit accidentally. That way,
you still have an "interrupt" key available if a user actually needs it.
The key can be the same for all users, but if you have different terminal
types, that could be an issue (not all keyboards have the same keys).
For example, we wanted to use Delete as a "hot key" in our application
(along with Insert, Home, End, etc.), so we changed intr to something else.
FWIW, we used "stty intr \^\~". On most US terminal keyboards, that was a
Control-tilde (Control and the character to the left of the number 1 above
the letters, either "`" or "~"). On an SCO console it was Control-6 (the 6
above the letters, not on the numeric keypad).
James
James J Guest



Reply With Quote

