LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 11-10-2002, 08:21 AM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Setting security trap...


Is there a way to 'booby trap' a user's a/c? So that say when
someone does a cd ~myacc, it triggers off some action?
 
Old 11-12-2002, 09:45 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
I can't think of a simply way off the to of my head. What are you looking to accomplish?

cheers

Jamie...
 
Old 11-12-2002, 11:13 AM   #3
Hans Zarkoff
Member
 
Registered: Apr 2002
Location: Canada
Distribution: Slackware
Posts: 58

Rep: Reputation: 15
You could wrap something around the function. Unfortunately, it won't work with cd. If you wanted to use ls, it would go something like...

1. Change ls's name: mv /bin/ls /bin/lsbase.

2. Write a script and save it as /bin/ls. Be sure to chmod +x /bin/ls.

#!/bin/bash
if [%1="somedir"]
echo "You are not allowed to look there!"
elif
/bin/lsbase %1

This is brutally simple and won't work if you have more than one parameter. I also didn't test the script either but you get the idea...
 
Old 11-12-2002, 11:46 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
This type of question sounds kind of fishy as we don't answer questions like this usually, or deem them inappropiate.

If you can come up with a good reason why you would want to set up something like this, then will leave it be, if not and your just wanting to play a prank on someone, this thread will be closed.

Thanks.
 
Old 11-13-2002, 10:34 AM   #5
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
I just want to see if anyone is snooping around my a/c.
 
Old 11-13-2002, 11:44 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
If you are concerned that someone who was snooping around would be able to access something they shouldn't or cause damage to the system then you need to review your system security or get your SysAdmin to do this for you.

cheers

Jamie...
 
Old 11-13-2002, 11:56 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Yeah, that doesn't seem like a good enough reason to setup a security trap you mentioned.
I would follow jharris advise and this is being closed now. There are other ways to find out if someone is snooping around with your a/c instead of setting up a booby trap of some sort.
 
  


Closed 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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send snmp trap & recieve trap in C program minil Programming 3 07-10-2010 09:22 AM
Kernel trap (Fatal trap 12) m!k@EL *BSD 4 09-05-2007 11:58 PM
Setting Security Policies in MDK? unixfreak Linux - Security 1 09-01-2004 08:32 PM
Security setting, RedHat 9 juusober Linux - Security 1 03-10-2004 10:57 AM
setting a trap antken Linux - Security 6 01-11-2003 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration