I made changes to the Bash dotfiles in my home directory, and now I can’t log into Linux CLSE computers. How do I fix this?

If you make any errors when editing the Linux dotfiles in your CAEN Home Directory, it may prevent you from successfully logging into computers running the Linux CLSE. The CAEN VNC client and SSH can also be affected by spurious output from the login shell, and prevent remote access. There are a few options for accessing your home directory to fix (or reset) your files, so you can log into Linux again:


Use an SCP/SFTP Client

You can reset your dotfiles using most common SCP/SFTP clients. On CAEN Windows computers, the recommended client is WinSCP:

  • Connect to: sftp.m.storage.umich.edu
  • Open the dotfiles folder.
  • From the menu at the top of the WinSCP window, select Options then Preferences.
  • Select Panels from the left column of the Preferences window.
  • Check the Show hidden files box, and click OK:

Show hidden files checkbox in preferences

  • In the right panel of the client window, find the file(s) you changed, such as .bashrc or .bash_profile.
  • Right-click each file, and select Rename:

Rename option

  • Add .old to the end of each file name.
  • Quit WinSCP.

You should then be able to log in successfully, and the dotfiles will be regenerated with the default configuration.

Use a CAEN Windows Computer

Since your Linux dotfiles are stored in your CAEN Home Directory, you can access them directly from any on-campus CAEN Windows computer, or via the Windows Remote Desktop Service:

  • Log into a CAEN Windows computer.
  • Open the File Explorer, and go to the network drive labeled CAEN Home Directory (N:).
  • Next, go into the dotfiles folder.
  • At the top of the Explorer window, click the View tab, and make sure the Hidden items box is checked:

In view menu hidden items checkbox

  • Find the file(s) you changed, such as .bashrc or .bash_profile.
  • Right-click each file, and select Rename:

Rename option

  • Add .old to the end of each file name.

You should then be able to log in successfully, and the dotfiles will be regenerated with the default configuration.

Use the Redot Command (SSH required)

If you are able to gain terminal access to a CAEN Linux login server via SSH, the /usr/caen/bin/redot command will reset your files for you. For more information, refer to our knowledge base article.

Details

Article ID: 5206
Created
Tue 5/4/21 11:12 AM
Modified
Wed 7/19/23 8:12 AM