LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2006, 06:40 AM   #1
pypieuvre
LQ Newbie
 
Registered: Feb 2006
Location: Paris, France
Distribution: Ubuntu Breezy, Red Hat enterprise linux 3
Posts: 8

Rep: Reputation: 0
custom Login shell in /etc/passwd


I use the parameter in /etc/passwd for users to login with a normal/custom shell( /bin/bash, /bin/sh, /myShellLikeScript ...)

I know it's possible to use special entries like /bin/false to have an account without the possibilite to login.

Is it possible to be enable login without giving a prompt ? (the idea is that the user could open an ssh session with tunneling) :
Code:
ssh -l 2022:anotherHost:22 myLogin@myHost
Last login: Wed Feb 15 22:50:33 2006 from XXXXXX
No prompt is offered to the user, so that he can make tunnels but not run commands on the current server.

Any ideas ?
Thanks a lot
 
Old 02-16-2006, 07:19 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
On the host to tunnel to prefix the remote users key in authorized_keys with command="/bin/sleep 7200",no-pty. This will keep ssh from assigning a pseudo-tty (AFAIK even if multiple -t's are given) and will execute sleep to prohibit executing other commands.
 
  


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
Is shell login/passwd localizable? ricky_ds Linux - Software 2 06-29-2005 02:43 AM
what are the security risks using 'passwd' in shell scripts? MisterESauce Linux - Security 5 04-10-2005 01:48 PM
Looking for addusesr&passwd shell script szklanka Programming 1 02-22-2005 08:37 PM
changed the login shell in /etc/passwd to the wrong path infamous41md Solaris / OpenSolaris 3 07-03-2004 07:32 PM
bourne shell /etc/passwd /etc/shadow uribo Programming 2 05-09-2003 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:56 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