How start Porteus with .dat container without password entering...

Post here if you are a new Porteus member and you're looking for some help.
rozkom
Ronin
Ronin
Posts: 2
Joined: 22 May 2021, 14:24
Distribution: Porteus 4

How start Porteus with .dat container without password entering...

Post#1 by rozkom » 22 May 2021, 14:40

Hello :)

Sorry for my english... Please tell me, how I can start Porteus without entering password
from keyboard ?. I need start Porteus with .DAT container [ encrypted ], but I don't need
entering password. This is possible ? Password dor .DAT container in Porteus.cfg file is
possible ? Or start Porteus with encrypted container, but without entering password,
autostart / automount without passwords from keyboard ?

Example: I required some like this, or autostart without prompt passwords

MENU LABEL RO Graphics mode + DAT
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=/mnt/sdb2/porteussave.dat changes-ro password "27$@323121212"
TEXT HELP

ENDTEXT

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How start Porteus with .dat container without password entering...

Post#2 by Ed_P » 22 May 2021, 17:41

If anyone who boots to RO Graphics mode will have access to the encrypted save.dat file why encrypt it?

An option I use with my save.dat file to run in read only mode is to copy the file to my modules folder as save.dat.xzm and boot without the changes= cheatcode.
Ed

rozkom
Ronin
Ronin
Posts: 2
Joined: 22 May 2021, 14:24
Distribution: Porteus 4

How start Porteus with .dat container without password entering...

Post#3 by rozkom » 24 May 2021, 13:32

Ed_P wrote:
22 May 2021, 17:41
If anyone who boots to RO Graphics mode will have access to the encrypted save.dat file why encrypt it?

An option I use with my save.dat file to run in read only mode is to copy the file to my modules folder as save.dat.xzm and boot without the changes= cheatcode.
Example:

- sda1 [ encrypted partition ( diskcryptor ) - not required passwords - boot - ok ] [ syslinux ] - this working ok
- sda2 [ porteussave.dat ] [ without any .xzm modules - all data from .xzm transfered to .dat container ]

I need start Porteus and using encrypted sda2/porteussave.dat, but without entering passwords from keyboard.
After that my script start other hybrid funcionality... [ console scripts without gui etc... ]. This is possible ?

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How start Porteus with .dat container without password entering...

Post#4 by Ed_P » 25 May 2021, 21:02

Without a password cheatcode I don't think it is possible at this time. Maybe a future release will support the idea. In the interim remove the save.dat encryption and enjoy porteus. :)
Ed

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

How start Porteus with .dat container without password entering...

Post#5 by babam » 28 May 2021, 12:28

You can try editing initrd (linuxrc) so that cryptsetup gets the passphrase from the standard input.

Code: Select all

echo -n "MyPassphrase" | /opt/000-kernel/sbin/cryptsetup luksOpen /dev/loop2 crypt -d -
Sorry, my English is bad.

Post Reply