restricted shell w/ bash?

I'm trying to setup certain users with a restricted shell. I've seen mention of invoking bash with a -r or "rbash", but I'm unsure how to do this via Netinfo. One tip suggested creating a symlink to bash that's named rbash, but that doesn't appear to work. Ideally I'd like to set this restricted shell when the account is created - I'm using a shell script that has a line like the following...

echo 'shortname::520:520::0:0:longname:/Users/shortname:/bin/bash' | sudo niload -v passwd /

All this is for a machine that will be configured soley as a ssh box for users to connect to and download data via scp, with no further privleges.

PB G4 15 2005 + iMac G5 + Xserve G5 Dual 2GHz, Mac OS X (10.4.6)

Posted on May 18, 2006 10:29 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

restricted shell w/ bash?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.