You are not logged in.

#1 2014-12-03 15:22:09

campo85
Member
Registered: 2012-09-05
Posts: 32

Disable login for embedded purpose

Hi all,
I need some hints about an argument. I need to disable the login on my archlinux. I guess there is a specific service that I need to disable. Can someone tell what it is ?
After that I've disabled is there a way to enable ?
Thanks for any reply.

Kind regards

P.s. It's ok for me also to hide the password prompt after the boot ( text mode ).

Last edited by campo85 (2014-12-03 15:31:49)

Offline

#2 2014-12-03 15:51:13

amish
Member
Registered: 2014-05-10
Posts: 470

Re: Disable login for embedded purpose

man pam_nologin
man nologin

man logind.conf

Last edited by amish (2014-12-03 16:00:06)

Offline

#3 2014-12-03 16:03:22

campo85
Member
Registered: 2012-09-05
Posts: 32

Re: Disable login for embedded purpose

amish wrote:

man pam_nologin
man nologin

Thanks for the answer, but I've tryed and when I reboot the system the /etc/nologin  file is deleted, and the system show me the password prompt as usual.

P.s. I didn't see logind.conf, I'll check.

Last edited by campo85 (2014-12-03 16:05:00)

Offline

#4 2014-12-03 17:34:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,553
Website

Re: Disable login for embedded purpose

Can you clarify your end goal?  Part of your post sounds almost like you want an autologin (hide the password prompt).  But if you want to disable logging in, what routes of login do you want to prevent, local tty, ssh, others?  If you disable every form of loging in, then how would you ever re-enable anything (I suppose only by booting a live medium and modifying the system from there).

What is the "embedded purpose" referred to in the title.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#5 2014-12-04 09:05:31

campo85
Member
Registered: 2012-09-05
Posts: 32

Re: Disable login for embedded purpose

Trilby wrote:

Can you clarify your end goal?  Part of your post sounds almost like you want an autologin (hide the password prompt).  But if you want to disable logging in, what routes of login do you want to prevent, local tty, ssh, others?  If you disable every form of loging in, then how would you ever re-enable anything (I suppose only by booting a live medium and modifying the system from there).

What is the "embedded purpose" referred to in the title.


Ok, let me explain better. I've a PC that runs  a graphical service. I would like to hide the boot process away, so the custmer will see only a black screen before that my service starts. I no need to make a login ( anyways I can use grub and start a root shell at the boot ).

Offline

#6 2014-12-04 12:38:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,553
Website

Re: Disable login for embedded purpose

Ah, well this is entirely different from what you were asking.  It sounds like you want to boot to graphical mode with autologin of a DM - that'd do it.  You may also want to check that you have some of these settings: https://wiki.archlinux.org/index.php/Quiet_boot

Then to change things - or "reenable" loging in, just change to another tty.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

Board footer

Powered by FluxBB