Welcome to MacTalk Australia

the largest Australian community for Apple discussions and topics

Join the discussions, Register Now!
Results 1 to 5 of 5
  1. #1

    Join Date
    Jun 2006
    Location
    Canberra
    Posts
    185

    Default X11 question & su passwords

    I want to change the file for X11 that makes the initial xterm appear, I believe /etc/X11/xinit/xinitrc.

    However not long ago I had to reset my password for my computer because it had been so long since I had internet I had forgotten my password. It seems as though this did not change the password for superuser so I am only able to read this file and not edit it.

    Anyone able to help me out?

  2. #2

    Join Date
    Jan 2004
    Location
    Sydney
    Posts
    5,960

    Default

    In terminal do

    sudo su -

    Then enter in your users password

    That will give you root access

    Otherwise
    sudo vi /etc/X11/xinit/xinitrc

    Which would then prompt for your password to use sudo and then use vi to edit the file you want as root user privileges

  3. #3

    Join Date
    Jun 2006
    Location
    Canberra
    Posts
    185

    Default

    thanks purana. awesomely quick help.

  4. #4

    Join Date
    Jan 2005
    Location
    Brisbane
    Posts
    517

    Default

    Don't edit the system version of the file! Take a copy of it to your personal .xinitrc

    cp /etc/X11/xinit/xinitrc ~/.xinitrc

    and then edit that one.

  5. #5

    Join Date
    Jun 2006
    Location
    Canberra
    Posts
    185

    Default

    yep that worked too. thanks.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •