LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-21-2005, 04:41 PM   #1
magoot
Member
 
Registered: Feb 2005
Location: Finland
Distribution: Debian testing
Posts: 38

Rep: Reputation: 15
Problems with chroot & SSH


Hello, im trying to set up an chrooted ssh-account, so that the user only will be able to browse his homedir when logging in using ssh.
I followed this tutorial http://www.tjw.org/chroot-login-HOWTO/, but when i try to ssh i get this
Code:
maggot@~: ssh -l testuser localhost
testuser@localhost's password: 
Last login: Tue Mar 22 00:27:29 2005
Linux 2.6.10.
Password:
Sorry, user testuser is not allowed to execute '/usr/sbin/chroot /home/pwnd /bin/su testuser' as root on maggot.
Connection to localhost closed.
maggot@~:
I followed the tutorial step by step, i even tried it twice, still can't get it to work :\ i end up with the same error.
 
Old 03-21-2005, 04:45 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i would strongly think that your sudoers file hasn't been setup correctly. can you manually run chroot via sudo as that user?
 
Old 03-21-2005, 04:56 PM   #3
magoot
Member
 
Registered: Feb 2005
Location: Finland
Distribution: Debian testing
Posts: 38

Original Poster
Rep: Reputation: 15
Ehm how do you mean run it manually?
I have added this line in /etc/sudoers

testuser* ALL= NOPASSWD: /usr/sbin/chroot /home/testuser /bin/su - testuser*
 
  


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
chroot ssh Manuel-H Slackware 3 09-15-2005 05:33 PM
How to implement chroot in SSH urehman Red Hat 0 10-26-2004 02:41 PM
trouble with chroot ssh slug420 Linux - Security 6 08-10-2004 01:34 PM
ssh for chroot Thorsten Linux - Security 1 08-26-2003 05:46 AM
ssh for chroot Thorsten Linux - Software 0 08-26-2003 03:49 AM

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

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