The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script that doesn't stop biot UNIX for Dummies Questions & Answers 3 11-29-2007 09:19 PM
help me stop spammer dorpan UNIX for Advanced & Expert Users 1 02-05-2007 10:55 AM
Can you stop qdaemon from emailing users? alexop AIX 2 06-19-2006 02:35 AM
How do I stop this??? Cameron Filesystems, Disks and Memory 8 07-10-2002 09:10 PM
Stop a SAS job cube UNIX for Dummies Questions & Answers 1 05-02-2002 08:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2006
Registered User
 

Join Date: Nov 2006
Posts: 24
how to stop others users to stop viewing what i am doing ?

Hi ,

I have one question, suppose i am a normal user and when i use 'w' command , it shows who is logged on and what they are doing .
Now i want to stop others users to know what i am doing accept the root ?

can i do this ?


thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-02-2006
vermaden's Avatar
Banned
 

Join Date: Nov 2006
Posts: 20
First post on these forums, so hello world
Some people may know me from bsdforums.org

If You have access to root account you can create script called w where the original w is egrepped [also renaming original w to some strange name, like scrub for example], and your script will be like that:

Code:
#! /bin/sh
scrub | egrep -v \^your_user_name
exit $?
But maybe there is some better sollution
Reply With Quote
  #3 (permalink)  
Old 12-02-2006
Tornado's Avatar
Registered User
 

Join Date: Nov 2006
Location: Melbourne
Posts: 240
Don't know why you would like to stop this...
Who cares if someone sees you are logged in and using vi or something...Unless your not meant to be there.

I can't see any security reason for it either as no privileged information is displayed. What is it that you don't want other users to see, what are you trying to hide ?
Reply With Quote
  #4 (permalink)  
Old 12-02-2006
sendai's Avatar
Registered User
 

Join Date: Dec 2006
Location: Brasil
Posts: 18
hum

try it if you have access to r00t account

chmod 750 /usr/bin/w

so only users with gid=0 or uid=0 will can run the w
;D
Reply With Quote
  #5 (permalink)  
Old 12-02-2006
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
And possibly break scripts running on thr system? As tornado said why would you care? Just learn to live with it, besides ps will tell them just as easily what you are doing.
Reply With Quote
  #6 (permalink)  
Old 12-04-2006
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
In theory: Yes you can, if you bypass the 'standard login process' (which is another long story ), but if you have root access nothing stop you from cleaning up the file 'w' uses to get those information (utmp,wtmp ... or something alike )
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0