LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-20-2014, 05:31 PM   #1
leonavas
LQ Newbie
 
Registered: Aug 2014
Location: El Salvador
Distribution: Debian wheezy
Posts: 1

Rep: Reputation: Disabled
How to assign a tty to a specific user


Hi Guys

I'd like to know if there is a way to assign a tty to a specific user in linux, so that only that user account can access that tty and restrict access to the rest of ttys to that user

I'm currently using Debian wheezy 64 bit.

I'm unable to find information on how to do this or tutorials

Thanks in advance for all your help.
 
Old 08-21-2014, 02:48 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 503

Rep: Reputation: 189Reputation: 189
Hi there,

Welcome to the LQ forums!

Excuse my ignorance, but I'm not sure I understand what you are trying to do. More specifically, what do you mean by a tty?

The "tty" is usually the controlling terminal for your login session. Assuming you're on an Intel platform, and are not connecting via some form of serial connection (/dev/ttyS*), the tty is a fixed device (/dev/tty[0-6]) if you're physically logged in via the console, without X Windows. If this is what you are referring to, while I don't understand what you would achieve with such a config, you might be able to achieve it by looking at /etc/security/access.conf and PAM (see "man pam_access").

If you're in a graphical desktop, or connecting remotely (via SSH), the tty is assigned dynamically (/dev/pts/*), making it useless as an identifier of where the user is logged in from. For remote connections there are other mechanisms you can use, based on IP adresses. For example in SSH, you can do this with the sshd_config AllowUsers or AllowGroups options. The discussion at https://www.linuxquestions.org/quest...achine-756172/ might also help.

Regards,

Clifford
 
1 members found this post helpful.
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to assign read privileges to user on specific directories and files zaeem Linux - General 13 02-01-2011 06:51 AM
if you want to assign some tasks to specific user dellroxy Solaris / OpenSolaris 2 10-14-2008 10:47 AM
Assign different shells to specific users in a winbind m2azer Linux - Newbie 0 01-18-2007 08:42 PM
How do you assign a process to a specific processor? ter_roshak Linux - General 1 12-19-2003 01:38 AM
Assign Privs to specific user sikandar Linux - Software 13 08-31-2003 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration