This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Ever needed a CVS-only shell?


Today I finally solved one of the problems that I have since a long time: how to let people access CVS via SSH but not give them shell access.

It was *much* easier than expected, but real strange for a person that uses Windows a lot: it wouldn't certainly permit to have a .BAT as a shell...

--[ /usr/local/bin/cvsonly ]---------------------------
#!/bin/sh

if [ "$*" != "-c cvs server" ]; then
 echo "CVS Only!";
 exit;
fi;
cvs server
--[ /usr/local/bin/cvsonly ]---------------------------

Maybe it's not perfect or secure as possible, but it's always better that using a "normal" shell ^_^

--
Lapo 'Raist' Luchini
lapo at lapo dot it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]