LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-10-2004, 07:27 AM   #1
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
ssh conflict?!


There's a problem with sshing with a user now. To use the chroot jail the user's dir and shell have to be changed in /etc/passwd. I was using the a user to play with chroot. Yesterday I played with it and was getting permission denied when trying to ssh in. When I was done trying to get chroot to work, I changed the user's dir and shell back to normal. Tried to ssh in to make sure it was normal again and it was. Tonight I played with it some more only changing the /etc/passwd file again. I got permission denied again when trying it with chroot jail running and changed /etc/passwd back to normal again. I tried to ssh in like normal again and permission is denied and I'm prompted to re-enter the password. I tried restarting ssh and triple checked the /etc/passwd user line. I can login to the machine while at it or through Webmin, but not ssh now.

The only other things I did were within the chroot environment with the user in /home/jail/home/user, in which I removed the user's dir in the chroot environment and readded the user to the jailed environment. That's it. Anyone have any ideas what permission is now denied just from changing /etc/passwd the second time?

Last edited by snocked; 02-10-2004 at 07:45 AM.
 
Old 02-12-2004, 01:53 PM   #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
//Old issues cleanup. Please disregard if solved/no longer applicable.

That's it. Anyone have any ideas what permission is now denied just from changing /etc/passwd the second time?
My guess would be you changed stuff you forgot about. Best chance would be to run sshd and ssh both with triple debug/verbosity switches and check the output.

Wrt OpenSSH chrooting, did you have a look at http://chrootssh.sourceforge.net?
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 07:17 PM

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

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