The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
lan card not detecting bidhayakm SCO 3 04-18-2007 07:52 AM
Detecting Second disk dragunu UNIX for Dummies Questions & Answers 7 02-09-2007 04:45 AM
Detecting a key combination mobile01 High Level Programming 11 12-22-2006 09:46 AM
Not detecting CD ROm drive sbasetty Gentoo 13 12-05-2006 11:00 AM
Setting Timeout for Xterm Sessions jyotipg UNIX for Advanced & Expert Users 1 07-09-2003 03:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-15-2002
spavlov spavlov is offline
Registered User
  
 

Join Date: Aug 2002
Posts: 9
Detecting started xterm sessions

Hi,

We have a bug in one of our applications which allows application users to start unix commands with application UID, and of course xterminals. Any ideas how to find out which terminals have been started without authorisation using this bug?

Thanks,
Slava

PS: OS is Solaris 8
  #2 (permalink)  
Old 11-15-2002
roden roden is offline
Registered User
  
 

Join Date: Nov 2002
Posts: 14
Start by obtaining the process id (PID) and parent process id (PPID) for each xterm that is running, crosscheck the PPID against your applications process ids (PIDs). If you find a match your application has started (forked) the xterm so you can terminate it with SIGKILL (kill -9 PID of xterm.

You should also be able to find out the DISPLAY that the xterm is running against and start your own X program to warn of illegal use etc

Why not restrict permissions for xterm (etc) and use SUDO to control access to it?
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0