Skip to content

Maybe1or0/afs_mount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

OS Shell Status SSHFS Kerberos AFS

AFS Mount Helper

This repository provides a lightweight shell script to mount your EPITA AFS home directory over SSHFS. It automates and simplifies the standard EPITA setup process.

Features

  • Verifies that sshfs and kinit are installed.
  • Obtains a Kerberos ticket for your CRI account.
  • Automatically builds the correct AFS path from your login.
  • Cleans and mounts the target directory (~/Desktop/AFS).
  • Handles temporary files securely and cleans them on exit.

Requirements

  • macOS (uses diskutil for unmounting).
  • sshfs (install via Homebrew).
  • kinit (Kerberos tools).
  • Network access to ssh.cri.epita.fr.

Installation

git clone <repo_url>
cd <repo_name>
chmod +x src/main.sh

Usage

./src/main.sh <login> <password>
  • <login>: your CRI login (e.g., jdupont)
  • <password>: your CRI password

The AFS directory will be mounted at:

~/Desktop/AFS

Security Notes

  • The password is temporarily stored in a file with restricted permissions (chmod 600) and removed on exit.
  • Passing passwords as command-line arguments may expose them via process inspection tools (ps). Use with caution.

After Running

  • Your AFS files will be accessible at ~/Desktop/AFS.

To unmount manually:

diskutil unmount force ~/Desktop/AFS

Troubleshooting

  • Ensure your credentials are correct.
  • Verify your Kerberos ticket with:
klist
  • Check that sshfs and kinit are available in your PATH.

About

A lightweight shell script that mounts your EPITA AFS home directory over SSHFS using Kerberos authentication. It automates the setup process to provide quick and seamless access to your remote files on macOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages