Link to home
Start Free TrialLog in
Avatar of brainarm38802
brainarm38802

asked on

Selectively disable SSH and FTP

I am running Mandrake 9 with SSH, FTP and Apache.  I want to allow all of my users to access the server via FTP, but I only want administrators to access it via SSH.  

I tried to edit the /etc/security/access.conf file, but it didn't work for me, maybe I used incorrect syntax.
-:<group>:ALL

I also tried changing the shell in /etc/passwd from /bin/bash to /sbin/nologin, but that eliminated FTP access too.  

Any suggestions would be helpful! Thanks

Matthew Brainard
brainarm_mweb@yahoo.com
Avatar of brainarm38802
brainarm38802

ASKER

Ok... nevermind... I figured it out! In the sshd_config file I just needed the line:

DenyGroups <group>

Now that I feel stupid for asking the question, and then answering it myself; I will be nice and award the first person to leave a response the 50 points.
ASKER CERTIFIED SOLUTION
Avatar of jimbb
jimbb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial