How to view user name in terminal

i forgot my user id and password my macairbook which i brought yesterday can someone help me how reset my credentials through safemode??

You don't want Terminal or Safe Mode.
Read the support doc here and follow the instructions:
http://support.apple.com/kb/HT1274

Similar Messages

  • How to change Users name in Terminal Users.

    Hi, I am trying to change my Users name from firstnamelastname to mac on my OSX10.7.5.
    I went to Terminal > Users and tried to rename, however upon reboot, the Terminal > Users always brings back the folder firstnamelastname.
    How can this be changed?
    I did go to Mac > Apple > System Preferences... > System > Users & Groups > Current User. This shows the firstnamelastname has been changed to Mac.
    However I need the Terminal files in /Users also changed from firstnamelastname to Mac.

    Thanks for the reply.
    I went to Mac > Apple > System Preferences... > System > Users & Groups > Login Options > Click the lock to make changes. > Password: > Unlock > Show fast user switching menu as > changed Full Name to Short Name > Click the lock to prevent further changes. > Apple > Restart...
    The Mac still had firstnamelastname in Terminal > /Users rather than the name Mac.
    I then went to Mac > Apple > System Preferences... > System > Users & Groups > Login Options > Click the lock to make changes. > Password: > Unlock > Show fast user switching menu as > changed Short Name to Full Name > Click the lock to prevent further changes. > Apple > Restart...
    The Mac still had firstnamelastname in Terminal > /Users, rather than the name Mac?
    I think the /Users folder with the folder firstnamelastname is some kind of permanent folder when I first set up the Mac, however I would still like to change the folder name, so maybe I need to set up the Mac like new or something...how to do that if there isn't a way of changing the folder name?

  • How to validate user name and password in webdynpro.

    Dear All,
    Actually i have created login name and password in view, webdynpro and want to validate the user name and password but  i am not finding proper code to  how to validate user name and password.
    Pl do the needful help.
    Regards.
    Tazeer.
    Moderator Message: There is a seperate forum for WebDynpro. Please ask your question there.
    Edited by: kishan P on Oct 5, 2010 1:08 PM

    Hello, I don´t get you question. User authentication is ready out of the box in webdypro...
    Regards Otto

  • How to pass user name and password in openConnection method ?

    Hi, Exports,
              I am trying to post data from applet to another application which is
              protected by network password.
              How to pass user name and password when I use openConnection method? In java
              doc, this method looks like do not accept these two parameters.
              Thanks
              ----- my code in applet ---------
              URL url = new URL("http://127.0.0.1/xml/index.cfm");
              URLConnection connection = url.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(true);
              connection.setUseCaches(false);
              connection.setAllowUserInteraction(false);
              DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
              dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
              dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
              dos.writeBytes("Content-Type:
              multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
              dos.writeBytes("Host: "+host+":"+port+"\r\n");
              dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
              dos.writeBytes("Connection: Keep-Alive\r\n\n");
              dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
              on: form-data;name=\"xmlDoc\"\r\n\r\n");
              dos.writeBytes(buff.toString());
              dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
              dos.close();
              

    you need to negotiate Authentication in ur applet code...
              For example:
              If u r using Form based auth u need to send Post a request with j_user_name &
              j_password to the action j_security_check. and when server returns back the
              cookie
              u need to hold it and pass that cookie to the each and every request made to the
              protected application.
              Basically u need to imitate the browser.
              regards
              aseem
              David wrote:
              > Hi, Exports,
              >
              > I am trying to post data from applet to another application which is
              > protected by network password.
              > How to pass user name and password when I use openConnection method? In java
              > doc, this method looks like do not accept these two parameters.
              >
              > Thanks
              >
              > ----- my code in applet ---------
              > URL url = new URL("http://127.0.0.1/xml/index.cfm");
              > URLConnection connection = url.openConnection();
              > connection.setDoInput(true);
              > connection.setDoOutput(true);
              > connection.setUseCaches(false);
              > connection.setAllowUserInteraction(false);
              > DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
              > dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
              > dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
              > dos.writeBytes("Content-Type:
              > multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
              > dos.writeBytes("Host: "+host+":"+port+"\r\n");
              > dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
              > dos.writeBytes("Connection: Keep-Alive\r\n\n");
              > dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
              > on: form-data;name=\"xmlDoc\"\r\n\r\n");
              > dos.writeBytes(buff.toString());
              > dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
              > dos.close();
              >
              > ------------------------------------------
              

  • How to suffix user name and password remote pc in shutdown /s command

    Hi,
    We can shutdown a remote pc  using " shutdown /s /m \\ipaddress " command, only if password of remote pc is stored in windows credential  manager.
    But how to  add user name and password when i execute the command for example : when we map a share folder on our pc we use below command with  user name and password
    "net use * \\ipaddress\share password /user:username "
    can we give user name and password of remote pc  while we give shutdown command to turn off  a remote pc (without adding user name and password to windows credentials).
    Thanks in advance..........

    Hello Jayanth kundar,
    Based on my test, I can use the command shutdown /s /m \\10.157.21.77 to shutdown the remote computer when the have the same username and password.
    Do you mean that you want to add user name and password when you want to shutdown the remote computer?
    I can't find a user name and password in Windows Credential Manager, please share us a screenshot.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to reasd user name from the request

    Hi,
    My application is hosted on tomcat 5.5 and it is front ended by apache http server where the web agent 3.0 is installed. opensso application is installed on a different host on tomcat 6.0. I have configured external ldap for user application authentication and DS store is used for opensso application login.
    If I try to access and protected resource of my portal application, I am getting redirected to opensso's log in page. If I provide improper credentials, authentication fails. And if I give valid credentials it looks like opensso is authenticating the user, but I am not getting redirected to our portal application main page.
    Instead it is taking us to login page of portal application.
    The portal application is expecting HTTP_REMOTE_USER header to be set in the respone. When I checked the header using Mozilla Live headers, I didn't find HTTP_REMOTE_USER header. Where does the user name information get stored? It looks like com.sun.identity.agents.config.userid.param is the configuration parameter for specifying the desired header name for storing user id. How to change it?
    Regards,
    Pratap

    To give an update on the question, I tried printing all the headers in a sample jsp page that is protected. The sample jsp page is not protected in the portal but I marked that as protected in the opensso. If I try to access this sample jsp I am being redirect opensso login page. I supplied proper credentials and web agent redirected me to the sample login page. I don't see any headers for user id there. I also printed request.getRemoteUser() which is printed as null.
    Can someone please tell me how do I get the user id?
    Regards,
    Pratap

  • How to View User Report

    I had created a query and created the report by clicking create report button. But i am not aware how to view the report. I am unable to find appropriate menu item to view the user report.
    Kindly Help me.
    Farhan

    Hi Wadood,
    To view a already set-up report in the defined query layout, you need to open up query manager, select the report (do not double click - just highlight!) and then click on the print preview button.
    Hope this helps.
    Regards,
    Hamsa

  • How to change user name in OIM 11

    Hi,
    I have a custom java class to generate unique user names based on last name + initials + numbers (for duplicates). We have this implemented in plugin framework and it seems to be working fine. But when someone changes his name (first, last or middle), the user names need to be recalculated. How can we automate this process?
    Any ideas are highly appreciated!
    MBiswal

    I will suggest update your existing eventhandler and instead of Create operation use both CREATE and MODIFY operation under your eventhandler and your same code will be working fine.
    Make sure you use EntityManager.modify to update userprofile.(don't use Usermanager.modify)
    In MDS you can say Operation ANY
    While writing code use: if (operation.equals("MODIFY") || operation.equals("CREATE")){                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to retrieve user name from a given Subject?

    I am in a situation where I need to retrieve user name from the Subject that is populated when user logs in. I have the active Subject and I do following to get the principals in the subject and iterate through them:
    Set principals = subject.getPrincipals();
    Iterator ite = principals.iterator();
    while (ite.hasNext()) {
    Principal prin = (Principal)ite.next();
    String name = prin.getName();
    But this contains all the principals, including user name, roles, password, etc. How do I programmatically determine which one is user name?

    Don't you have different principal types? I am making a jaas module and I have different principals for roles, groups etc. I think of principals as attributes, the type in the attribute name and the principal name is the attribute value.
    To get all the principals of the type SomePrincipal, you can use:
    Set principals = subject.getPrincipals(SomePrincipal.class)
    You can also take som principal an test wether it is an instance of som type:
    if (Principal p instanceof SomePrincipal){..}
    An other solution which might be better if you have many different attributes is to store both attribute name and value in the name of the principal.
    If "mark" is a username the principal name will be "username:mark" el.
    Then it will be easy to find the username.

  • How to set User Name in session?

    Can anyone tell me if there is an user name variable already stored in a session object to which I can assign the user's name? I usually do this by storing a variable in the session to hold that name. When I print the session object (I am using websphere) I get the following...You will notice that there is a user name field that has value anonymous....how can i change that to store the actual users name?
    Thanks in advance,
    jk.
    Session Object Internals:
    id : 1M12TXAPPYUZAJJJ4SS5IVY
    hashCode : 586456410
    create time : Sun Jun 30 15:17:38 MDT 2002
    last access : Sun Jun 30 15:17:40 MDT 2002
    max inactive interval : 1800
    user name : anonymous
    valid session : true
    new session : false
    session active : true
    overflowed : false
    session application parameters : com.ibm.servlet.personalization.sessiontracking.SessionApplicationParameters@385b1d5b
    session tracking pmi app data : com.ibm.servlet.personalization.sessiontracking.SessionTrackingPMIApplicationData@38581d5b
    enable pmi : true
    non-serializable app specific session data : {}
    serializable app specific session data : {}
    session data list : Session Data List -> id : 1M12TXAPPYUZAJJJ4SS5IVY next : LRU prev : MRU

    ok I did some more reading on the websphere literature and came to understand that the User Name indicated there was really set as part of an authenticated request from a secure page. And if the request was in an insecure page websphere automatically assigns "anonymous" to it.
    Security integration rules for HTTP sessions
    Sessions in unsecured pages are treated as accesses by "anonymous" users.
    Sessions created in unsecured pages are created under the identity of that "anonymous" user.
    Sessions in secured pages are treated as accesses by the authenticated user.
    Sessions created in secured pages are created under the identity of the authenticated user. They can only be accessed in other secured pages by the same user. To protect these sessions from use by unauthorized users, they cannot be accessed from an insecure page.

  • How to save user name and system date in a table

    I have a form that allow users to enter some information...
    I want to save user name in one of the columns and system date in another column by default when the user submit the form to save data...
    Please advice...
    Thanks

    Hi talbo,
    The most reliable method is to use a before-insert trigger on your table. This way the columns will be set properly no matter how rows are inserted (via your app or any other means). Given your user name column is called "CREATE_USER" and your date column is called "CREATE_DATE" for example - include these lines in a before-insert trigger:
    :NEW.CREATE_USER := NVL(V('APP_USER'), USER);
    SELECT SYSDATE INTO :NEW.CREATE_DATE FROM DUAL;The NVL(V('APP_USER'), USER) will set CREATE_USER to the current ApEx application user if the row is created from within the application, or to the current database user if the row is created outside the application.
    Hope this helps,
    John
    If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well.

  • How to Assign User name and password to the login screen on button click without user type...

    Hi,
    My requirement is as follows,
    I have three inputs which is User name, Password and URL. URL may be like anything like for example gmail,yahoo,hotmail like that.
    No need to authenticate the URL. Just i want to place the credentials in User ID and Password controls.
    On button click the URL should open in browser and the credentials should place in the controls in log in page.
    How to achieve it. Ultimate thought is the user should know the "Password",only admin know the password.
    Thanks & Regards
    Poomani Sankaran

    Hello,
    If URL's are internal (not third party) then you can do this by modifying both applications. If you are trying to do this with third party then you have to contact product owner. I don't think there is any code or solution for third party application where
    you can set values of controls.
    For internal URL's you can create custom web service and call this web service in both the applications. One to get value from first app and then second to set value in another app.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to view Table names?

    Dear gurus....
    can u tell me how to view or whats the Tcode to view  table names like  for PO its CEKKO
    and for PR its CEBAN and RFQ,Service etc??
    Thanks

    Hi there,
    To search on a field from table it's coming help -F1 then technical details -F9
    If you double click on the field table-field you are directy to the view
    If u know table i would rather use SE16 or SE16N depending on r release.
    CEKKO is indeed a structure. EKKO is the table.
    enjoy!

  • How to get User Name?

    Hi Guys,
    I want to retrieve the user names? Can you please tell me in which table SAP stores it?
    My SQL query will be as shown:
    SELECT SINGLE * FROM (TABLE NAME ???) INTO WORK AREA WHERE DBTAB-USERID EQ SYST-UNAME.
    Here I want the database table name where we store the user ID names.
    Thanks,
    Hemal

    Hi TCS Team,
    Please find attached code for your requirement.
    You can also get this from VIEW USSR_ADDR ( Given in one of the reply )
    CLEAR w_usr21.
    SELECT SINGLE *
    FROM usr21
    INTO w_usr21
    WHERE bname = sy-uname.
    CLEAR w_adcp.
    SELECT SINGLE *
    FROM adcp
    INTO w_adcp
    WHERE addrnumber = w_usr21-addrnumber
    AND   persnumber = w_usr21-persnumber.
    CLEAR w_name.
    SELECT SINGLE NAME_TEXT
    FROM adrp
    INTO w_name
    WHERE persnumber = w_usr21-persnumber.
    Thanks,
    Hemal Shah

  • Any one know how to change user name on ipod classic

    how do i change user name on i pod

    When the iPod is connected and showing in your iTunes Library, double-click on the name part and type in the new name.

Maybe you are looking for

  • Photoshop CS6 didn't detect my VGA after installing Catalyst 13.6

    I have a ATI Radeon HD 5670 (640 sp version). Yesterday I updated my VGA driver from Catalyst 13.4 to Catalyst 13.6 (driver code 13.101) and Photoshop CS6 stopped detecting my VGA.  Now I can't enable any GPU-related features to improve the performan

  • How do I create a table of content in a Pages Template (lay-out) document?

    Dear all, I recently started designing a brochure in Pages, using a lay-out document. The document counts over 100 pages. Now I need to make a table of contents and I just don´t get how to do this... Any help is more then welcome! With warm regards,

  • Purchase org

    Dear All, I have assigned one purchase organization to one company code. but when i create one vendor that time i given purchase organization to other which are not assigned to company code. system will accept & vendor has created but idont want this

  • NT Security Realm Question

    Hi, I an trying to set up WL 6.0 to use an NT Realm for authentication. My question is how do you find or determine the class name of the Windows NT Security realm that is to be supplied in the Basic Realm field? thanks Mike Horn

  • E-commerce 4.0 extensions

    Hi gurus! I have implemented the note 671711, but now I have problems to get those extensions back. The code, which puts extension back to item, seems to be alright. for (int i = 0; i < posd.getItemListData().size(); i++) {      ItemData item = posd.