LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-16-2006, 09:50 PM   #1
rh_bomani
Member
 
Registered: Apr 2006
Posts: 42

Rep: Reputation: 15
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.
 
Old 05-16-2006, 09:52 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The file /etc/security/console.perms sets the permissions on the console.
 
Old 05-17-2006, 03:59 PM   #3
rh_bomani
Member
 
Registered: Apr 2006
Posts: 42

Original Poster
Rep: Reputation: 15
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)
 
Old 05-17-2006, 04:14 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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'.
 
Old 05-17-2006, 04:40 PM   #5
rh_bomani
Member
 
Registered: Apr 2006
Posts: 42

Original Poster
Rep: Reputation: 15
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
 
Old 05-17-2006, 05:13 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.

Last edited by macemoneta; 05-17-2006 at 05:15 PM.
 
Old 05-17-2006, 06:37 PM   #7
rh_bomani
Member
 
Registered: Apr 2006
Posts: 42

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminals - spying on local terminals with ssh BeatRyder Linux - Software 5 10-21-2004 01:47 AM
what are default permissions for /etc timsch75 Slackware 2 08-06-2004 10:34 PM
what are the default permissions figmentium Linux - Newbie 4 12-25-2003 06:50 AM
Need someone to let me know certain default permissions. Nu-Bee Linux - General 2 11-27-2003 07:07 PM
KDE 3.1.1 made terminals use bash as default? red1busta Linux - Newbie 2 03-28-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration