Difference B/w /bin/false & /usr/sbin/nologin


#1

Hi,

May I know the major differences between both of these commands /bin/false & /usr/sbin/nologin.

What is the main purpose and preferring one of these command over the other and why one command is preferred over the other on certain time.

I am seeing both are being used. Further when should I give preference to nologin over false and why.

Ty,