Asked by: Lorette Schen
Questioner General

Linux User Without Login Shell

Link of linux user without login shell page is given below. Pages related to linux user without login shell are also listed.

Last Updated: 3rd February, 2020

21
1. Stackexchange.com

Added by: Sadek Balenciaga

Explainer

ssh - Disable user shell for security reasons - Unix & Linux Stack

08.11.2012 - You can use the usermod command to change a user's login shell. Changing the shell to /bin/false or /usr/sbin/nologin will only prevent them 
Url: https://unix.stackexchange.com/questions/55106/disable-user-shell-for-...

910,476,019

Monthly Visits

111

Alexa Rank

US

Popular in

Up

Service Staus

15h ago

Last Checked

2. Superuser.com

Added by: Jinyong Albersen

Explainer

linux - How can I create a non-login user? - Super User

02.12.2009 - The -r flag will create a system user - one which does not have a . NOTE: Be sure to include -s /sbin/nologin to disable any login shell from 
Url: https://superuser.com/questions/77617/how-can-i-create-a-non-login-use...

inf

Monthly Visits

Alexa Rank

Popular in

Up

Service Staus

19h ago

Last Checked

3. Tecmint.com

Added by: Mamma Obysov

Explainer

3 Ways to Change a Users Default Shell in Linux - Tecmint

18.09.2017 - To block or disable normal user logins in Linux using a nologin shell. Use a shell wrapper script or program to login user commands before 
Url: https://www.tecmint.com/change-a-users-default-shell-in-linux/

9,341,993

Monthly Visits

10,432

Alexa Rank

IN

Popular in

Up

Service Staus

11h ago

Last Checked

4. Serverfault.com

Added by: Shanta Crujeiras

Explainer

linux - run script as user who has nologin shell - Server Fault

19.01.2012 - You can use the -s switch to su to run a particular shell apache # getent passwd apache apache:x:48:48:Apache:/var/www:/sbin/nologin.
Url: https://serverfault.com/questions/351046/run-script-as-user-who-has-no...

28,507,513

Monthly Visits

3,449

Alexa Rank

IN

Popular in

Up

Service Staus

14h ago

Last Checked

5. Cyberciti.biz

Added by: Nayhara Stemp

Explainer

Howto: Linux shell restricting access - nixCraft

08.02.2006 - Debain Linux user modify above command as follows: # usermod -s /usr/sbin/nologin vivek. Now user vivek's new login shell is /sbin/nologin.
Url: https://www.cyberciti.biz/tips/howto-linux-shell-restricting-access.ht...

12,828,425

Monthly Visits

7,616

Alexa Rank

IN

Popular in

Up

Service Staus

21h ago

Last Checked

6. Linuxquestions.org

Added by: Agora Bile

Explainer

[SOLVED] Running program as user with no shell - LinuxQuestions

But I don't want anyone to be able to login as that user, so I created a useradd -s /sbin/nologin someuser setting the program you want to run as this user as its login shell? .. I don't understand that part of Linux very well.
Url: https://www.linuxquestions.org/questions/linux-newbie-8/running-progra...

10,435,577

Monthly Visits

9,347

Alexa Rank

IN

Popular in

Up

Service Staus

12h ago

Last Checked

Added by: Abdellah Bleck

Explainer

Do FTP users must have a login shell? - LinuxQuestions

Is it possible to create an ftp user without giving him a login shell? Because when I The filesystem needs to be a native linux type to allow this.
Url: https://www.linuxquestions.org/questions/linux-server-73/do-ftp-users-...

10,331,221

Monthly Visits

9,347

Alexa Rank

IN

Popular in

Up

Service Staus

23h ago

Last Checked

7. Redhat.com

Added by: Jama Balle

Explainer

How do I create and modify user accounts to have a nologin shell?

16.09.2012 - The simple solution is to configure their accounts such that their login shell is set to /sbin/nologin . To modify an existing user, execute the 
Url: https://access.redhat.com/articles/2072

22,054,924

Monthly Visits

4,449

Alexa Rank

IN

Popular in

Up

Service Staus

11h ago

Last Checked

8. Youtube.com

Added by: Patrina Michelet

Explainer

How to Stop a Linux User from Logging in! - No Login Shell - YouTube

Basic tutorial on how to change a linux users login shell to /bin/false and stop them from logging into their account.
Url: https://www.youtube.com/watch?v=BKK0kvAfdH0

52,181,413,392

Monthly Visits

2

Alexa Rank

US

Popular in

Up

Service Staus

6h ago

Last Checked

9. Thegeekdiary.com

Added by: Karie Raviram

Explainer

CentOS / RHEL : How to Change the login shell of the user – The

To change the shell you can either user useradd or chsh command. cat /etc/shells /bin/sh /bin/bash /sbin/nologin /bin/dash /bin/tcsh /bin/csh. You can also use 
Url: https://www.thegeekdiary.com/centos-rhel-how-to-change-the-login-shell...

3,098,625

Monthly Visits

31,177

Alexa Rank

IN

Popular in

Up

Service Staus

5h ago

Last Checked

10. Askubuntu.com

Added by: Fausta Dayan

Explainer

How to add a user without /home? - Ask Ubuntu

12.08.2012 - I needed something similar - a new user without login privileges and tied to a system service. However, the answer by Clausi creates a user 
Url: https://askubuntu.com/questions/29359/how-to-add-a-user-without-home

44,085,433

Monthly Visits

2,238

Alexa Rank

IN

Popular in

Up

Service Staus

20h ago

Last Checked

11. Stackoverflow.com

Added by: Sassi Gaiatas

Explainer

Command to change the default home directory of a user - Stack

From Linux Change Default User Home Directory While Adding A New User: Simply open Now you can add user using regular useradd command: # useradd 
Url: https://stackoverflow.com/questions/20797819/command-to-change-the-def...

2,547,285,378

Monthly Visits

40

Alexa Rank

IN

Popular in

Up

Service Staus

18h ago

Last Checked

Added by: Maritxell Batuev

Explainer

What is the *nix command to view a user's default login shell

The canonical way to query the /etc/passwd file for this information is with getent . You can parse getent output with standard tools such as cut to extract the 
Url: https://stackoverflow.com/questions/11059067/what-is-the-nix-command-t...

2,547,285,378

Monthly Visits

40

Alexa Rank

IN

Popular in

Up

Service Staus

21h ago

Last Checked

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Co-Authored By:

eLogin-DB Staff Editor

11

3rd February, 2020

74

18

Active

11

Answers

18

Images

9

Users

88% of readers found this page helpful.

4.9/5

Click a star to add your vote