[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to limit it ?



* Grzegorz Pawel Szostak said:
> > > It works with ssh ! I'm using global profile: /etc/profile and ssh (always
> > > - you know why :) ) 
> > No, it works with bash, not with ssh. In case you don't know, a legitimate
> > user on your machine doesn't have to use shell, he can exec for example mc
> > using ssh AND bypassing shell.
> What do you mean ?
try:

ssh -l yourlogin remote.server.com /usr/bin/mc

Assuming you've got mc in that location on a remote serever, it will get
invoked directly - bypassing the shell and thus rendering your solution
completely useless.

marek

Attachment: pgpW_DFKZ5y16.pgp
Description: PGP signature


Reply to: