LifeOS is a minimal, terminal-based user management and command system written in Rust.
It simulates a lightweight operating system experience with users, roles, and commands.
Think of LifeOS as a small CLI-driven OS core you can extend and evolve.
- 🖥️ Command Line Interface (CLI)
- 👤 User registration and login system
- 🔐 Role-based access (
user,admin,useradmin) - 📁 JSON-based user storage
- ⚡ Fast and safe Rust backend
- 🧩 Easily extendable command structure
- Rust (stable)
- Cargo
git clone https://github.com/yourusername/lifeos.git
cd lifeoscargo runWhen the application starts:
[LifeOS] Welcome to LifeOS!
[LifeOS] For commands, type 'help'.
>>
| Command | Description |
|---|---|
help |
Show available commands |
register <username> <password> <role> |
Register a new user |
login <username> <password> |
Log in |
sudo |
Run privileged command (login required) |
clear |
Clear the console |
exit |
Exit LifeOS |
register baris 1234 admin
login baris 1234
sudolifeos/
├── src/
│ ├── main.rs
│ └── users/
│ └── username.json
├── Cargo.toml
└── README.md
Each user is stored as a JSON file under src/users/:
{
"USERNAME": "baris",
"PASSWORD": "1234",
"ROLE": "admin"
}
⚠️ Passwords are stored in plain text.
This project is for learning and experimentation purposes only.
- Rust
- Serde
- Serde JSON
- 🔐 Password hashing (bcrypt / argon2)
- 👮 Role-based permission system
- 🧠 Command router system
- 💾 Session persistence
- 🧪 Unit and integration tests
Open-source project for educational and experimental use.
LifeOS is designed to grow.
Add commands, permissions, filesystems, or even process management.
A small OS idea — powered by Rust 🦀