LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   default permissions of terminals (https://www.linuxquestions.org/questions/linux-general-1/default-permissions-of-terminals-445545/)

rh_bomani 05-16-2006 09:50 PM

default permissions of terminals
 
Hello,

how do you change the default permissions of console terminals on Fedora Core 5? Is there a file to do this or must I do this manually for each tty? Is /etc/fstab the correct place to change the default permissions for pseudo terminals?

Thanks in advance,


~rh_bomani.

macemoneta 05-16-2006 09:52 PM

The file /etc/security/console.perms sets the permissions on the console.

rh_bomani 05-17-2006 03:59 PM

Thanks for pointing me in the write direction.
This is what I found for tty. No permission info.

# file classes -- these are regular expressions
<console>=tty[0-9][0-9]* vc/[0-9][0-9]* :[0-9]\.[0-9] :[0-9]
<xconsole>=:[0-9]\.[0-9] :[0-9]

This is what ls -la shows me for used and unused terminals.

ls -la /dev/tty54
crw-rw---- 1 root tty 4, 54 May 12 14:26 /dev/tty54 (unused)
[bomani@UW-RASBERRYL security]$ ls -la /dev/tty1
crw--w---- 1 bomani tty 4, 1 May 17 16:57 /dev/tty1 (in use)

macemoneta 05-17-2006 04:14 PM

Ah, you mean the permissions of the device files, not the permissions associated with use of the console. With udev, that's controlled by the file '/etc/udev/rules.d/50-udev.rules'.

rh_bomani 05-17-2006 04:40 PM

Yes, that what I was looking for!! Sorry for the confusion.
(Look like you meant to say /etc/udev/permissions.d/50-udev.permissions).

Thanks alot

macemoneta 05-17-2006 05:13 PM

I just performed a clean install of FC5, and the file is '/etc/udev/rules.d/50-udev.rules'. There is no '/etc/udev/permissions.d/' in FC4 or FC5.

Update: Found it. That directory is a leftover from FC3. You must have upgraded; that directory is no longer used.

rh_bomani 05-17-2006 06:37 PM

Sorry! Yes, you are correct. My FC5 machine (laptop) does not have permissions.d. I was looking at my machine here at work which is RHEL AS 4. It still has permissions.d


All times are GMT -5. The time now is 10:50 PM.