secure-mcserv is a server for the Midnight Commander (network) filesystem (mcfs) of the Midnight Commander vfs (virtual file system). It is part of the mirrordir package. In can operate as a substitute to the Midnight Commander's native mcserv daemon, although It has several extensions for use with mirrordir.
secure-mcserv: <source-ip-address> : ALLOW
secure-mcserv: 212.89.128.0/255.255.255.0 : ALLOW
secure-mcserv: ALL : DENY
(This feature was submitted to me by Juergen Kammer <j.kammer@eurodata.de> who claims it works.)
This is a very useful option if you have lots of machines that a group of users have to be able to log into. Create accounts for all these users on each machine and disable them by editing their password fields to * in /etc/password (or /etc/shadow).
Select one machine as your password server (say it is called passerv.my.doma.in). This machine will contain proper password fields in /etc/password. On this machine run secure-mcserv -d as usual. On all other machines, run secure-mcserv -d -s passerv.my.doma.in
Because all intermediate connections use the same encrypted TCP stream, and are all equally secure, you can use this method even if passerv.my.doma.in is across the open internet. In fact the very method to authenticate against the password server is to check the exit status of the command:
pslogin user@passerv.my.doma.in --test-login --read-password-from-stdin
I also see no reason why you cannot use cascading password servers, although there is no advantage to doing this.
Each authentication takes the same time to execute, so using a password server takes twice as long as a normal login, because of the second connection it has to make to the password server. Cascades will take that much time extra for each successive password server.
Midnight Commander vfs has a bug that device files are always major:minor of 0:0. This bug is fixed in this implementation. Don't use the Midnight Commander to transfer device files. By the time you read this, the latest Midnight Commander may have had this fixed.
The special escape characters for suspending an rlogin session are not recognised. Hence programs like screen (?) will not work. I will add this functionality if users request it. Currently, ^Z etc. do not have any effect.