you can also just set their shell to be /bin/true, then add /bin/true to
the /etc/shells. then they will ba able to ftp, but not telnet.
On Thu, 9 Apr 1998, Bug Hunter wrote:
> In that case, you can set the shell properly in password. If you run the
> "adduser" script that Redhat supplies, then in /etc/skel, you can change
> .bash_profile to put and "exit" command at the end of the profile script. This will
> be copied to his directory.
>
> If you do this, then if a user telnets to his account, he is immediately logged
> out. You must make sure the .bash_profile is chmod to where root owns the file and
> is the only one that can modify that file. Otherwise the user could ftp a
> .bash_profile replacement into his directory and telnet in.
>
>
> bug
>
> Nils wrote:
>
> > > You can simply add a line in /etc/passwd, with the shell set to /dev/null,
> > > and run 'passwd' as root to set the password in their passwd or shadow file.
> > > this will give them a mailbox but no shell account.
> >
> > Yes, I am planning to give a shell which does not allow a login (not
> > /dev/null since the popper will require a valid shell from /etc/shells)
> > but ftp and suchlike would still be accessible.
> >
> > In the end I'm not too bothered about that, it's just that I feel very
> > uneasy about having so many user accounts (200+) to manage.
> >
> > Nils
> >
>
>
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject.
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.