-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rupendra Singh wrote:
| i am running on redhat 7.2.
|
| i want to stop shell access for my users without effecting anything
| else like FTP IMAP SMTP POP. can i do so ? How ?

Set their shell to /sbin/nologin instead of /bin/bash

Using /sbin/nologin vs. /bin/false retains FTP functionality since
/sbin/nologin is considered a valid shell for FTP daemons which require
this functionality. See /etc/shells for the listing (as of RH 8.0).

usermod -s /sbin/nologin <user> should do the trick. You can also be
brave and use vipw and manually change it with vi.

HTH,
- -Rick
- --
Rick Johnson, RHCE - [EMAIL PROTECTED]
Linux/WAN Administrator - Medata, Inc. (from home)
PGP Key: https://mail.medata.com/pgp/rjohnson.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Signed/Encrpyted for your protection

iD8DBQE+BNVmIgQdhlSHZgMRAtvCAKCvxuM7aDKkmF73CvUuVNuEsPJICACeK+dr
oIYiee2lIgwc+QkMPr81pCs=
=Zn04
-----END PGP SIGNATURE-----




--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to