rbash + openssh

"Aaron M. Hirsch" <[email protected]>
Newsgroups gmane.linux.admin.managers
Organization SchlumbergerSema
Message-ID <[email protected]>
All,

I am attempting to get rbash and openssh to play well together.  The install 
is a RH 9 machine.  The ~/.profile contains:

export PATH=/usr/rbin:/usr/libexec/openssh/sftp-server
PS1="${LOGNAME}@`hostname`% "

In /usr/rbin there are symbolic links to:
/bin/hostname
/usr/bin/scp
/usr/bin/ssh
/usr/bin/sftp
/bin/ls
/bin/cat

The /usr/libexec/openssh/sftp-server path is part of the profile to allow 
access to the sftp-server.

I am able to ssh in without a problem, sftp fails horribly (dosen't even 
authenticate), and scp authenticates but hangs and does not transfer any 
data.

Has anyone had any luck getting rbash working in a similar fashion? 

Note that I have also chattr +i the ~/.profile so that user cannot modify it, 
and it is owned by root.  I know this isn't 100% secure, but then again 
nothing is.

-- 
Aaron M. Hirsch
Systems Administrator II
Schlumberger 
11146 Thompson Ave.
Lenexa, KS 66219

Phone:  (913) 312-4717
Mobile: (913) 284-9094
Fax:	(913) 312-4701
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.