LinuxQuestions.org
Help answer threads with 0 replies.
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 07-24-2014, 10:33 AM   #1
Jenish_uk
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Rep: Reputation: 0
Couldn't start OpenSSH due to 'Match Group' bad configuration error.


Hello all,

I have an old CentOS server 5.10 and OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 installed.
I can create a simple user and connect to the sftp server thought WinSCP. However, I have been trying to create a group with sftp users for allowing them to access 'a specific' folder (rather than their hope directory), so that they can upload/download shared data.
Here is my configuration file:
=============================================
AllowGroups Project2014
Subsystem sftp internal-sftp
Match Group Project2014
ChrootDirectory /home/Shared_Project_Folder
ForceCommand internal-sftp
AllowTcpForwarding no
=============================================

But when I restart ssh, I get this error message - Bad configuration option: Match
/etc/ssh/sshd_config: terminating, 1 bad configuration options


I would really appreciate if could kindly help me with this problem.

Many thanks,
Jen
 
Old 07-24-2014, 10:48 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I never could get this to work.
Stuck with using Match User for every sftp user that needed it.
NOTE that sticks in my craw is ChrootDirectory can't be symlinked either.

I made "do" with it.

Sorry that's not helpful.
 
Old 07-24-2014, 10:51 AM   #3
Jenish_uk
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Thanks Habitual, I have tried 'Match User' as well but same error

Jen
 
Old 07-24-2014, 02:34 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Here's my "Match User" entry for comparison:
Code:
Match User datalogix
        ChrootDirectory /home/datalogix
        ForceCommand internal-sftp
        AllowTcpForwarding no
drwxr-xr-x 5 root root 4096 Jun 17 18:47 /home/datalogix

Who owns /home/Shared_Project_Folder and What are its perms?
Code:
ls -ld  /home/Shared_Project_Folder
 
Old 07-25-2014, 03:42 AM   #5
Jenish_uk
LQ Newbie
 
Registered: Oct 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Hi again,

I have created a user (ftpuser) and 'chown' the user to 'Shared_Project_Folder' and edited to config file with (please see below) but still get the same error meesage when I restart the 'sshd' daemon.


Subsystem sftp internal-sftp
Match User ftpuser
ChrootDirectory /home/Shared_Project_Folder
ForceCommand internal-sftp
AllowTcpForwarding no
 
  


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
[SOLVED] CentOS 6.0: unable to start gnome due to an incomprehensible error fbcyborg Linux - Newbie 1 10-26-2011 07:17 AM
login error can's start session due to internal error wiisikke Fedora 3 05-11-2010 01:29 AM
Had an error message that something couldn't start because the tmp file was full..... steve513 Mandriva 5 08-06-2009 12:08 PM
cdebootstrap error 32512 couldn't install system due to errors! cnov Debian 0 08-06-2008 08:04 AM
I can't start Win XP due to disk error after RH9 instalation ! sydzmizaar Linux - General 5 11-24-2003 03:35 AM

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

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