[solved] How to revert Automatic login to virtual console?

Long, long time ago (maybe 3 years back), I set up automatic login for my user. Now, I am trying to revert it so that the console asks me for username (unless it is avoidable) and password upon login.
So I though "Easy! I'll just go here https://wiki.archlinux.org/index.php/au … al_console and delete the file mentioned there:
/etc/systemd/system/[email protected]/autologin.conf
But the file is not present on my system. Instead, I have this:
/etc/systemd/system/getty.target.wants/getty\@tty1.service
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Getty on %I
Documentation=man:agetty(8)
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service
# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes
# On systems without virtual consoles, don't start any getty. (Note
# that serial gettys are covered by [email protected], not this
# unit
ConditionPathExists=/dev/tty0
[Service]
Environment=TERM=linux
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty --noclear -a smith %I 38400
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP
[Install]
Alias=getty.target.wants/[email protected]
... but if I remove it, or even just uncomment the lines in the [Service] section, upon boot the console output stops at the last SystemD init message, and never gets to user/password prompt. I need to switch to other ttys to access it.
Last edited by Lockheed (2014-10-22 12:43:57)

Perhaps "grep autologin -R /etc /usr/lib" would point you to something.
-edit-
Maybe grep for "getty", as apparently "-a" is equivalent to "--autologin".
-edit-
Okay. Remove "-a" in the file you pasted.
-edit-
You could also remove the symlink and the file it points to and create there a symlink to the file coming with systemd, as your file differs somewhat from what I have.
ls -l /etc/systemd/system/getty.target.wants/[email protected]
lrwxrwxrwx 1 root root 38 Jun 21 2012 /etc/systemd/system/getty.target.wants/[email protected] -> /usr/lib/systemd/system/[email protected]
Last edited by lucke (2014-10-01 12:12:35)

Similar Messages

  • Automatic login to virtual console doesn't create a 'session'

    I'm running an instance of Arch inside an LXC container. It's basically being used as a lightweight virtualisation approach, and so I have a wrapper program that spins up the instance, configures it, and drops the user in. As such, the user should be automatically logged in on boot.
    I'm following the method listed at https://wiki.archlinux.org/index.php/Au … al_console and it works fine; however, it doesn't register a 'session' (as I understand it): loginctl shows nothing. This means I can't shut down the machine as a regular user.
    I was previously starting a getty on /dev/console instead of at /dev/tty1, and this was correctly registering a session, but would hang as soon as you ran 'vi'. If vi was killed, the terminal size would shrink to a fraction of its existing size until fixed with 'reset'.
    Solving either of these problems would be great, if anybody has any ideas! I have polkit (1.09) installed.

    As I say, loginctl gives no results:
    SESSION UID USER SEAT
    0 sessions listed.
    systemctl list-units | grep polkit
    also returns nothing, which I wasn't expecting. Some more detail...
    $ systemctl status polkit
    polkit.service - Authorization Manager
    Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
    Active: inactive (dead)
    Docs: man:polkit(8)
    I can manually start polkit, and then get:
    # systemctl status polkit
    polkit.service - Authorization Manager
    Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
    Active: active (running) since Mon 2013-04-15 09:15:20 UTC; 6s ago
    Docs: man:polkit(8)
    Main PID: 98 (polkitd)
    CGroup: name=systemd:/system/polkit.service
    └─98 /usr/lib/polkit-1/polkitd --no-debug
    Though I also get these errors in the journalctl log:
    Apr 15 09:15:20 archibald polkitd[98]: Loading rules from directory /etc/polkit-1/rules.d
    Apr 15 09:15:20 archibald polkitd[98]: Error opening rules directory: Error opening directory '/etc/polkit-1/rules.d': Permission denied (g-file-error-quark, 2)
    Apr 15 09:15:20 archibald polkitd[98]: Loading rules from directory /usr/share/polkit-1/rules.d
    Apr 15 09:15:20 archibald polkitd[98]: Error opening rules directory: Error opening directory '/usr/share/polkit-1/rules.d': Permission denied (g-file-error-quark, 2)
    Last edited by osymandias (2013-04-15 09:18:11)

  • TS3660 How To Disable Automatic Login

    How To Disable Automatic Login

    It is your only option if you want to get rid of that other user account. It seems the system is Hard Set to boot to that account. How and why I have not Idea but the first thing you should of done was Restoring it to the Original OS, if it was not Mt Lion to begin with, in doing so getting rid of all other accounts and files from that other account.
    Time to Bit the Bullet and Erase the drive completely and reinstall the original shipping version of OS X on that system.
    Anton Mironenko wrote:
    Reinstalling the OS would be too extreme. I already have many programs installed, and I tuned a lot of params. Data migration is another pain.
    I hope, it is possible to solve this issue in another way.

  • How to disable automatic login and to see other accounts?

    I bought MacBook Pro Retina with Mac OS X 10.8.2 in a shop, where there already was account "kiosk".
    I created new account, gave him Administrator priviliges.
    In the Preferences / Users & Groups I see kiosk account as "Managed", and my new account as "Admin".
    I set:
    System Preferences / Security & Privacy / General / Disable automatic login = Checked.
    System Preferences / Users & Groups / Login Options / Automatic login = Off.
    But still I have two issues:
    1) After start the laptop automatically logins into kiosk account, while I explicitly switched off this option
    2) Apart from kiosk account, the OS doesn't see any other accounts, for example my new account.
    For example, when I changed login shell for kiosk account into /usr/bin/false, I couldn't login at all. The OS said something like, there are no active accounts. So I had to set login shell back to /bin/bash using single-user mode.
    The questions are:
    How to disable automatic login into kiosk account?
    How to see a choice between kiosk account and my new account in the login dialog?
    How to delete kiosk account? Currently the delete option is disabled for kiosk in System Preferences / Users & Groups.
    So far after laptop start I automatically login into kiosk, then switch into my new account with entering a password, which is weird.
    Thanks in advance.

    It is your only option if you want to get rid of that other user account. It seems the system is Hard Set to boot to that account. How and why I have not Idea but the first thing you should of done was Restoring it to the Original OS, if it was not Mt Lion to begin with, in doing so getting rid of all other accounts and files from that other account.
    Time to Bit the Bullet and Erase the drive completely and reinstall the original shipping version of OS X on that system.
    Anton Mironenko wrote:
    Reinstalling the OS would be too extreme. I already have many programs installed, and I tuned a lot of params. Data migration is another pain.
    I hope, it is possible to solve this issue in another way.

  • [Solved] How to retrieve AUR login details...

    Hi.
    It's been a while since I've logged into the AUR, and now I can't remember my user-name login.
    I was able to reset my password through my e-mail address, but I haven't a clue what my login name was.
    How do I retrieve this info?
    Last edited by *nixer (2012-01-05 03:12:49)

    Ask on the mailing list, they should be able to tell you what login belongs to your e-mail address.
    http://mailman.archlinux.org/pipermail/ … 17278.html

  • [Solved]how to revert last upgrade

    Newbie, here. With the last upgrade I lost my wireless connection, I am using an AUR package for my RTL8191SE and it is not updated yet. Until then I want to revert my upgrade. My cache still has the old packages, so if I could only know which packages were updated. I couldn't find anything in wiki, so any help is highly appreciated.
    Last edited by sonay (2011-01-31 20:24:48)

    Look in /var/log/pacman.log
    # edit just mirroring skunktrader's post...
    Last edited by jasonwryan (2011-01-31 20:21:41)

  • [Solved] How can I create logs of my console?

    Hello. I'm fairly new to linux in general and decided to take up the challenge and use Arch Linux. I have succeeded in installing the base system but I'm having a problem with getting my wireless network to work (dhcpcd doesn't seem to want to give me an ipv4 address, the ipv6 address just times out) I would like to create a new thread describing the issue in hopes of solving it but I have no idea how I am going to get the output from my arch console on one computer to this browser on a laptop. I'd like to describe my problem as well as possible but I don't really want to sit here and type out the hundreds of lines of output that I have right now. Could you explain to me how I may go about getting this information onto this forum? Thanks for your help.
    Last edited by Firephyz (2014-07-19 20:04:47)

    I should have all permissions ((ls -l /mnt) returns drwx------)
    Those permissions mean only the owner of that directory has rights.  Ignoring the d (just means its a directory), the first 3 means read, write, and execute permissions for the owner.  The next 3 are blank so the group that owns it gets no permissions.  The last 3 are also blank and mean no one else gets any permissions.  If the directory is owned by root, you need to use su or sudo to be able to access it.
    If that doesn't solve it, another common problem is that NTFS partitions are read-only with the default NTFS driver compiled into the kernel.  You need to install the package "ntfs-3g" to get a driver that can write to NTFS.  If you don't have internet to install that package, you may just want to reformat your USB stick to another file system (FAT32 is good if you need Windows to be able to use it.)

  • Windows 7 automatic login to AD and Edir

    Any one have clear instructions on how to accomplish automatic login to a windows AD domain and edirectory?
    Using Novell Client 2 Sp3 for windows 7 (IR6). Novell is the primary login.
    Goal is to enable the automatic login to both as user "install" .. sysprep the image.. deploy the image so it automatically logs in as the user. Installs associated default zenworks bundles, with the last bundle removing the automatic login registry keys.. then reboot and be ready for the user to login to.
    used to use autolog.exe from Tommy for XP, which I understand doesn't work with windows 7.

    Lol apparently I just need to talk myself through this process :P
    Seems to be working at the moment. Here's what I did. Computer is joined to AD domain and has Novell Client installed/primary logon. I haven't tried this with a sysprep'd image yet, but hoping the sysprep process doesn't change any of these keys:
    HKLM\Software\Novell\Login
    REG_SZ AutoAdminLogon = 1
    REG_SZ DefaultLocationProfile = Default
    REG_SZ DefaultUserName = install (or whatever username you intend to use)
    REG_SZ DefaultPassword = password (or whatever password associated with above username)
    HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
    REG_SZ AutoAdminLogon = 1
    REG_SZ DefaultDomainName = yourdomainname
    REG_SZ DefaultUserName = install (or whatever username)
    REG_SZ DefaultPassword = install (or whatever password associated with above username)
    REG_DWORD DisableCAD = 1 (disable the Ctrl+Alt+Del prompt)

  • How can we re-enable automatic login?

    My husband likes to have automatic login, and has always used it on his laptop. The computer belongs to his employer; yesterday, it wouldn't accept his login at all, and when he got it back from IT an hour later, there was a new account on it (the IT's, I guess, since it was named "Maintenance"), and both it and his own account were now called "admin, managed". The Guest Account was changed to "disabled". I have an admin account on that computer too, which I never use except to help him out, and it was unchanged. I was able to use this to turn off the "managed" part by turning off the Parental Controls checkbox on his account. But logging back into his account, now a simple "admin", did not allow me to re-enable the automatic login. (I couldn't do it from my own account, either.)
    Present condition: (On a Macbook Pro, running OS 10.6.8).
    1. In System Preferences, in the Security Pane (after clicking the lock and entering the password), the first checkbox under "For all accounts on this computer:" is the one to "Disable automatic login". This box is checked AND GRAYED OUT. It cannot be changed. The 4 boxes under that are all live and checked (to require a password to unlock each pane, to log out after inactivity, to use secure virtual memory, and to automatically update the safe downloads list).
    2. In the Accounts Pane, clicking on Login Options (with the lock opened), the top line, "Automatic login:" is set to "off", and GRAYED OUT. It too cannot be changed. Other options are also grayed out: can't show the Restart etc. buttons, or show the fast user switching menu.
    This is true on our home network, so it isn't something enforced by the employer's network, at least, not directly.
    Filevault isn't on, by the way, and never has been.
    Is this a condition set by a terminal command by IT? If so, how do we bypass it? It's more of a nuisance this way than anything serious, but an adnimistrator account ought to be able to access all the options, right? (And we have no idea why he couldn't log in in the first place, which started this whole mess.) All suggestions will be welcome.
    Susan K

    Forgive what may be a dumb question on my part, but did you click the lock icon at the lower-left of the Accounts pane to unlock it? You can't change those settings until the pane is unlocked, which you should be able to do if you have adminstrator privileges unless his company has in some way locked off those settings, something which may well be company policy.
    Hope this helps.

  • [SOLVED] Automatic Login to Openbox

    Since I'm on a single user machine and have a bios based password prompt at startup, I would like to log in as user automatically and start openbox the same way.
    At the moment I have to log in as usual and can start openbox via startx since I have put
    exec openbox-session
    into ~/.xinitrc.
    How can I automate these steps? I tried it with rc.local, but that way it logically logs in as root which isn't my goal. I would like not to use SLiM if possible.
    Last edited by Flylow (2010-08-06 07:50:53)

    Summary of what I've done to get things work. Maybe somebody can use this as it's a quick version of the wiki - just make sure to replace USERNAME with yours and you've added "exec openbox-session" to your ~/xinitrc.
    Created autologin.c
    #include <unistd.h>
    int main()
    execlp( "login", "login", "-f", "USERNAME", 0);
    Compiled and copied into the right place
    gcc -o autologin autologin.c
    sudo cp autologin /usr/local/sbin/
    Edited /etc/inittab
    id:5:initdefault:
    c1:2345:respawn:/sbin/agetty -n -l /usr/local/sbin/autologin 38400 tty1 linux
    x:5:once:/bin/su USERNAME -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
    Last edited by Flylow (2010-08-06 08:53:36)

  • How to see my password if I have set automatic login in my computer

    I have forgot my password and can't access the email address I registered my account because it is my previous company's email.  But I have set automatic login in my personal computer.  Pls advise how I can recall my password. thanks!!

    billychan wrote:
    I have forgot my password and can't access the email address I registered my account because it is my previous company's email.  But I have set automatic login in my personal computer.  Pls advise how I can recall my password. thanks!!There are currently no methods that Skype provides to do this.

  • VMM 2012: How to Configure Automatic Start and Stop Actions for a Virtual Machine?

    Does somebody know how to confgure Automatic Start and Stop Actions for a Virtual Machine in VMM 2012?
    I miss that option.

    Automatic Start or Automatic Restart actions are available for virtual machines running on a Hyper-V cluster from within Virtual Machine Manager.
    From within Virtual Machine Manager, bring up the Virtual Machine's properties:
    Click "Hardware Configuration"
    Click "Availability"
    Click "High", "Medium", or "Low" to enable automatic start/restart or
    Click "Do not restart automatically" to disable automatic start/restart
    Screenshot from VMM 2012 for a VM running in a Server 2012 R2 Hyper-V cluster:
    VMs running on a cluster have to be marked "Highly Available" and logically, Microsoft assumes that you'll want these VMs to be running all the time when this setting is selected.  If the cluster fails or needs to be restarted, you can set the priority
    by which a VM restarts, or you can set the VM to not restart at all when cluster services are restored by using the settings above.

  • I downloaded Lion but can't disable the automatic login, how do I change this?

    When I downloaded Lion, I am always prompted to login. I was wondering how I can disable this.  I've tried to go to system preferences, to un-check the ability to disable automatic login but it is grayed out.  Is there a way to get around this?
    thank you.

    You need to click the lock to make changes. Go to System Preferences/Users & Groups
    Select your Account and click the lock on the bottom left to make changes. Enter your Account Password/Click Login Options.  You should now be able to turn Automatic Login Off

  • [Solved] How to: Automatically add Semicolons at end of line

    Q. Is it possible to set JDeveloper to automatically add Semicolons to the end of a line of code?
    A. "While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon." [Solved] How to: Automatically add Semicolons at end of line
    Original Message:
    I'm spoiled from using Basic and similar programming languages, adding semicolons manually is something that'll take me time to get used to
    Thanks in advance,
    Abdulla
    Tags (for search engines):
    Jdeveloper automatic semicolon
    Message was edited by:
    Abdulla

    While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon.

  • How can I shut off the automatic login when I turn on my MacBook Pro?

    Ever since I updated to Yosemite I have been forced to enter my password whenever I turn on my MacBook Pro. I went to System Preferences/Users & Groups and see that the automatic login option is set to off, but it is shaded and I can't use the dropdown menu, even though I've unlocked it.
    Is this a common issue? Am I just going to have to get used to signing in every time? I'm the only one who uses it, and it's a little annoying.
    I've tried searching for help in the discussions and also on google, but I'm not finding any answers.
    Help, please!

    Did you turn on FileVault when you upgraded to Yosemite? If it is on then a login password is required (sort of obviously). You can tell whether it is on by going to Apple Menu > System Preferences > Security & Privacy and click FileVault at the top and see if the words "Turn off FileVault" are in the button. I'm the only one who uses my Mac also, but the remote possibility of it being stolen makes it worth it to me to have FileVault turned on and a password required. OS X: About FileVault 2 - Apple Support

Maybe you are looking for

  • Leopard on a Mac mini Core 2 duo 1.8  is unbearably sloooow...

    Hi All/any one: I set up a sandbox/test server to check on Leopard before deploying it(Leopard) on a Dual G5 next fall. I set up a a standalone with a static IP so I can begin to experiment with it in my school environment. I have 4 grade-level group

  • How to force Jdeveloper to include additional libraries with generated war?

    Hi thank you for reading my post how i can force the Jdeveloper to include some libraies that i add to application in the generated war file ? I create a library named mysql and mysql jar file in inside it , i add the library to application but in th

  • Symbol for NASDAQ

    What symbol does one use to post the NASDAQ on the stocks page???

  • Pixelpost and Personal Web Sharing in Tiger

    Dear Friends: I figured out how to install Pixelpost (for a photoblog) in my OS X Tiger system -- by using MAMP. I changed the Document Root in MAMP so that now it looks to the Personal Web Sharing folder in the Mac (the Sites folder in the /usr/ spa

  • Start/stop trace between removing trace files

    Hi, I have the following problem. I put some Oracle session on trace (I use sys.dbms_support.start_trace_in_session). Then I make some test. I close the trace (I use sys.dbms_support.stop_trace_in_session). I analyze the trace files (tkprof) and I ma