Re: Newbie question over ssh/sftp
From: Ulf Doz (maril_manson_at_hotmail.com)
Date: 01/15/04
- Next message: Ulf Doz: "Re: Defragmenting the Hardrive"
- Previous message: bad hair: "newbie: RH9 drivers for RealTek nic"
- In reply to: Dennis Peere: "Newbie question over ssh/sftp"
- Next in thread: David Efflandt: "Re: Newbie question over ssh/sftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ?
> Regards,
> Dennis
>
>
>
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
like:
marc:x:<uid>:<gid>:<full name>:/dev/null:/bin/false
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.
Good luck
P.S.: BTW, posting the same message to more than 3 newsgroups is hurting
netiquette. Many people will flame or simply ignore you.
-- Robert...
- Next message: Ulf Doz: "Re: Defragmenting the Hardrive"
- Previous message: bad hair: "newbie: RH9 drivers for RealTek nic"
- In reply to: Dennis Peere: "Newbie question over ssh/sftp"
- Next in thread: David Efflandt: "Re: Newbie question over ssh/sftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|