System login...

Hello people,
I have made a web app using a controller servlet. The users login and broswe the files in public and account directories. How can i make the webapp login the user to the system on which the web server runs, so that the servlet can know what read and write acces the user has to files. Actually i want to be able to stop a user from, say, deleting a file that he could not delete when he would log on to the system hosting the webapp.
What API's are there for letting a webapp interact with system authentication and permissions for linux,windows and solaris systems?
I now there is a sudo command that lets you run a authentication on each command. i could use it opening a shell prompt within the webapp but i coulnd not have feedback from the outcome of the command(eg. errors).
Any help, ideas or links??

Is the roles designated by tomcat similar to roles for
the system that tomcat runs on.?tomcat has its own user roles... so that you can define your own if you wish. Standard ones include User, Root and Manager
And if so how can i utilize the login built in the
tomcat? In your web-app depolyment descriptor i think... this is where you set up the security constraint that tells tomcat to only allow users that reside in its own user list (another XML file) into the web-app
Is there a class or generally a way to allow
login to tomcat?No need... see above. The user logs in to the webapp, not Tomcat.
I suppose that answers about this can be found in
tomcats administration guide.Yes, indeed ;o)

Similar Messages

  • Operating System Login Credentials

    I have setup an Oracle 11g Database and have a question about backing up the database. Currently, I have logged into the database via Enterprise Manager. I have browsed to the Availability->Backup settings and I see that at the bottom of the page I need to supply Operating System Login Credentials.
    Do I need to create these credentials? If so, can I have a little help to do this, or if not, how to I retrieve these details?

    996403 wrote:
    I have added the 'log in as batch job' priviledge to the Administrator user.
    I have then setup a password for the Administrator.
    I then try and log into Oracle via the Enterprise Manager with the Administrator user details, but get the "Your username and/or password are invalid." error.When you "log into Oracle via the Enterprise Manager" you are logging into the database itself. You need to use a valid database account and password. You originally asked about being prompted for host credentials once you were logged in to Enterprise Manager and wanted to execute certain functions. That's not the same thing.
    To initially log in to EM, you supply database account credentials. If a function within EM needs to interface directly with the OS, it will need host (OS) account credentials.

  • System Login Window

    Hi,
    I have a VBA code that connects to an Essbase cube but whenever the login fails, it automatically opens u a system login wndow. I want to control this from the back end. Is there a way I can do this in VBA? So, basically I want to know how to suppress/disable the system login window.
    Any help would be appreciated.
    Thanks,
    Brandon

    Hello,
    If you are using API for essbase add-ins I suggest you to use ESSV functions and not EssMenu (which takes the default connection window)
    you can use
    Declare Function EssVConnect Lib "ESSEXCLN.XLL" (ByVal sheetName As Variant, ByVal userName As Variant, ByVal password As Variant, ByVal server As Variant, ByVal application As Variant, ByVal database As Variant) As Long
    This function returns 0 if connection is successful, 1 if not.
    Then depending on the result of your connection you may use
    Declare Function EssVRetrieve Lib "ESSEXCLN.XLL" (ByVal sheetName As Variant, ByVal Range As Variant, ByVal lockFlag As Variant) As Long
    If the result is 1, then never retrieve, so you'll have never connection popup.
    Regards

  • System login error

    Anyone know about this system login error see screencast http://screencast.com/t/Jh5fr1r1aTI
    thanks,
    Adam

    Hi guys,
    The issues has since been resolved as you should now be able to login w/o interruption. 
    Once again our apologies for any inconvenience.
    Kind regards,
    -Sidney

  • BCS - Message from External System : 'Login failed for user 'NT AUTHORITY\IUSR'.'.

    Hello,
     I have create a an external content type .
     I Choose "Connect with user's Identity".
     I create a external list that uses the ExternalContentType.
     When I try open the external list from browser by User "TestUser" . I get the following error "Message from External System : 'Login failed for user 'NT AUTHORITY\IUSR'.'"
       My Question :
           I need to know why pass the credential "NT AUTHORITY\IUSR" to connect to the data base not the
            current log in"TestUser" ?  How Can I solve it ?
            Thanks
             Hema
    ASk

    Hi,
    did you configure Kerberos delegation?
    NTLM fails when you try to open external list from client computer, because SharePoint cannot pass user's identity - "Double Hop" issue.
    Take a look at confguring Kerberos for SharePoint 2010 white paper
    Download Configuring Kerberos Authentication for Microsoft SharePoint 2010 Products from Official Microsoft Download Center
    http://www.microsoft.com/en-us/download/details.aspx?id=23176
    Robi MCT Kompas Xnet d.o.o. Ljubljana | blog: http://xblogs.kompas-xnet.si | website: http://www.kompas-xnet.si
    Slovenia
    Please vote if you find reply useful or mark it as answer.
    Thank you

  • How to make every account in the system login automatically?

    How to make every account in the system login automatically when Mac OS X startup?
    Thanks!

    I can see one way to do it. You'll need to install a script in each user account, and have it set as a login item for each user. Let's imagine you have three user accounts. Each user in Mac OS X has a UID number. Normally your first user has the UID of 501, the second one will be 502 and so on...
    You can determine the UID by running the following AppleScript while logged in on each user:
    do shell script ("ID")
    This'll return a long block of text, but right at the start you'll see the UID number. Let's assume your three users have the UIDs 501, 502 and 503. We begin with 501.
    Create the following script and save it as an application while logged in as 501. Note that the password you're entering is the password for UID 502. Also note that the forum system is creating line breaks where there shouldn't be any. The long "do shell script" line should be one line.
    delay 5 --This delay allows time for login to complete, but it may not be necessary.
    try
    do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 502"
    delay 5 --This delay could be shorter or longer, depending on how fast your machine is.
    tell application "System Events"
    keystroke "password for 502" --the password for UID 502
    keystroke return
    delay 1
    end tell
    on error
    display dialog "Unable to switch user."
    end try
    Open System Preferences, go to Accounts, click "login items" and drag your script (saved as an application) to the login items window.
    You basically repeat this process for each user account, modifying the script so it switches to the next user.
    This isn't ideal, because your passwords will be stored in the scripts, and each user could open the scripts and learn the passwords of the other users on that machine.
    I picked some of this up from a discussion over at the Macworld forums:
    http://hints.macworld.com/article.php?story=20031102031045417
    Message was edited by: The Preacher
    Message was edited by: The Preacher
    Message was edited by: The Preacher

  • How to know the all user name from system/system login

    hi all,
    i want to know the all user names from system login who are the existing user like
    regards
    srinivas

    Hello,
    Using DBA_USERS will give more details
    select * from dba_users;Regards

  • BSP-System-Login and 2 different DMZ

    Hi all,
    our current customer has installed an instance of SAP Web AS 6.20 in a DMZ. He has another DMZ where the reverse proxy is installed. So, SAP Web AS and reverse proxy are located in different domains.
    When we call our BSP-App via Internet we first have to authenticate against the reverse proxy, then a rewrite rule leads us through two firewalls to the SAP Web AS in the other DMZ.
    Actually we reach the system/login-page of our BSP. When we enter the logon credentials and press the logon button we are redirected every time not to our own start-page but again to our system/login-page. We are caught in a loop.
    It seems that the SSO2 authentication is not valid for the domain of the SAP Web AS but for the reverse proxy.
    Has anyone experience with this kind of system landscape or can give any comment?
    Thanks, Bernd

    Hi Bernd,
    it seems to me that the sso2 cookie is getting eaten by the reverse proxy (they really do this sometimes But seriously, I assume:
    1. initial request sent from browser to was
    2. not authenticated - meaning redirect to system login
    3. request with system login url sent to was
    4. response with rendered login page sent back to browser
    5. request with login credentials sent to was
    6. authentication successful, redirect to your application
    7. request with your application url sent to was
    8. not authenticated - meaning redirect to system login
    and so on ....
    With system login and after succesfull authentication every request contains the sso2 cookie that keeps the authentication data and is verified at the was. This one seems to be missing in step 7. How can you prove this? Use one of the http tracing tools mentioned in Brian's weblog https://weblogs.sdn.sap.com/pub/wlg/180. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Verify step 6. Make a hardcopy of the trace and present it to the reverse proxy admins. Otherwise they're not going to believe you.
    Ulli

  • Fixed language in docs independently of user language system login

    Hi all
    I'm not sure this is possible:
    I would like to configure the system so that it guarantees that all documents/reports/maps or any other texts are shown or printed in ES language independently of the user language system login.
    All texts will be translated to ES language. But I want to assure, that if user enters in any other language, the texts remain in ES...
    Is this possible?
    Thanks in advance

    Hello Eric,
    the BSP Forum would be the better place to post this message, I suppose.
    The list of languages in the system/login.htm comes from the list of languages which are customized for your SAP Web AS.
    That means if you want to have french you should customize your SAP Web AS for French.
    Please check out the SAP docu for further details how to do this.
    Regards, Bernd

  • System login details capture

    Hi All,
    I have a requirement in ApEx where in I need to restrict the number of times a particular survey is answered. I know that the IP address can be found, but again this is not enough.(As multiple users use the same system due to shifts based operation). Is there a way to find out what is the username given during system start up in ApeX?
    Thanks in advance
    Jay

    Hi
    I don't think you can do that, except if you use some kind of ActiveX control or VBScript, which will work only with IE (I am assuming that by "system" you mean MS Windows).
    Is your Apex application public (i.e. the users do not have to log in to use it)? Maybe you could change that so that users need to login using windows username/password to access it...
    Luis

  • Backing up - how to solve after copying whole system - login incorrect

    Hello,
    I have done an script to backup the whole filesystem and restore it. I am making tests before using forever.
    For Windows I use ntfsclone and it works perfect, but for ArchLinux I am doing:
    I use Knoppix cd-live to manage everything. I load the script from /dev/sda4 (data partition in ntfs) and the main commands to backup and restore are:
    Without doing chroot (because it is not possible)
    sudo mount /dev/sda5 /media/sda5 #This is the / of ArchLinux
    sudo rsync -aAXv /media/sda5/* /media/sda4/seccopy/ --exclude={/media/sda5/dev/*,/media/sda5/proc/*,/media/sda5/tmp/*,/media/sda5/run/*,/media/sda5/mnt/*,/media/sda5/media/*,/media/sda5/lost+found,/media/sda5/home/*,/media/sda5/var/lib/pacman/sync/*}
    cd /media/sda4/seccopy/
    sudo tar -zcvf /media/sda4/arch_copy.tar.gz ./*
    To restore:
    sudo mount /dev/sda5 /media/sda5
    sudo rm -r /media/sda5/*
    sudo tar -zxvf /media/sda4/arch_copy.tar.gz -C /media/sda5
    I can check that the files are copied correctly.
    I can do (and really do) the same with the home partition, same process but changing sda5 by sda6, and instead of arch_copy.tar.gz, arch_home_copy.tar.gz
    When I restart to boot in the new copied system... the problem:
    I go to the normal grub option for Arch Linux and I try again to put the password for ussr1, and nothing.
    I type it, enter, wait some seconds and prompt me again.
    I try with the root user, and its password, and the same problem. Not access to the system.
    I try in tty1, and the same problem, it says:
    Login incorrect
    First question: How to solve this situation?
    I think maybe the problem is something about /etc/passwd or /etc/shadow, and also I try to make chroot to see if it works.
    If I try to do chroot from Knoppix to the ArchLinux restored, it is not possible, everything goes ok from this wiki:
    https://wiki.archlinux.org/index.php/Change_Root
    but fails in this:
    Note: If you see the error chroot: cannot run command '/bin/bash': Exec format error, it is likely that the two architectures do not match.
    I don't know what is "architectures". I installed x86_64 in ArchLinux.
    Second question: Is because the Knoppix 7.0.4 (debian based) uses other? Like i686?
    I see in Internet this:
    http://www.cyberciti.biz/tips/recoverin … -file.html
    It is not my problem, but maybe it is a way to know if is correct or not,...-
    mode "recovery", edit, add to linux line after "ro single": init=/bin/bash
    Ctrl+x
    Logged as root automatically:
    Third question: Why is not prompted the password? And illegitimate user can see everything doing this.
    $ mount -rw -o remount /
    $ mount -rw -o remount /home
    mount: /home not mounted or bad option
    In some cases useful info is found in syslog -try
    dmesg | tail or so
    Fourth question: Why i cannot mount the home? It is in the /dev/sda6, but for the / it didn't say anything to me. I cannot see the /home directory.
    $ cat /etc/passwd
    #- Has the root user and the ussr1 user
    $ cat /etc/shadow
    #- Has the root and ussr1 password coded.
    $ passwd
    Enter new UNIX password:
    Retype new UNIX password:
    Fifth question: Why is not prompted for the before password?     (following the steps i can imagine that this doesn't work, so, is not a security problem)
    $ passwd ussr1
    Enter new UNIX password:
    Retype new UNIX password:
    $ sudo reboot:
    sudo: /usr/lib/sudoers.so must be only be writable by owner
    sudo: fatal error, unable to laod plugins
    $ reboot
    Failed to talk to init daemon.
    $ exit
    exit
    [ 377.105707] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
    [ 377.105707]
    Sixth question: Why I cannot exit correctly? It also happen if I use the Arch in Live mode (and try to exit).
    The only way to avoid this problem is unpluging from electrical power (not even with the power button).
    I start the system again, I go to the normal grub option for Arch Linux and I try again to put the password for ussr1, and nothing.
    I type it, enter, wait some seconds and prompt me again.
    The same as first question: How to solve this situation?
    My idea is only use Knoppix live-cd to use as backup/restore system, but if it is not possible, I would like to know how to solve.
    The idea of using rsync instead of dd is because I want to save only the data, and not all the sectors (not enough space in the hard disk).
    I don't mind to have to use arch linux usb installation media as it is "knoppix live-cd", the only thing I would like to use is the same media to do all the operations, because I want to teach normal users how to do it by themselves.

    cfr wrote:What's the exit value when you run passwd? (man passwd will show what the exit values mean.)
    value 0 -> success
    cfr wrote:Have you tried changing the password to something *other* than the existing password?
    tried for example with "something" for both, "root" and "ussr1"
    but if I go to /etc/shadow, I see that the passwords coded for root and ussr1 are not the same, so must be coded with other things too.
    cfr wrote:Have you tried creating a new user and logging in as that user?
    I added another user, for example "try"
    useradd -m -g users -s /bin/bash try
    passwd try & echo "$?"
    .. (something)
    0
    Ok, after just add the user, if I go to /home/ I can see some files created automatically, and if I compare those files with the files that I pasted in my ussr1 account, there are two that are missed:
    .xinitrc
    .xsession
    xinitrc is executed by startx (so, it is because the X11..)
    and..ok, xsession the same (xdm/gdm/kdm). So nothing here.
    I also add "try" to the groups: lp, games, video, audio, optical, storage, scanner   with:
    gpasswd -a try lp
    cfr wrote:Have you run pwck and grpck to check the integrity of the files? (I doubt this is the issue but it seems an easy step to do just on the off chance.)
    Ok, if I do:
    $ pwck; echo "$?"
    0
    $ pwck /etc/passwd; echo "$?"
    0
    $ pwck /etc/shadow; echo "$?"
    invalid password file entry
    delete line 'root:ahskldfhajksdfkahsjkdhf...asdkfhjashdkfjh:15795::::::'?
    invalid password file entry
    delete line 'bin:x:14871::::::'?
    so forth..with: root, bin, daemon, mail, ftp, http, uuidd, dbus and nobody
    user 'ussr1': directory '7' does not exist
    user 'polkitd': directory '7' does not exist
    user 'usbmux': directory '7' does not exist
    user 'mysql': directory '7' does not exist
    invalid password file entry
    delete line 'kdm:!:15793::::::'?
    invalid password file entry
    delete line 'avahi:!:15793::::::'?
    user 'try': directory '7' does not exist
    pwck: no changes
    2
    $grpck /etc/group; echo "$?"
    0
    $grpck /etc/gshadow; echo "$?"
    invalid group file entry
    delete line 'root:::root'?
    invalid group file entry
    delete line 'root:::root'?
    invalid group file entry
    delete line 'root:::root'?
    ...so forth
    with: root, bin, daemon, sys, adm, tty, disk, lp, mem, kmem, wheel, ftp, mail, uucp, log, utmp, locate, rfkill, smmsp, http, games, lock, uuidd, dbus, network, video, audio, optical, floppy, storage, scanner, power, nobody, users, systemd-journal, polkitd, usbmux, mysql, kdm, avahi
    grpck: no changes
    2
    So, cat /etc/gshadow | wc -l    = 40 lines
    And grpck /etc/gshadow | wc -l  = 40 lines
    And the same for /etc/shadow = 16 lines and the pwck were 11 "delete line" and 5 "directory '7' does not exist"
    But as we see, even the try has some error... in this case with directory '7'.
    I don't understand why errors... theoretically they were copied and pasted without modifications
    NOTE** Ok, my fault, I have to execute the command like this: $ pwck -r /etc/passwd /etc/shadow; echo "$?"    and now it answers: 0         So, the integrity of both files are correct! And the same with group and gshadow
    ewaller wrote:
    Inside the chroot, run pacman -Qk | grep -v ", 0 missing"
    And see if there are any packages that should be reinstalled.
    If not, reinstall pam, just for good measure
    With
    $pacman -Qk | grep -v ", 0 missing"
    no results.
    I execute it without doing anything before with pacman, no updating, absolutely nothing.
    pam?
    i search for pam, and i find "pam mount", something like "encrypted home". But Was it activated by default?
    Last edited by Zzipo (2013-03-31 21:57:57)

  • Client System login takes more time

    Hi Experts,
    I try to login to client system it always takes more time to connect with server, after login there is no problem. .. i also try Firewall disable, License configure settings, and also disable extra network port, but still facing problem. please help on this......................

    Hi Ashok,
    Thanks for your valuable reply.
    Still issue is not Resolved while i followed your steps. my user is accessing the  system from USA and my server kept in India and the system taking 5-6 Min for Login in SAP. that's the reason the my client forcing to fix the issue.
    After checking the some forum i had found the OSS Note :1135705, is it resolve my issue?
    If you have any information regarding OSS Note regarding this  issue please send me.
    Your Reply will help for me. Thanks in Advance.
    With Regards,
    BJO
    Edited by: Baya Jo on Feb 22, 2012 1:41 PM

  • Java Desktop System Login to Zone?

    Hi all.
    I have installed Solaris 10 (Kernel version: SunOS 5.10 Generic_137138-09) for i386. I have created a single non-global zone which runs happily and that non-global zone can be accessed with SSH remotely and locally by root. Zlogin also works for my zone. Additionally, the zone seems to be running an X server because if i "ssh -X myzone" I can run graphical applications in my zone (like xclock) from the Java Desktop System in my global zone.
    Now, what I would like to do, if possible, is to login with the full Java Desktop System to my non-global zone. When presented with the graphical login screen on the console I choose "Options" then "Remote Login" then "Choose Host From List", I see my non-global zone on the list. So I then highlight my non-global zone and click "OK". I am returned to the login screen. But it still says "Welcome to <my global zone>", and when I logon I am still in the global zone. I also tried typing in the non-global zone name in Options -> Remote Login -> Enter Host Name, but still no luck.
    So, what might I need to do to login with the Java Desktop System to my non-global zone?
    Thanks in advance!!
    John

    Is there any particular reason why you did the minimum install? I perform an "Entire Distribution without OEM SUpport" installation, and select everything except the Documentation (since there is no documentation CD - go figure) and the Java Enterprise System (since I do not need to run those servers). I do install the Companion CD which contains a lot of the software.
    When the installation is finished, the Java Desktop System is up and running, after tweaking XFree86, of course.
    Unless you are **REALLY** hurting for disk space, you might as well install the entire distribution. They claim that you need 9 GB or so, but in reality I've been able to install it on a 4 GB hard drive.
    As to where exactly it's located, I'm not sure because it's always been installed for me. If you can, reinstall with an Entire Distribution and the additional software selections that I mentioned. You'll have JDS.

  • Coonecting to a third party system login

    I want to find out if there is way by which we can connect the user information
    of a third party system to the WLCS. For example, a user can log into a web-portal
    (not hosted on WLCS) and after that can join (or login) some activity on that
    portal that is separately hosted in a WLCS environment. But we do not want the
    user to login again to this separate activity. We want the login to the acivity
    to be transparent to the user.
    Is there a way by which we can link the user info of the third party system to
    the WLCS user login db and do a programmatic login automatically. And also is
    there a way by which whenever a new user is created in the third party system,
    the Weblogic system is automatically updated to have that new user and that same
    password.
    Thanks,
    AJ

    Amit,
    You can create a Business Service in the Integration Directory and then add the Inbound Interface to this business service and use this as the Receiver System.
    Regards
    Bhavesh

  • Trans. launcher: system login not possible

    Hi,
    I configured the tx. launcher and was able to logon to the ECC system and execute required transaction (VD03), however somehow I am not able to login to ECC now, it prompts me for the password over and over again. RFC's are working fine , HTTP service running on both systems and no changes were made to the launcher settings. Is there an authorization object required for this ?
    Has anyone faced a similar problem ?? any solutions please!!
    Secondly, do we need Single Sign On to avoid the login screen ?
    Regards.
    PS: It is possible to logon to ECC from the GUI
    Edited by: Jacob Raj on Nov 8, 2008 12:52 PM

    I've tried to login to ECC through the http service running within ECC and its successful but CRM to ECC login is not happening.
    possible reasons please !

Maybe you are looking for

  • Query to return list of all missing primary key ids from table T1

    I found this query online that returns a start and stop for a range of all missing primary key id values from table T1. However i want to rewrite this query to return a whole list of all the missing primary key ids and not a start and stop range. any

  • Can I print Crystal report in Adobe by just hitting print??

    Hello All, I have my saved my report in Infoview (BO) and if I hit print it asks me to install u201CCrystal report print control u201Csoftware. And if I choose export option it gives me few options and I can then print. Now my question is, is it poss

  • Can't boot from OSX cd - Kernel Panic or bad CPU?

    Greetings, All! I've looked at all the articles related to this that I can find, here and on other sites, but have not been able to solve the problem. Here's a list to briefly describe my issue: -Got Prohibitory sign on my MDD Dual 867 when I tried b

  • OS X Lion and Apple remote control problem

    After installing OS X Lion my apple remote control no longer works properly.  The menu wont come up on the screen, but it plays music if you press the buttons, but you are riding blind, can anyone help on this one?

  • Deployed project seems to fail on different machine

    Hi, I deployed my project on my webserver and it worked great on the developing machine.. I accessed the page from any computer using IP/projectname.  I moved the project to a different server and added it to the web server but it seems to fail.. Eve