The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
redirection DNAx86 Shell Programming and Scripting 9 04-18-2008 11:24 AM
sed redirection myle UNIX for Dummies Questions & Answers 3 03-12-2008 04:04 PM
csh stderr redirection jolok Shell Programming and Scripting 0 04-15-2005 07:03 AM
I/O redirection within a coprocess Mugin Shell Programming and Scripting 4 10-21-2003 05:17 AM
Help with redirection Shallon1 High Level Programming 2 12-12-2001 04:35 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-02-2001
Registered User
 

Join Date: Oct 2001
Location: San Francisco
Posts: 6
Question redirection to tty** with cat

I tried to cat a file to another user that was logged in, but I received an error message that displayed something like:

%cat funny > /dev/ttyp3
zsh: permission denied: /dev/ttyp3

Thank you all for your help
Forum Sponsor
  #2  
Old 11-02-2001
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
This is the way it's supposed to work. Since that other user owns /dev/ttyp3 he could "chmod 666 /dev/ttyp3" but this is very dangerous.

Some terminals have an escape sequence that will cause them to transmit the current line just as if it had been typed. On those terminals, you could send a command, then send cursor motion commands, and finally send that transmit escape sequence. This means that anyone on the system can execute any command as that user.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:46 AM.


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 Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0