Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: restricted shell



On Oct 21,  2:32pm, Emre Yildirim wrote:
}
} Borsenkow Andrej wrote:
} 
} > Using disable builtin. Make .zshrc read-only for user (or do it in
} > system zshrc and make user's home directory read-only) and put 
} > 
} > disable echo
} 
} Hmm, that didn't work.  I can still use echo after doing the above.

"disable" only disables the builtin.  If there's still an external
command named "echo" in the path, that will get executed instead.

zsh% which echo
echo: shell built-in command
zsh% disable echo
zsh% which echo
/bin/echo
zsh% 


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author