[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: tty locks up



+ from User A's terminal until he(or she) has the permissions for the file
+ /dev/ttyNN where NN is the terminal number (not for RH 6.0 which uses new
+ type terminal names /dev/pts/??). A typical entry in /dev looks like:
+ 
+ crw--w----   1 User_A       tty        4,   4 Aug 28 21:12 /dev/tty4
+ 
+ See that the group tty has write access to the tty, but not read access.
+ This write access has only been given because of the various commands like
+ "write" and "wall" (which are setgid to "tty"). 

Uh... this does not seems to be the case here. 've read permissions too
for others. Anyway, i'll notify my server admin abt changing permissions.

+ 
+ What may be happening in your case is that user B may be root, in which
+ case it has read permission for any file, or that user B is the same as
+ user A, in which case it can access the file.
+

Heh.. no. Checked it with different non-root users. That's the reason of
posting it here.

+ Don't worry, the problem you are asking has been taken care of right form
+ the time UNIX was designed. 

True.

Thanx,
Sharad.


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/

------------------------------