[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)

Similar Messages

  • [SOLVED] Automatic login to TTY1, openbox error

    SOLUTION at the last post.
    Hello,
    I was trying to create the systemd autologin.service, to log into TTY1 right after boot.
    I have been following the instructions on the wiki:
    https://wiki.archlinux.org/index.php/Au … al_console
    PROBLEM: after boot, the login happens a few times with an error, flashing, and then dissapears leaving with a basic underscore " _ ". I can still use TTY2.
    If I go back to TT1, I see the following error multiple times, (maybe its a loop):
    Last login: today, etc TTY1
    Openbox-Message: Failed to open the display from the DISPLAY environment variable.
    Which is weird because I don't have openbox set to autostart or anything, I think.  (.xinitrc is basic as well; .dmrc has kde-plasma set.)
    +Info:
    $ systemctl --failed
    UNIT LOAD ACTIVE SUB DESCRIPTION
    [email protected] loaded failed failed Getty on tty1
    $ systemctl status [email protected]
    [email protected] - Getty on tty1
    Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
    Active: failed (Result: start-limit) since Fri 2013-02-08 01:02:10 CET; 8min ago
    Docs: man:agetty(8)
    man:systemd-getty-generator(8)
    http://0pointer.de/blog/projects/serial-console.html
    Process: 878 ExecStart=/sbin/agetty --noclear -a ubunchu %I 38400 linux (code=exited, status=0/SUCCESS)
    Any hints on what could be it? What file should I check?
    Thanks in advance! Cheers!
    Last edited by ubunchu (2013-02-21 09:34:15)

    systemctl list-unit-files
    UNIT FILE STATE
    proc-sys-fs-binfmt_misc.automount static
    dev-hugepages.mount static
    dev-mqueue.mount static
    proc-fs-nfsd.mount static
    proc-sys-fs-binfmt_misc.mount static
    sys-fs-fuse-connections.mount static
    sys-kernel-config.mount static
    sys-kernel-debug.mount static
    tmp.mount static
    var-lib-nfs-rpc_pipefs.mount static
    cups.path enabled
    systemd-ask-password-console.path static
    systemd-ask-password-wall.path static
    accounts-daemon.service disabled
    adb.service disabled
    atieventsd.service disabled
    [email protected] enabled
    [email protected] disabled
    avahi-daemon.service disabled
    avahi-dnsconfd.service disabled
    blkmapd.service disabled
    bluetooth.service disabled
    brltty.service disabled
    canberra-system-bootup.service disabled
    canberra-system-shutdown-reboot.service disabled
    canberra-system-shutdown.service disabled
    colord.service static
    console-getty.service disabled
    console-shell.service disabled
    cronie.service disabled
    cups-browsed.service disabled
    cups.service enabled
    cupsd.service disabled
    dbus-org.freedesktop.hostname1.service static
    dbus-org.freedesktop.locale1.service static
    dbus-org.freedesktop.login1.service static
    dbus-org.freedesktop.NetworkManager.service enabled
    dbus-org.freedesktop.timedate1.service static
    dbus.service static
    debug-shell.service disabled
    dhcpcd.service disabled
    [email protected] disabled
    emergency.service static
    fancontrol.service disabled
    ftpd.service disabled
    gdm.service disabled
    [email protected] disabled
    [email protected] static
    gpm.service disabled
    healthd.service disabled
    ip6tables.service disabled
    iptables.service disabled
    irexec.service disabled
    kdm.service disabled
    krb5-kadmind.service disabled
    krb5-kdc.service disabled
    krb5-kpropd.service disabled
    [email protected] static
    lightdm.service disabled
    lirc.service disabled
    lircm.service disabled
    lm_sensors.service disabled
    lvm-on-crypt.service disabled
    lvm.service disabled
    lxdm.service disabled
    mdadm.service disabled
    mysqld.service disabled
    net-auto-wired.service disabled
    net-auto-wireless.service disabled
    net-profiles.service disabled
    netcfg.service disabled
    [email protected] disabled
    NetworkManager-wait-online.service disabled
    NetworkManager.service enabled
    nfsd.service disabled
    nmbd.service disabled
    nscd.service disabled
    polkit.service static
    [email protected] disabled
    quotaon.service static
    rescue.service static
    rpc-gssd.service disabled
    rpc-idmapd.service disabled
    rpc-mountd.service disabled
    rpc-statd.service disabled
    rpc-svcgssd.service disabled
    rpcbind.service disabled
    rsyncd.service disabled
    [email protected] static
    rtkit-daemon.service disabled
    [email protected] static
    sensord.service disabled
    [email protected] static
    smbd.service disabled
    [email protected] static
    snmpd.service disabled
    speech-dispatcherd.service disabled
    sshd.service enabled
    [email protected] static
    sshdgenkeys.service static
    svnserve.service disabled
    [email protected] static
    syslog-ng.service disabled
    systemd-ask-password-console.service static
    systemd-ask-password-wall.service static
    systemd-binfmt.service static
    systemd-fsck-root.service static
    [email protected] static
    systemd-halt.service static
    systemd-hibernate.service static
    systemd-hostnamed.service static
    systemd-hybrid-sleep.service static
    systemd-initctl.service static
    systemd-journal-flush.service static
    systemd-journal-gatewayd.service static
    systemd-journald.service static
    systemd-kexec.service static
    systemd-localed.service static
    systemd-logind.service static
    systemd-modules-load.service static
    systemd-poweroff.service static
    systemd-quotacheck.service static
    systemd-random-seed-load.service static
    systemd-random-seed-save.service static
    systemd-readahead-collect.service disabled
    systemd-readahead-done.service static
    systemd-readahead-drop.service disabled
    systemd-readahead-replay.service disabled
    systemd-reboot.service static
    systemd-remount-fs.service static
    systemd-shutdownd.service static
    systemd-suspend.service static
    systemd-sysctl.service static
    systemd-timedated.service static
    systemd-tmpfiles-clean.service static
    systemd-tmpfiles-setup.service static
    systemd-udev-settle.service static
    systemd-udev-trigger.service static
    systemd-udevd.service static
    systemd-update-utmp-runlevel.service static
    systemd-update-utmp-shutdown.service static
    systemd-user-sessions.service static
    systemd-vconsole-setup.service static
    transmission.service disabled
    udisks.service disabled
    udisks2.service static
    upower.service disabled
    usbmuxd.service static
    [email protected] static
    uuidd.service static
    vncserver.service disabled
    winbindd.service disabled
    [email protected] disabled
    [email protected] disabled
    wpa_supplicant.service disabled
    [email protected] disabled
    x11vnc.service static
    xinetd.service disabled
    avahi-daemon.socket disabled
    cups.socket enabled
    dbus.socket static
    git-daemon.socket disabled
    krb5-kpropd.socket disabled
    rsyncd.socket disabled
    saned.socket disabled
    smbd.socket disabled
    sshd.socket enabled
    swat.socket disabled
    syslog.socket static
    systemd-initctl.socket static
    systemd-journal-gatewayd.socket disabled
    systemd-journald.socket static
    systemd-shutdownd.socket static
    systemd-udevd-control.socket static
    systemd-udevd-kernel.socket static
    uuidd.socket disabled
    basic.target static
    bluetooth.target static
    cryptsetup.target static
    ctrl-alt-del.target disabled
    default.target enabled
    emergency.target static
    final.target static
    getty.target static
    graphical.target disabled
    halt.target disabled
    hibernate.target static
    hybrid-sleep.target static
    kexec.target disabled
    local-fs-pre.target static
    local-fs.target static
    mail-transfer-agent.target static
    multi-user.target enabled
    network.target static
    nss-lookup.target static
    nss-user-lookup.target static
    poweroff.target disabled
    printer.target static
    reboot.target disabled
    remote-fs-pre.target static
    remote-fs.target enabled
    rescue.target disabled
    rpcbind.target static
    runlevel0.target disabled
    runlevel1.target disabled
    runlevel2.target disabled
    runlevel3.target disabled
    runlevel4.target disabled
    runlevel5.target disabled
    runlevel6.target disabled
    shutdown.target static
    sigpwr.target static
    sleep.target static
    smartcard.target static
    sockets.target static
    sound.target static
    suspend.target static
    swap.target static
    sysinit.target static
    syslog.target static
    system-update.target static
    time-sync.target static
    umount.target static
    systemd-readahead-done.timer static
    systemd-tmpfiles-clean.timer static
    225 unit files listed.
    For some reason I can't disable "autologin@tty1".
    Yes, this is a vanilla arch (customised by myself).
    This is what I have done:
    cp /usr/lib/systemd/system/[email protected] /etc/systemd/system/[email protected]
    -Edited the file: /etc/systemd/system/[email protected]
    the line: ExecStart=-/sbin/agetty --noclear %I 38400 linux
    to be like this: ExecStart=-/sbin/agetty --noclear -a ubunchu %I 38400
    sudo systemctl daemon-reload
    sudo systemctl disable getty@tty1
    sudo systemctl enable autologin@tty1
    sudo systemctl start autologin@tty1
    sudo systemctl enable multi-user.target
    -now tried disabling:
    sudo systemctl disable getty@tty1 (again)
    sudo systemctl disable autologin@tty
    sudo systemctl disable autologin@tty1
    sudo systemctl disable [email protected]
    sudo systemctl disable [email protected]
    sudo systemctl disable [email protected]
    -no output, looks like it does not disable it

  • [SOLVED] Automatically login to screen

    Is there any way that if I log in with a username, it automatically attached to an existing Screen session, or if there isn't any, creates one?
    Last edited by Lenry (2012-05-10 17:02:02)

    Trilby wrote:
    Well I'm not sure what you're going to do in a screen session if you don't know any shell commands.
    Replace the tmux line with your screen command.  In fact, if you want screen to start whenever you log in to any shell (tty and term emulator) then you can ditch the conditionals and just put a very vanilla screen command in your ~/.bashrc.
    EDIT: as tone is lost online, I wanted to clarify that I didn't mean this in any judgmental or mean way at all.  I was just genuinely confused.  Many people would not know anything about shell commands ... they just wouldn't be looking for a way to run a screen sesssion.
    I know, I sounded / looked stupid, sorry for the lame questions
    Of course I know shell commands, I just don't use these ~/.anythingrc files, as I really rarely need them, and don't know how to use them, what are they syntaxes, etc.
    I have a small linux based fileserver, with remote access and I would like to use screen, for seeing the same stuff, the same processes and running programs from anywhere. It works really good if I start it manually (screen first and screen -x from my other devices), but I wanted to start screen automatically, as I sometimes forget it, and you can be sure that I'd need it then...
    Last edited by Lenry (2012-05-10 13:12:54)

  • [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)

  • Automatic login to wireless problem

    We have several computers at home, all connected to the internet through a wireless router hooked up to our main PC. Then there is my laptop, my old iMac, and my son's PC. Everything was working fine ... when I'd start my PowerBook G4, it would automatically detect our wireless network and connect my laptop to the network.
    However, we had our son hook up his Playstation3 to the router via an ethernet cable. This way would could take away the ethernet cable to limit his playing time and encourage him to do his homework. The Playstation3 also "hijacks" the IP address, basically blocking anyone else in the house from using the internet.
    Well, my son found the WEP password for the wireless, and decided to put it on his Playstation3 so he could play online whenever we weren't looking. Well, when we found out he had pinched the WEP password, we reset the it on the wireless Linksys router, and I went into my Keychain and changed the WEP key for the wireless network on my PowerBook. Problem solved, right?
    Well, now when I start up my G4 Powerbook, it detects our home wireless network but no longer automatically signs in to the network. Additionally, when I try to select our wireless network from the AirPort pull-down menu from the Finder window menu bar, it says that an error occurred and it can not connect. Hitting the "Try Again" button is futile. I have to go into Internet Connect, select "Other" from the available wireless networks, then pick our home wireless network from the list. I then have to type in that annoying 26 digit WEP 128-bit Hexidecimal security key! Only then do I get the connection to our wireless. Additionally, I have to do this EVERY SINGLE TIME I boot my Powerbook -- it doesn't seem to want to remember the password, even though it is stored in the keychain.
    This problem is very frustrating! Why won't my Powerbook automatically login to our network?

    Good news!
    Yep, that was the WEP I was talking about, 104/128bit/26Hex.
    Now it takes just 3 seconds to extract a 104-bit WEP key from intercepted data using a 1.7GHz Pentium M processor...
    http://www.techworld.com/security/news/index.cfm?newsid=8456
    WPA or better yet WPA2... if your Airport card & Router both support it...
    http://compudent.blogspot.com/2006/09/wireless-wep-vs-wpa-vs-wpa2.html
    http://answers.yahoo.com/question/index?qid=20070924153500AArrQBP
    http://www.home-wlan.com/WEP-vs-WPA.html
    http://support.apple.com/kb/TA21448?viewlocale=en_US
    Finally...
    http://support.apple.com/kb/TA21448?viewlocale=en_US

  • 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.

  • Wifi:  Automatic login?

    In one of the public presentations of OS X 3.0 -- probably the initial one -- a feature called automatic login for Wifi was mentioned. Unfortunately, I don't see it.
    I understood that this should solve the following problem: You're using your iPhone in the proximity of an "open" Wifi network, and so your iPhone connects to it. Actually, though, the network isn't open. If you open Safari every attempt to view a page will be redirected to a login screen. So, until you do so, Mail and anything else that depends on an Internet connection will be stuck. The automatic login, I thought, would allow you to "script" the login for a provider.
    Does anybody have anymore information?

    No script required: http://www.apple.com/iphone/how-to/#settings.wi-fi
    Here's one example:
    http://www.wireless.att.com/learn/internet/wifi.jsp
    http://www.wireless.att.com/learn/internet/accessing-wifi.jsp
    "If you purchased an iPhone 3G S or updated your original iPhone or iPhone 3G with the latest Apple iPhone OS 3.0 software here's how to access AT&T Wi-Fi Services:
    Activate Wi-Fi from the settings icon on your iPhone.
    Once you are in an AT&T Wi-Fi Hot Spot, select "attwifi" from the list of available networks.
    Every time you enter an AT&T Wi-Fi Hot Spot, you will be automatically and securely logged into the AT&T Wi-Fi network."

  • 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.

  • Can't enable automatic login

    For a few months now I have not been able to get my computer to automaticlaly log me in upon startup. Although in the "Accounts" Preference pane Automatic Login is enabled for the admin account I still get the blue screen on startup and have to type in my password.
    This is very frustrating and I would like to be able to jsut have it start up on startup! Any ideas?
    Thanks. TH

    This seems never to have been solved so as I have finally managed to put this right on my computer I thought I'd share my result.
    I used the disk utilities to repair permissions, shut down and started up the iMac again but was still presented with a log in window. I then went to the Accounts settings and Log in Options. The user was selected as automatic log in. I selected the option "disabled", then selected the user name again and it asked me for the password which I typed in. I then re-started the machine and it hasn't asked me for the password since!

  • 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.

  • 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

  • How to automatically login to apex and run a specific page / application

    Hi all.
    I'd like to know if there is a way of automatically login to apex and run a specific page / application. I mean, invoke browser and pass the necessary information to login (not public user) and run a specific application( ina secure way if possible).
    Thanks in advance ...!

    Hi,
    Well, as a very crude test you can set your authentication scheme to be Application Express Authenticationand define some users in Apex. Then create a before header login process on the login page (101) to automatically logon containing:
    apex_authentication.login(
        p_username => :P101_USERNAME,
        p_password => :P101_PASSWORD );
    :P101_PASSWORD := NULL;conditional on P101_PASSWORD is not null.
    Then you can login by specifying your username and password in the URL e.g.
    f?p=YOURAPP:LOGIN:::::P101_USERNAME,P101_PASSWORD:username,password
    Rod West

  • Call BEX-Query from VBA with BEX-automatic login?

    Hi,
    I'm trying to call a query from VBA. I have two problems/questions:
    1. Automatic login?
    I want to do an automatic login. I found this peace of code here, but I get an error:
    Public Function  LogonToYourBW()
    ' create Logon & RFC-Handle
    logonToBW = False ‘ clear connect Flag the flag can be used to find out if connected or not
        'load SAP functionality by opening BEX file ( use your installation path)
            Workbooks.Open (“c:\sappc\bw\sapbex.xla”)
        With Run("sapbex.xla!sapbexGetConnection") ‘ call the connection
           ' Set the params for Auto logon
           .client = “YOUR CLIENT NO”
           .user = “YOUR BW USER”
           .Password = “YOUR BW PWD” ‘ I recommend to create a dummy reporting user for this task
           .Language = “YOUR LANGUAGE YOU LIKE TO USE FOR QUERY DISPLAY ( i.E.  “EN”)”
           .SystemNumber = “YOUR SYSTEM NO” ‘
           .ApplicationServer = “YOUR SERVER Name OR IP-ADDRESS”
           .UseSAPLOgonIni = FALSE 'important for automatic connection
           .logon 0, True ‘ This will provide a dialog to appear
            If .IsConnected <> 1 Then
                .logon 0, False
                If .IsConnected <> 1 Then Exit Function
            Else
                Set g_oFunction = CreateObject("SAP.Functions")
                Set g_oFunction.Connection = g_oConnection
            End If
        End With
        Run "sapbex.xla!sapbexinitConnection" ‘ this will enable the connection you just created
        logonToBW = True
    End Function
    The error is by this row:
    Set g_oFunction.Connection = g_oConnection
    Object is needed! How is the g_oConnection-object defined?
    2. How can I pass values for the parameters from VBA?
    If I open the query usually from SAP-BEX-Toolbar, after selecting the query, I get a parameter mask, where I must put in a value. How can I this automatize from VBA? Has anybody a short samplecode for that?
    Thank you for your help
    Stefan
    [email protected]

    Peter and others:
    What I really want to do … is write a stand-alone application that I can run from windows scheduler … that queries our BW for sales data for certain items (in a tabular form) … and pulls that data into a VB recordset, or a .NET dataset … so that I can insert the rows into another database (SQL Server, or Access) … I already know how to do all the data movement to/from datasets and databases … I just cannot figure out how to programmatically grab this sales data from BW … our company has “workbooks” already set up that aggregate WW sales information by region (IE, there is a separate workbook for each region of the world) … I can manually go into the Excel interface, tell it which items to pull the sales info for, and it dumps the data into the worksheet (organized by customer, and then by cat #) …
    So, what I’d like to do is write an app that will pull data every week or so from the BW (from each region’s sales invoice detail “workbook”), and insert it into another database that we use for reporting other, non-sales, data.
    Thoughts on this ?  Is there another, non-BEx method that is better ?
    thanks !!

  • Automatic login in mavericks not working. I still have to enter user name and password

    I upgraded the original Hard Drive to SSD drive.  After the upgrade, I can no longer automatically log in.  I now have to enter my user name and password.  I tried resetting automatic login in Users and Groups but it doesn't work in Mavericks.

    Hello,
    To find out if it's system wide or user specific, try this...
    Open System Preferences>Users & Groups, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    Does it work in the new account?
    How about these?
    Reset Password 10.7, 10.8...
    http://reviews.cnet.com/8301-13727_7-20087723-263/how-to-run-the-password-reset- utility-in-os-x-10.7-lion/
    Then Reset your Keychain...
    http://support.apple.com/kb/TS1544
    https://discussions.apple.com/thread/5225064?tstart=0

  • Can't disable automatic login (wifi) in Mt. Lion 10.8.4

    Dear all, why i can't disable automatic login in Mt. Lion 10.8.4??
    i'm using a MBP 2.4Ghz/Intel core i5 / late 2011 model, running 10.8.4
    each time i turn the wifi on and select the name of network, it will automatically login without asking my password, (I just want it ask me for password every time coz i don't want the password stay on the computer!)
    and i had did the following already but the nightmare still go on, please kindly let me know if the issue can be fix? thanks a lot!!!
    1. network panel : click advance and remove all network names in the window, and unchecked the box "Remember networks this computer has joined".
    2. Security Panel : selected "Disable automatic login"
    3. Users & Groups panel : Automatic login : selected "off"
    4.inside the Library / Preferences folder : "com.apple.loginwindow.plist", "com.apple.airport.preferences.plist" & " NetworkInterfaces.plist" all are deleted
    thanks again!!!

    Open Keychain Access and locate the entry for the network logon, select the entry and press the Delete key. That will remove the password from your Keychain and the system will have to request your password to log onto the network. Note: keychain entries are securely encrypted so even if someone has access to your computer, it would be highly unlikely they would be able to retrieve the network password.

Maybe you are looking for

  • Mail aliases no longer usable in iOS Mail?

    I just discovered that my mail aliases are no longer available in iOS Mail. It took years for them to get it working close to correctly. What happened?

  • Mail handles .Mac really badly-what's up?

    Since I put my .Mac email account into my Mail application, it has worked really badly and I am considering just deleting off the .Mac account and not using it anymore as it is so annoying. Essentially, having the .Mac account in Mail slows everythin

  • Vista and flex

    i've experienced several problems with flex since buying a new computer preinstalled with vista, solved one, and several remain unsolved and frustrating! i understand flex isn't officially supported under vista yet, but if anyone else has had similar

  • Filling with background color

    hi, i am trying to do something that paints some controls on the screen, and if a control reacts in a certain way, it should be repainted. the problem is, some controls are small, so instead a 'repaint' handler for all the screen, it would be nice to

  • Cannot De-interlace HD footage, importing problem?

    I use a Canon hv20 in 1080 HDV mode, I import my footage with imovie via firewire. whenever I export the footage in any of the expert HD settings, the video is very interlaced (Even though I check the "de-interlace source footage" box) The only time