how to change permissions for /dev/ttya?

how to change permissions for /dev/ttya?

Post by Kenneth Ch » Tue, 28 Jan 1997 04:00:00



Hi,  

How you change permissions for /dev/ttya?  I looked at it, followed
the links, and they all seem to have read/write permission for everyone.
But when I run kermit and set line= /dev/ttya, I get the error:

        /dev/ttya: Permission denied
        Sorry, access to device denied: /dev/ttya

But as root, I could set line= /dev/ttya just fine.  

Does anybody know how to allow other users access this device?

Ken

 
 
 

how to change permissions for /dev/ttya?

Post by Celeste Stokel » Wed, 29 Jan 1997 04:00:00



> How you change permissions for /dev/ttya?  I looked at it, followed
> the links, and they all seem to have read/write permission for everyone.
> But when I run kermit and set line= /dev/ttya, I get the error:
>         /dev/ttya: Permission denied
>         Sorry, access to device denied: /dev/ttya
> But as root, I could set line= /dev/ttya just fine.

Typically, /dev/ttya is the incoming side of the serial devices,
and /dev/cua0 (or a similar name) is the outgoing side of the
device. /dev/ttya is owned by root.

A /dev/cua0 is made with the minor # as 128+the minor number of
ttya, as in:
crw--w--w-  1 root      12,   0 Sep 28  1995 ttya
crw-------  1 uucp      12, 128 Oct  1  1995 cua0
(made from "mknod cua0 c 12 128;chmod 600 cua0;chown uucp cua0")

kermit should be made setuid uucp, since the outgoing port will
be owned by uucp. (tip is also setuid uucp).

See my SunOS 4.x modem tutorial at http://www.stokely.com
for all the details of this.

..Celeste Stokely, Unix System Administration Consultant
Stokely Consulting, 211 Thompson Square, Mountain View CA 94043
Voice: 415.967.6898 - FAX: 415.967.0160

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Celeste's Tutorials on Solaris 2.x/SunOS 4.1.3+ Modems & Terminals
        are available via the Web at http://www.stokely.com
See our Web pages for lots of Unix Serial Port & Sysadm Resources!
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 
 
 

1. Permissions on /dev/ttya keep changing (?)

Hi,

I've got a weird serial port permission problem.  

Setup:

Sparc 2
Solaris 2.3
Digitizing tablet on /dev/ttya

Communications with the tablet work fine.  But every once
in a while, the permissions on /dev/ttya (or rather

Of course then only root can use the digitizer.  Every time
I change it to 666, it gets changed back to 600 (by sac?).

is this "normal" and how can I stop it?

thanks for any info,

tim ma
systems analyst
DIGIT Lab, university of utah

2. IRC Server

3. /dev/ttya:permission denied

4. Delphi for Linux

5. /dev/ttya -- permission denied

6. .htaccess and auth_name not working correctly

7. Locking /dev/ttya or /dev/ttyb

8. passwd file problem

9. biZaRRe: X changes pErmisSiOns of /dev/audio*. ?????????

10. login changes permissions on /dev/console?

11. /dev/fb changes permissions

12. Q: Mysterious permission change on /dev/null. Virus ??

13. /dev file permission keep changing