LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-30-2010, 09:39 AM   #1
tfrankwoods
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Question Configuration Utility on SSH/Telnet


I would like to write a small configuration utility that will act as a daemon on the telnet port and SSH port that will only allow access to, and modification of, specific information in a structure imposed by the utility. How do I set this utility up so that when a user opens a telnet connection (or ssh) to the device, they are actually connected to the utility?

Thanks
 
Old 11-30-2010, 09:49 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tfrankwoods View Post
I would like to write a small configuration utility that will act as a daemon on the telnet port and SSH port that will only allow access to, and modification of, specific information in a structure imposed by the utility. How do I set this utility up so that when a user opens a telnet connection (or ssh) to the device, they are actually connected to the utility?

Thanks
You don't say anything about the utility, or what it's written in, but a simple way may be to set the program to be the users shell. Instead of BASH, just do a "useradd -s /your/program/name <user name>".
 
Old 11-30-2010, 10:05 AM   #3
tfrankwoods
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Telnet/SSH service

Quote:
Originally Posted by TB0ne View Post
You don't say anything about the utility, or what it's written in, but a simple way may be to set the program to be the users shell. Instead of BASH, just do a "useradd -s /your/program/name <user name>".
The utility is yet to be written and I can write it in C, C++, Perl or any other language. The I/O model is non-GUI, TTY only with basic ANSI text commands (remember the Wyse 50?). The utility will be running on an embedded system that may or may not have bash running.
 
Old 11-30-2010, 10:41 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tfrankwoods View Post
The utility is yet to be written and I can write it in C, C++, Perl or any other language. The I/O model is non-GUI, TTY only with basic ANSI text commands (remember the Wyse 50?). The utility will be running on an embedded system that may or may not have bash running.
You don't need bash running. If your program is set to be the users shell, when the user logs in, your program starts, and runs with the users permissions. So again, just set your program to be the 'shell' of your user(s), and when they log in, that's what they'll see.
 
1 members found this post helpful.
  


Reply



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
Web configuration utility paradoxmonkey Linux - Software 2 07-28-2009 03:37 PM
Expect Utility and Telnet metallica1973 Programming 1 12-28-2007 01:58 PM
DHCP configuration and incoming telnet, ssh rsumbeling Linux - Networking 2 11-13-2004 10:52 AM
print configuration utility xviddivxoggmp3 Slackware 3 06-19-2004 04:58 PM
That one configuration utility for wine ... orange400 Linux - Software 3 10-01-2003 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 PM.

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