On Friday 18 January 2002 14:49 pm, Philip S Tellis wrote:
> On Fri, 18 Jan 2002, Dayalan Manohar wrote:
> > from man useradd the defaults can be supplied by the system for adding a
> > user.how to specify that the default shell is rbash or "bash -r" ?
>
> not sure how you set the default shell, but I do know that you've can
> only use shells that are listed in /etc/shells otherwise PAM will cry,
> and we don't want PAM to cry now do we?

PAM will just issue a warning, if a shell is not listed in /etc/shells. But:

1. sendmail will not deliver mails to a user if her shell is not listed in 
/etc/shells.
2. wu-ftpd will not allow logins if the user's shell is not listed.
3. There might be other programs - don't know. ;-)

You can set the default shell by useradd -s. You can change it later
by usermod -s (or chsh). And you can avoid all problems by adding
the shell you use to /etc/shells.

I am not sure a shell like /bin/bash -r is allowed in /etc/passwd. Maybe you 
should get rbash compiled (which redhat does not do by default, you will
have to recompile bash). Or set the shell as something like /bin/r-bash
which is a shell script that simply invokes /bin/bash -r.

Binand

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to