You are not logged in.

#1 2004-01-12 16:00:35

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

"write" -- no permission?

i used "write" in my highschool to chat with other loged in people ... now i wonder why this is not possible in arch (no background knowledge on "write"-configuration --- i only know how to send messages to users logged in)

[damir@Asteraceae damir]$ write
write: you have write permission turned off.

The impossible missions are the only ones which succeed.

Offline

#2 2004-01-13 14:07:58

torindan
Member
From: Romania
Registered: 2004-01-13
Posts: 32

Re: "write" -- no permission?

Try "mesg y" smile)
or "chmod +w /dev/tty???"
or "chmod +w /dev/pts???"
or what ever type of terminal you are using.

i used "write" in my highschool to chat with other loged in people ... now i wonder why this is not possible in arch (no background knowledge on "write"-configuration --- i only know how to send messages to users logged in)

Offline

#3 2004-01-13 14:21:13

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: "write" -- no permission?

chmod +w /dev/tty
chmod +w /dev/pts

is run from /etc/rc.local, so there should be write-access

[damir@Asteraceae damir]$ mesg y
mesg: error: tty device is not owned by group `tty'

??? do i need a tty-group? why, when i want to allow all users to have write access to tty


The impossible missions are the only ones which succeed.

Offline

#4 2004-01-13 16:54:55

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: "write" -- no permission?

leave chmod alone a simple mesg y does the trick
remove the rc.local stuff u use and afther a clean boot run mesg y and see


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#5 2004-01-13 21:46:17

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: "write" -- no permission?

jlvsimoes wrote:

leave chmod alone a simple mesg y does the trick
remove the rc.local stuff u use and afther a clean boot run mesg y and see

removed the chmod, run

[damir@Asteraceae damir]$ mesg y
mesg: error: tty device is not owned by group `tty'

but as you can see this didnt help --- it looks like i should add a tty group and change something in /etc/devfs.conf ?
can someone give me the details what to do to get it working? do no person have tried to use "write" on a archlinux? thanx in advance


The impossible missions are the only ones which succeed.

Offline

#6 2004-01-13 22:29:48

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: "write" -- no permission?

thats not normal on arch  simple mesg y does it but check the man page


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#7 2004-01-13 22:47:26

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: "write" -- no permission?

mesg y works for me.

/dev/tty is owned by root:root, is 666, and my user is a member of the root group.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#8 2004-01-14 06:32:56

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: "write" -- no permission?

Xentac wrote:

mesg y works for me.

/dev/tty is owned by root:root, is 666, and my user is a member of the root group.

i also have

[damir@Asteraceae damir]$ ls -l /dev/tty
crw-rw-rw-    1 root     root       5,   0 Jan  1  1970 /dev/tty

but my user is NOT a member of the root group --- why should this be a good idea? never made my users member of root ... is this a new "thing" i missed in the "linux-list-of-usefull-things"?


The impossible missions are the only ones which succeed.

Offline

#9 2004-01-14 06:46:06

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: "write" -- no permission?

It works for some things that are set up to have the root group modifying them, instead of just the root user (ex. reading log files).  Not really useful for this purpose.  Maybe you should try adding yourself to the tty group and chgrp'ing the device?

You'd think it would work because the device is world writeable... I can't help much more than this.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB