View: 8385|Reply: 11

How to disable automatic login on latest Debian OPI 5

[Copy link]

3

threads

12

posts

117

credits

Registered member

Rank: 2

credits
117
Published in 2023-2-25 08:54:30 | Show all floors |Read mode
I need to disable auto login on Debian server to orangepi user or at least change user on Orange PI 5.
Thanks,


3

threads

12

posts

117

credits

Registered member

Rank: 2

credits
117
 Author| Published in 2023-4-21 09:29:19 | Show all floors
Does anybody know how to disable autologin (Orange PI 5) in Debian Server???

Help please.

I need to disable auto login on Debian server to orangepi user or at least change user on Orange PI 5.
Thanks,

2

threads

10

posts

1995

credits

Gold member

Rank: 6Rank: 6

credits
1995
Published in 2023-4-27 16:39:02 | Show all floors
This post was finally edited by AllenChristophe at 2023-4-27 16:41
curyjorge98Published in 2023-4-21 09:29
Does anybody know how to disable autologin (Orange PI 5) in Debian Server???

Help please.

The file you're looking for is:
  1. /lib/systemd/system/getty@.service.d/override.conf
Copy code
Then look for this line and edit as you need:
  1. ExecStart=-/sbin/agetty --noissue --autologin orangepi %I $TERM
Copy code


3

threads

12

posts

117

credits

Registered member

Rank: 2

credits
117
 Author| Published in 2023-4-29 21:31:31 | Show all floors
Hi Allen,

Thanks for you answer.

I made this change:

[Service]
ExecStartPre=/bin/sh -c 'exec /bin/sleep 10'
ExecStart=
ExecStart=-/sbin/agetty --noissue --autologin cury %I $TERM
Type=idle


And after a reboot orangepi user is still logged in:

cury@debkde-opi5:~$ who
cury     tty7         2023-04-29 09:42 (:0)
orangepi ttyFIQ0      2023-04-29 09:42
cury     pts/0        2023-04-29 09:42 (:0)
cury     pts/2        2023-04-29 09:42 (:0)
cury     pts/3        2023-04-29 09:42 (:0)
cury@debkde-opi5:~$

I am running Kde Plasma over a Debian Server install in OPI 5.

Plasma Autologin is activated.

Any idea???

Thanks,

Cury

2

threads

10

posts

1995

credits

Gold member

Rank: 6Rank: 6

credits
1995
Published in 2023-4-30 14:49:25 | Show all floors
This post was finally edited by AllenChristophe at 2023-4-30 20:14

curyjorge98Published in 2023-4-29 21:31
Hi Allen,

Thanks for you answer.

##EDIT:
First quick-read of your post, I thought your desktop logged in as oprangepi. After a re-read, it seems like the orangepi user is responsible for one or more processes at boot.

Run htop to track process(es) orangepi user is running. This should help track down any scripts that call that user and you can edit as needed or even remove the orangepi user altogether. Keep in mind that you'll have to kill any processes orangepi user is running before removing orangepi as a user.

See below for GUI login.
##

The last suggestion was to change/disable auto login for CLI.

Do you know what window manager you are using?



For instance, I'll usually use OpenBox / LightDM for a light use and would edit:

  1. /etc/lightdm/lightdm.conf
Copy code

and change:
  1. autologin-user=orangepi
Copy code



SDDM: /etc/sddm.conf

GDM: /etc/gdm/custom.conf

....and so on.



3

threads

12

posts

117

credits

Registered member

Rank: 2

credits
117
 Author| Published in 2023-5-11 00:50:37 | Show all floors
Hi Allen,

Thanks for you answer.

I am using KDE Plasma and after  SDDM automatic Login I get this situation on console for who cmd:

  1. cury@debkde-opi5:/media/cury$ who
  2. cury     tty7         2023-05-10 00:03 (:0)
  3. orangepi ttyFIQ0      2023-05-10 07:40
  4. cury     pts/0        2023-05-10 00:03 (:0)
  5. cury     pts/2        2023-05-10 00:03 (:0)
  6. cury@debkde-opi5:/media/cury$
Copy code


I've made a SDDM setup to autologin as cury. cury its me.

And orangepi is still loged in on  ttyFIQ0 .

and cmd "ps -aux | grep orangepi"

  1. cury@debkde-opi5:/media/cury$ ps -aux | grep orangepi
  2. orangepi    2602  0.0  0.1  16204  8632 ?        Ss   07:40   0:00 /lib/systemd/systemd --user
  3. orangepi    2603  0.0  0.0 168968  3332 ?        S    07:40   0:00 (sd-pam)
  4. orangepi    2619  0.0  0.0  91360  4996 ?        Ssl  07:40   0:00 /usr/bin/pipewire
  5. orangepi    2620  0.0  0.1 311392 10120 ?        Ssl  07:40   0:00 /usr/bin/pulseaudio --daemonize=no --log-target=journal
  6. orangepi    2622  0.0  0.0   8172  4764 ttyFIQ0  S+   07:40   0:00 -bash
  7. orangepi    2624  0.0  0.0   7844  3768 ?        Ss   07:40   0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
  8. orangepi    2625  0.0  0.0  85184  5876 ?        Sl   07:40   0:00 /usr/bin/pipewire-media-session
  9. orangepi    2692  0.0  0.1 245064  8192 ?        Sl   07:40   0:00 /usr/libexec/pulse/gsettings-helper
  10. cury       18982  0.5  1.7 1943840 135196 ?      Sl   13:04   0:06 /usr/bin/kate -b /home/cury/Downloads/orangepi-login.txt
  11. cury@debkde-opi5:/media/cury$
Copy code


You said:
The last suggestion was to change/disable auto login for CLI.
Where??? Thats what I want.

Do you know what window manager you are using?
Yes, KDE Plasma 5.20.5 under Debian 11 on Orange PI 5.

On /etc/systemd dir  there is no mention to orangepi user

Thats all I can see.

Where are orangepi devellopers???

Thanks,

3

threads

12

posts

117

credits

Registered member

Rank: 2

credits
117
 Author| Published in 2023-5-11 08:47:51 | Show all floors
Hi Allen,

Thanks for you answer.

I am using KDE Plasma and after  SDDM automatic Login I get this situation on console for who cmd:

  1. cury@debkde-opi5:/media/cury$ who
  2. cury     tty7         2023-05-10 00:03 (:0)
  3. orangepi ttyFIQ0      2023-05-10 07:40
  4. cury     pts/0        2023-05-10 00:03 (:0)
  5. cury     pts/2        2023-05-10 00:03 (:0)
  6. cury@debkde-opi5:/media/cury$
Copy code


I've made a SDDM setup to autologin as cury. cury its me.

And orangepi is still loged in on  ttyFIQ0 .

and cmd "ps -aux | grep orangepi"

  1. cury@debkde-opi5:/media/cury$ ps -aux | grep orangepi
  2. orangepi    2602  0.0  0.1  16204  8632 ?        Ss   07:40   0:00 /lib/systemd/systemd --user
  3. orangepi    2603  0.0  0.0 168968  3332 ?        S    07:40   0:00 (sd-pam)
  4. orangepi    2619  0.0  0.0  91360  4996 ?        Ssl  07:40   0:00 /usr/bin/pipewire
  5. orangepi    2620  0.0  0.1 311392 10120 ?        Ssl  07:40   0:00 /usr/bin/pulseaudio --daemonize=no --log-target=journal
  6. orangepi    2622  0.0  0.0   8172  4764 ttyFIQ0  S+   07:40   0:00 -bash
  7. orangepi    2624  0.0  0.0   7844  3768 ?        Ss   07:40   0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
  8. orangepi    2625  0.0  0.0  85184  5876 ?        Sl   07:40   0:00 /usr/bin/pipewire-media-session
  9. orangepi    2692  0.0  0.1 245064  8192 ?        Sl   07:40   0:00 /usr/libexec/pulse/gsettings-helper
  10. cury       18982  0.5  1.7 1943840 135196 ?      Sl   13:04   0:06 /usr/bin/kate -b /home/cury/Downloads/orangepi-login.txt
  11. cury@debkde-opi5:/media/cury$
Copy code


You said:
The last suggestion was to change/disable auto login for CLI.
Where??? Thats what I want.

Do you know what window manager you are using?
Yes, KDE Plasma 5.20.5 under Debian 11 on Orange PI 5.

On /etc/systemd dir  there is no mention to orangepi user

Thats all I can see.

Where are orangepi devellopers???

Thanks,

2

threads

10

posts

1995

credits

Gold member

Rank: 6Rank: 6

credits
1995
Published in 2023-5-22 03:09:48 | Show all floors
You don't want to change any further unless you run the processes you listed under another user. The orangepi user is running audio/media for your system, according to your output.

ttyFIQ0 is responsible for uart i/o- another item you do not want to touch unless you are absolutely sure you know what you're doing or don't care about uart.

Where are orangepi devellopers???
Armbian has been largely responsible for previous OrangePi builds and I assume the same applies here. You can check out their forum if you want to dig deeper.

0

threads

3

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2023-5-22 11:10:09 | Show all floors
contexto unlimited infinite word locate problem is a famous brain training word game. Have fun while solving everyday contexto!  

0

threads

1

posts

6

credits

Novice

Rank: 1

credits
6
Published in 2023-6-25 23:00:44 | Show all floors
At least for Debian 12 Bookworm running on Orange Pi 5 Plus: took me hours to find, but this worked for me:
To disable the autologin, you need to edit the override.conf file under /usr/lib/systemd/system/getty@.service.d/.

Open the file in a text editor with root privileges. For example, if you're using nano as your text editor, you would use the following command:

sudo nano /usr/lib/systemd/system/getty@.service.d/override.conf

Once the file is open, you should see the line that reads:

ExecStart=-/sbin/agetty --noissue --autologin orangepi %I $TERM

Edit this line to remove the --autologin orangepi option. The line should then read:

ExecStart=-/sbin/agetty --noissue %I $TERM

Save the changes and exit the text editor. In nano, you can do this by pressing Ctrl+O to save, and Ctrl+X to exit.

Finally, you need to reload the systemd daemon to apply the changes. You can do this with the following command:

sudo systemctl daemon-reload

After these steps, the 'orangepi' user should no longer be logged in automatically. The next time you start your system, you should be prompted for a username and password.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list