how to stop others users to stop viewing what i am doing ?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users how to stop others users to stop viewing what i am doing ?
# 1  
Old 12-02-2006
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  
Old 12-02-2006
First post on these forums, so hello world Smilie
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 Smilie
# 3  
Old 12-02-2006
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 ?
Tornado
# 4  
Old 12-02-2006
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  
Old 12-02-2006
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  
Old 12-04-2006
In theory: Yes you can, if you bypass the 'standard login process' (which is another long story Smilie ), 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 Smilie )
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

How can I stop this???

I have a user ( and actually me too) getting this messages when the screen is idle, I need help on stopping this messages: 2012 Feb 20 13:30:22 servername Audit: LENGTH: "330" SESSIONID: "339384" ENTRYID: "1" STATEMENT: "1" USERID: "OPS$PT2ADM" USERHOST: "zzzzzzzzzzz" ACTION: "100" RETURNCODE:... (2 Replies)
Discussion started by: 300zxmuro
2 Replies

2. Linux

Fedora- Stop users changing the time

Is there a way to stop users changing the time on their machines we are running fedora thanks Adam (4 Replies)
Discussion started by: ab52
4 Replies

3. Cybersecurity

Stop flood - how ?

Hello there, I want to know what are the ways to monitorize and control/stop flooding on my server, because I am heavily flooded. At this moment I am doing all this manually (when I see that my bandwidth is lowering or some applications are freezing), my main working tool being iptables.But I... (1 Reply)
Discussion started by: spiriad
1 Replies

4. Web Development

Allow multiple users to start/stop tomcat

Hi, I have the user who runs tomcat: tomcat:tomcats I want to have another user who will be able to start and stop tomcat process. Is this possible? Thanks, Bianca (1 Reply)
Discussion started by: potro
1 Replies

5. Solaris

stop - A

I am using solaris x86 with a pc keyboard. i am trying to get to the ok prompt i have tried ctrl-break but it is not working , alt-break will not as well. pls any thought? (4 Replies)
Discussion started by: seyiisq
4 Replies

6. Shell Programming and Scripting

stop users from running 'history -c' in Linux

Hi All, My question is how can i stop my users on system from deleting their history. How can i stop the users from running 'history -c'. I have searched thoroughly on the forum but didn't find any satisfactory solution to the problem. kindly help if you any suggestions Thanx in... (3 Replies)
Discussion started by: xander
3 Replies

7. AIX

Can you stop qdaemon from emailing users?

Morning, All. Does anyone know how to stop qdaemon from emailing users when print jobs fail? This is causing a problem as the application that we use is mail-aware; users get a prompt onscreen when they have unread mail in their UNIX account, however they don't all have access to the part of... (2 Replies)
Discussion started by: alexop
2 Replies

8. Filesystems, Disks and Memory

How do I stop this???

Am having trouble trying to stop the process below ... bash# ps -eaf | grep "tape erase" root 29715 1 0 05:16:22 ttyp1 00:00:00 tape erase /dev/rStp0 root 22464 20933 1 03:40:12 ttyp6 00:00:00 grep tape eraseI've tried ... `kill -9 29715` ... but still no luck. Help... (8 Replies)
Discussion started by: Cameron
8 Replies
Login or Register to Ask a Question

Featured Tech Videos