tty terminal permissions problem


 
Thread Tools Search this Thread
Operating Systems Linux tty terminal permissions problem
# 1  
Old 08-08-2008
Error tty terminal permissions problem

I'm hoping someone can help me out here.

I'm having a problem on my Red Hat Enterprise 5 Server where my tty devices "tty[a-d][1-16]" are being set to read only permissions.

I need them to be set to 777 in order to write to the serial printers through a custome application.

I have gone through many article and man pages on how to do this but have had no luck.

from root I can manually chmod the permissions on the devices.

So I attempted to write a script to chmod the devices and place it in the /etc/rc.local file. - This did not work

I created a 51-default.perms file in the console.perms.d directory with the elevated permissions (I have done this with ttyS0 and it has worked reliably)

I have created a 10-udev.rules file and a 99-udev.rules file with the elevated permissions and this did not work.

I have been in touch with red hat support and have had no luck there either.

Has anyone had a similar issue and can you suggest a resolution.

Thanks.
# 2  
Old 08-11-2008
try
ls -lrt /dev/tty*
and look wich user and group they belong
if the group has write permision, add the user runing the app to that group
# 3  
Old 08-11-2008
"tty" is the group that owns the tty[abcd]*
"uucp" is the group that owns ttyS*

However "tty" does not have crwx either.

and for some strange reason tty does not own all the devices. on some the root group is the owner.
Also the permissions are not consistant.
Some are crw--w
and others are crw---

I need crwxrwxrwx.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Python: Redirecting to tty and reading from tty

In bash, you can do something like this: #!/bin/bash echo -n "What is your name? " > /dev/tty read thename < /dev/tty How can I do the same in python? I have a python script that has the following content: #!/usr/bin/python2.7 import getpass import sys import telnetlib import... (2 Replies)
Discussion started by: SkySmart
2 Replies

2. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies

3. Red Hat

Permissions problem with cifs.mount

hi, I have the following permission problems with cifs.mount : a share on a VNXe (EMC NAS) is accessed by two RHEL 5.9 accounts (authenticated by Active Directory); One account has read+wite permission to the share , the second one has only read permission. Both accounts uses the following... (0 Replies)
Discussion started by: Zarake
0 Replies

4. UNIX Desktop Questions & Answers

help with some basic osx terminal commands. fixing permissions on NAS share

I'm hoping someone here can help me. I'm computer literate but by no means an expert! I'm simply trying to recover data from my DLink DNS343 NAS mounted on my X86 iMac using SMB. Somehow, in moving to a new computer, I have lost access to some files on the NAS. Just some files are access denied. ... (0 Replies)
Discussion started by: Quantaa
0 Replies

5. UNIX for Dummies Questions & Answers

read from terminal/keyboard > /dev/tty

Hi, I need to provide more than one character to "> /dev/tty" through terminal/keyboard input, I have this: ok=false while do echo " Enter r1 to reformat " > /dev/tty read choice case $choice in ) echo " bla bla bla " ;; done However, in this way,... (3 Replies)
Discussion started by: Gery
3 Replies

6. OS X (Apple)

No terminal (tty) after ssh and telnet also

Hi all, we are just confused about a strange problem on one server in production (XServer, running OSXS 10.5.6). It works normal for month. Since two day everthing seems to be fine also with one exception. When we connect trough ssh we won't get a tty session. For testing purposes, we enabled... (2 Replies)
Discussion started by: Frank.Knobloch
2 Replies

7. UNIX for Advanced & Expert Users

Problem with permissions FreeBSD

See below: root#host:/home>ls -la | grep mirus drwxr-xr-x 31 mirus staff 2048 Dec 30 11:01 mirus root#host:/home>su mirus su: /home/mirus/.bashrc: Permission denied mirus#host:/usr/home>id uid=1227(mirus) gid=20(staff) groups=20(staff) mirus#host:/usr/home>cd ~/ su: cd:... (3 Replies)
Discussion started by: mirusnet
3 Replies

8. Programming

terminal problem

i am executiing some commands using system an popen command in c. while executing the code . some data is shown on terimal without using any print statement. how can i solve this problem thank u sree (1 Reply)
Discussion started by: phani_sree
1 Replies

9. UNIX for Dummies Questions & Answers

problem with rdist & permissions

I have a .rdist & .sh files. shell script contains code like this rdist -h -f <rdist file> when this script executed i am getting the following error. rdist:<full path of files>: Permission denied. I verified the folder on the other system by connecting FTP.It doesn't has write... (0 Replies)
Discussion started by: Mar1006
0 Replies

10. UNIX for Dummies Questions & Answers

tty problem

Dear all, when I do a remote shell command from a FUJITSU Unix to an HP-UX, I always get this: 15:36:35 + rsh -l storto obs2 sh /users/obs/storto/MESO-NH/tmp_olive_map_00CC/job_prepex_70JY_C00CC_20041103_19 Not a terminal stty: : Erreur inconnue stty: : Erreur inconnue... (0 Replies)
Discussion started by: stortignauz
0 Replies
Login or Register to Ask a Question