Re: Newbie question over ssh/sftp
From: Ulf Doz (maril_manson_at_hotmail.com)
Date: Thu, 15 Jan 2004 17:57:57 +0100
Dennis Peere wrote:
> Dear all,
> I've got the following packages installed on my RH8.0 system :
> package openssh-3.4p1-2.i386.rpm
> package openssh-askpass-3.4p1-2.i386.rpm
> package openssh-askpass-gnome-3.4p1-2.i386.rpm
> package openssh-clients-3.4p1-2.i386.rpm
> package openssh-server-3.4p1-2.i386.rpm
> Ik can connect to the sshd with all local linux users I've created and I'd
> like to keep it that way.
> However I'd like only one user (marc) to be able to connect for scp/sftp.
> When I add AllowUsers marc to the /etc/sshd.config, this means only marc
> gets ssh access as well :-(
> How can I configure seperate users for scp/sftp and ssh please ?
As far as I understood your target ist to avoid shell-login for marc.
I haven't tested the following suggestion, but give it a try.
Change the line in /etc/passwd, which is defining user marc to something
So he has a home directory and a login shell wich obviously aren't some.
Without a shell, a home directory seems useless to me.
P.S.: BTW, posting the same message to more than 3 newsgroups is hurting
netiquette. Many people will flame or simply ignore you.