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
Script that doesn't stop biot UNIX for Dummies Questions & Answers 3 11-30-2007 01:19 AM
help me stop spammer dorpan UNIX for Advanced & Expert Users 1 02-05-2007 02:55 PM
Can you stop qdaemon from emailing users? alexop AIX 2 06-19-2006 05:35 AM
How do I stop this??? Cameron Filesystems, Disks and Memory 8 07-11-2002 12:10 AM
Stop a SAS job cube UNIX for Dummies Questions & Answers 1 05-02-2002 11:13 AM

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 12-02-2006
mobile01 mobile01 is offline
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
  #2 (permalink)  
Old 12-02-2006
vermaden's Avatar
vermaden vermaden is offline
Registered User
  
 

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
  #3 (permalink)  
Old 12-02-2006
Tornado's Avatar
Tornado Tornado is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Melbourne
Posts: 249
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 ?
  #4 (permalink)  
Old 12-02-2006
sendai's Avatar
sendai sendai is offline
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
  #5 (permalink)  
Old 12-02-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
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.
  #6 (permalink)  
Old 12-04-2006
andryk's Avatar
andryk andryk is offline Forum Advisor  
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 )
Closed Thread

Bookmarks

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 05:25 PM.


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