Encrypting home directory on Raspberry pi with password file on USB
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have been trying to follow this guide: https://www.howtoforge.com/tutorial/how-to-encrypt-directories-and-partitions-with-ecryptfs-on-debian/ to encrypt the home directory on my pi with out a password by saving the password on a file onto a usb. But the issue is that the pi boots up to a login screen and prompts for a password. The only difference to the configuration in the guide I have made is that my usb is ntfs and the name of the directory that is being encrypted (pi) and the password. I tried it again and afterwards when the pi booted up it said root account was locked and I only had command line access to the system.
Are there any passwordless encryption alternatives that I can use? As the pi will have a display but no keyboard.
raspberry-pi encryption raspbian ecryptfs
add a comment |Â
up vote
0
down vote
favorite
I have been trying to follow this guide: https://www.howtoforge.com/tutorial/how-to-encrypt-directories-and-partitions-with-ecryptfs-on-debian/ to encrypt the home directory on my pi with out a password by saving the password on a file onto a usb. But the issue is that the pi boots up to a login screen and prompts for a password. The only difference to the configuration in the guide I have made is that my usb is ntfs and the name of the directory that is being encrypted (pi) and the password. I tried it again and afterwards when the pi booted up it said root account was locked and I only had command line access to the system.
Are there any passwordless encryption alternatives that I can use? As the pi will have a display but no keyboard.
raspberry-pi encryption raspbian ecryptfs
This might be a use case for writing custom firmware.
â Ignacio Vazquez-Abrams
Nov 10 '17 at 3:40
To be honest I don't think I am capable of doing that, but could you expand on that idea?
â somerandomguy95
Nov 10 '17 at 3:48
Perhaps the use of ntfs, which is a fuse filesystem, is finished asynchronously and so not ready when the ecrypfs starts. Are you usingmount -a
in/etc/rc.local
? Perhaps do it with 2 explicit mount commands (mount /dev/sdb1;sleep 2;mount /home/pi
). Doesnt raspian auto mount entries in fstab? If so add optionnoauto
to the 2 fstab entries.
â meuh
Nov 10 '17 at 19:32
Yes I was using mount -a, just tried the two separate mounts and it made no difference. Also added the noauto for the two entries.
â somerandomguy95
Nov 10 '17 at 21:03
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have been trying to follow this guide: https://www.howtoforge.com/tutorial/how-to-encrypt-directories-and-partitions-with-ecryptfs-on-debian/ to encrypt the home directory on my pi with out a password by saving the password on a file onto a usb. But the issue is that the pi boots up to a login screen and prompts for a password. The only difference to the configuration in the guide I have made is that my usb is ntfs and the name of the directory that is being encrypted (pi) and the password. I tried it again and afterwards when the pi booted up it said root account was locked and I only had command line access to the system.
Are there any passwordless encryption alternatives that I can use? As the pi will have a display but no keyboard.
raspberry-pi encryption raspbian ecryptfs
I have been trying to follow this guide: https://www.howtoforge.com/tutorial/how-to-encrypt-directories-and-partitions-with-ecryptfs-on-debian/ to encrypt the home directory on my pi with out a password by saving the password on a file onto a usb. But the issue is that the pi boots up to a login screen and prompts for a password. The only difference to the configuration in the guide I have made is that my usb is ntfs and the name of the directory that is being encrypted (pi) and the password. I tried it again and afterwards when the pi booted up it said root account was locked and I only had command line access to the system.
Are there any passwordless encryption alternatives that I can use? As the pi will have a display but no keyboard.
raspberry-pi encryption raspbian ecryptfs
asked Nov 10 '17 at 1:59
somerandomguy95
62
62
This might be a use case for writing custom firmware.
â Ignacio Vazquez-Abrams
Nov 10 '17 at 3:40
To be honest I don't think I am capable of doing that, but could you expand on that idea?
â somerandomguy95
Nov 10 '17 at 3:48
Perhaps the use of ntfs, which is a fuse filesystem, is finished asynchronously and so not ready when the ecrypfs starts. Are you usingmount -a
in/etc/rc.local
? Perhaps do it with 2 explicit mount commands (mount /dev/sdb1;sleep 2;mount /home/pi
). Doesnt raspian auto mount entries in fstab? If so add optionnoauto
to the 2 fstab entries.
â meuh
Nov 10 '17 at 19:32
Yes I was using mount -a, just tried the two separate mounts and it made no difference. Also added the noauto for the two entries.
â somerandomguy95
Nov 10 '17 at 21:03
add a comment |Â
This might be a use case for writing custom firmware.
â Ignacio Vazquez-Abrams
Nov 10 '17 at 3:40
To be honest I don't think I am capable of doing that, but could you expand on that idea?
â somerandomguy95
Nov 10 '17 at 3:48
Perhaps the use of ntfs, which is a fuse filesystem, is finished asynchronously and so not ready when the ecrypfs starts. Are you usingmount -a
in/etc/rc.local
? Perhaps do it with 2 explicit mount commands (mount /dev/sdb1;sleep 2;mount /home/pi
). Doesnt raspian auto mount entries in fstab? If so add optionnoauto
to the 2 fstab entries.
â meuh
Nov 10 '17 at 19:32
Yes I was using mount -a, just tried the two separate mounts and it made no difference. Also added the noauto for the two entries.
â somerandomguy95
Nov 10 '17 at 21:03
This might be a use case for writing custom firmware.
â Ignacio Vazquez-Abrams
Nov 10 '17 at 3:40
This might be a use case for writing custom firmware.
â Ignacio Vazquez-Abrams
Nov 10 '17 at 3:40
To be honest I don't think I am capable of doing that, but could you expand on that idea?
â somerandomguy95
Nov 10 '17 at 3:48
To be honest I don't think I am capable of doing that, but could you expand on that idea?
â somerandomguy95
Nov 10 '17 at 3:48
Perhaps the use of ntfs, which is a fuse filesystem, is finished asynchronously and so not ready when the ecrypfs starts. Are you using
mount -a
in /etc/rc.local
? Perhaps do it with 2 explicit mount commands (mount /dev/sdb1;sleep 2;mount /home/pi
). Doesnt raspian auto mount entries in fstab? If so add option noauto
to the 2 fstab entries.â meuh
Nov 10 '17 at 19:32
Perhaps the use of ntfs, which is a fuse filesystem, is finished asynchronously and so not ready when the ecrypfs starts. Are you using
mount -a
in /etc/rc.local
? Perhaps do it with 2 explicit mount commands (mount /dev/sdb1;sleep 2;mount /home/pi
). Doesnt raspian auto mount entries in fstab? If so add option noauto
to the 2 fstab entries.â meuh
Nov 10 '17 at 19:32
Yes I was using mount -a, just tried the two separate mounts and it made no difference. Also added the noauto for the two entries.
â somerandomguy95
Nov 10 '17 at 21:03
Yes I was using mount -a, just tried the two separate mounts and it made no difference. Also added the noauto for the two entries.
â somerandomguy95
Nov 10 '17 at 21:03
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
What are firmware name and version that you was deployed on your Raspberry?
Some keyboards are not be supported by Raspberry firmware. (caused by driver or power supply is not enough)
and
Some firmware version don't support generic keyboard.
==> Confirm the encoded password and input from keyboard are right!
I've used armbian for my lab and it's running stably.
I'm using raspbian Jessie x86. But I realized why you are commenting about the keyboard. I meant that the device will only have a display, as in no keyboard or mouse will be attached to the device.
â somerandomguy95
Nov 10 '17 at 3:11
To be honest I have not tried it, I didn't think it would be an issue but I can try to reformat another USB to vfat and try it tomorrow.
â somerandomguy95
Nov 10 '17 at 3:44
Did you tried with vfat successfully? Let show the content of /etc/fstab with the line mount ntfs usb.
â Tech. Pro
Nov 10 '17 at 3:44
Here is the /etc/fstab content (sorry about the formatting - it won't let me add extra lines): /dev/sdb1 /mnt/usb ntfs ro 0 0 /home/pi /home/pi ecryptfs defaults 0 0
â somerandomguy95
Nov 10 '17 at 3:45
Try ntfs-3g: /dev/sdb1 /mnt/usb ntfs-3g permissions 0 0 (Note that: vfat do not have its own permission policy --> ro option is not real readonly.)
â Tech. Pro
Nov 10 '17 at 4:09
 |Â
show 3 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
What are firmware name and version that you was deployed on your Raspberry?
Some keyboards are not be supported by Raspberry firmware. (caused by driver or power supply is not enough)
and
Some firmware version don't support generic keyboard.
==> Confirm the encoded password and input from keyboard are right!
I've used armbian for my lab and it's running stably.
I'm using raspbian Jessie x86. But I realized why you are commenting about the keyboard. I meant that the device will only have a display, as in no keyboard or mouse will be attached to the device.
â somerandomguy95
Nov 10 '17 at 3:11
To be honest I have not tried it, I didn't think it would be an issue but I can try to reformat another USB to vfat and try it tomorrow.
â somerandomguy95
Nov 10 '17 at 3:44
Did you tried with vfat successfully? Let show the content of /etc/fstab with the line mount ntfs usb.
â Tech. Pro
Nov 10 '17 at 3:44
Here is the /etc/fstab content (sorry about the formatting - it won't let me add extra lines): /dev/sdb1 /mnt/usb ntfs ro 0 0 /home/pi /home/pi ecryptfs defaults 0 0
â somerandomguy95
Nov 10 '17 at 3:45
Try ntfs-3g: /dev/sdb1 /mnt/usb ntfs-3g permissions 0 0 (Note that: vfat do not have its own permission policy --> ro option is not real readonly.)
â Tech. Pro
Nov 10 '17 at 4:09
 |Â
show 3 more comments
up vote
0
down vote
What are firmware name and version that you was deployed on your Raspberry?
Some keyboards are not be supported by Raspberry firmware. (caused by driver or power supply is not enough)
and
Some firmware version don't support generic keyboard.
==> Confirm the encoded password and input from keyboard are right!
I've used armbian for my lab and it's running stably.
I'm using raspbian Jessie x86. But I realized why you are commenting about the keyboard. I meant that the device will only have a display, as in no keyboard or mouse will be attached to the device.
â somerandomguy95
Nov 10 '17 at 3:11
To be honest I have not tried it, I didn't think it would be an issue but I can try to reformat another USB to vfat and try it tomorrow.
â somerandomguy95
Nov 10 '17 at 3:44
Did you tried with vfat successfully? Let show the content of /etc/fstab with the line mount ntfs usb.
â Tech. Pro
Nov 10 '17 at 3:44
Here is the /etc/fstab content (sorry about the formatting - it won't let me add extra lines): /dev/sdb1 /mnt/usb ntfs ro 0 0 /home/pi /home/pi ecryptfs defaults 0 0
â somerandomguy95
Nov 10 '17 at 3:45
Try ntfs-3g: /dev/sdb1 /mnt/usb ntfs-3g permissions 0 0 (Note that: vfat do not have its own permission policy --> ro option is not real readonly.)
â Tech. Pro
Nov 10 '17 at 4:09
 |Â
show 3 more comments
up vote
0
down vote
up vote
0
down vote
What are firmware name and version that you was deployed on your Raspberry?
Some keyboards are not be supported by Raspberry firmware. (caused by driver or power supply is not enough)
and
Some firmware version don't support generic keyboard.
==> Confirm the encoded password and input from keyboard are right!
I've used armbian for my lab and it's running stably.
What are firmware name and version that you was deployed on your Raspberry?
Some keyboards are not be supported by Raspberry firmware. (caused by driver or power supply is not enough)
and
Some firmware version don't support generic keyboard.
==> Confirm the encoded password and input from keyboard are right!
I've used armbian for my lab and it's running stably.
edited Nov 10 '17 at 3:39
answered Nov 10 '17 at 2:46
Tech. Pro
303
303
I'm using raspbian Jessie x86. But I realized why you are commenting about the keyboard. I meant that the device will only have a display, as in no keyboard or mouse will be attached to the device.
â somerandomguy95
Nov 10 '17 at 3:11
To be honest I have not tried it, I didn't think it would be an issue but I can try to reformat another USB to vfat and try it tomorrow.
â somerandomguy95
Nov 10 '17 at 3:44
Did you tried with vfat successfully? Let show the content of /etc/fstab with the line mount ntfs usb.
â Tech. Pro
Nov 10 '17 at 3:44
Here is the /etc/fstab content (sorry about the formatting - it won't let me add extra lines): /dev/sdb1 /mnt/usb ntfs ro 0 0 /home/pi /home/pi ecryptfs defaults 0 0
â somerandomguy95
Nov 10 '17 at 3:45
Try ntfs-3g: /dev/sdb1 /mnt/usb ntfs-3g permissions 0 0 (Note that: vfat do not have its own permission policy --> ro option is not real readonly.)
â Tech. Pro
Nov 10 '17 at 4:09
 |Â
show 3 more comments
I'm using raspbian Jessie x86. But I realized why you are commenting about the keyboard. I meant that the device will only have a display, as in no keyboard or mouse will be attached to the device.
â somerandomguy95
Nov 10 '17 at 3:11
To be honest I have not tried it, I didn't think it would be an issue but I can try to reformat another USB to vfat and try it tomorrow.
â somerandomguy95
Nov 10 '17 at 3:44
Did you tried with vfat successfully? Let show the content of /etc/fstab with the line mount ntfs usb.
â Tech. Pro
Nov 10 '17 at 3:44
Here is the /etc/fstab content (sorry about the formatting - it won't let me add extra lines): /dev/sdb1 /mnt/usb ntfs ro 0 0 /home/pi /home/pi ecryptfs defaults 0 0
â somerandomguy95
Nov 10 '17 at 3:45
Try ntfs-3g: /dev/sdb1 /mnt/usb ntfs-3g permissions 0 0 (Note that: vfat do not have its own permission policy --> ro option is not real readonly.)
â Tech. Pro
Nov 10 '17 at 4:09
I'm using raspbian Jessie x86. But I realized why you are commenting about the keyboard. I meant that the device will only have a display, as in no keyboard or mouse will be attached to the device.
â somerandomguy95
Nov 10 '17 at 3:11
I'm using raspbian Jessie x86. But I realized why you are commenting about the keyboard. I meant that the device will only have a display, as in no keyboard or mouse will be attached to the device.
â somerandomguy95
Nov 10 '17 at 3:11
To be honest I have not tried it, I didn't think it would be an issue but I can try to reformat another USB to vfat and try it tomorrow.
â somerandomguy95
Nov 10 '17 at 3:44
To be honest I have not tried it, I didn't think it would be an issue but I can try to reformat another USB to vfat and try it tomorrow.
â somerandomguy95
Nov 10 '17 at 3:44
Did you tried with vfat successfully? Let show the content of /etc/fstab with the line mount ntfs usb.
â Tech. Pro
Nov 10 '17 at 3:44
Did you tried with vfat successfully? Let show the content of /etc/fstab with the line mount ntfs usb.
â Tech. Pro
Nov 10 '17 at 3:44
Here is the /etc/fstab content (sorry about the formatting - it won't let me add extra lines): /dev/sdb1 /mnt/usb ntfs ro 0 0 /home/pi /home/pi ecryptfs defaults 0 0
â somerandomguy95
Nov 10 '17 at 3:45
Here is the /etc/fstab content (sorry about the formatting - it won't let me add extra lines): /dev/sdb1 /mnt/usb ntfs ro 0 0 /home/pi /home/pi ecryptfs defaults 0 0
â somerandomguy95
Nov 10 '17 at 3:45
Try ntfs-3g: /dev/sdb1 /mnt/usb ntfs-3g permissions 0 0 (Note that: vfat do not have its own permission policy --> ro option is not real readonly.)
â Tech. Pro
Nov 10 '17 at 4:09
Try ntfs-3g: /dev/sdb1 /mnt/usb ntfs-3g permissions 0 0 (Note that: vfat do not have its own permission policy --> ro option is not real readonly.)
â Tech. Pro
Nov 10 '17 at 4:09
 |Â
show 3 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403642%2fencrypting-home-directory-on-raspberry-pi-with-password-file-on-usb%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
This might be a use case for writing custom firmware.
â Ignacio Vazquez-Abrams
Nov 10 '17 at 3:40
To be honest I don't think I am capable of doing that, but could you expand on that idea?
â somerandomguy95
Nov 10 '17 at 3:48
Perhaps the use of ntfs, which is a fuse filesystem, is finished asynchronously and so not ready when the ecrypfs starts. Are you using
mount -a
in/etc/rc.local
? Perhaps do it with 2 explicit mount commands (mount /dev/sdb1;sleep 2;mount /home/pi
). Doesnt raspian auto mount entries in fstab? If so add optionnoauto
to the 2 fstab entries.â meuh
Nov 10 '17 at 19:32
Yes I was using mount -a, just tried the two separate mounts and it made no difference. Also added the noauto for the two entries.
â somerandomguy95
Nov 10 '17 at 21:03