-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unmount encrypted volume on logout #104
Comments
Will look into it. |
Thanks @mhogomchungu for your work :). |
The git version now unmounts all volumes and quit when it receives sigterm or sighup and i think this should fulfill the request. I tried googling for a while now and i still have not find any documentation that says what signal applications receives when a user log out and i just assumed its one of the two. What desktop environment are you using? WIll appreciate if you could test this and i will reopen the issue if the problem is still present. |
@mhogomchungu I tried it, but with no success. I'm not using any desktop environment at the moment, just the i3 window manager. I just logout using Also, I can't reopen the issue. |
Are you using the latest git version? Try this:
Is the volume you originally unlocked still unlocked? |
@mhogomchungu yes, it works as expected, i.e. the volume is correctly unmounted with the |
I dont use a systemd based system so i cant easily test your setup. Why are you using Without knowing anything about loginctl and based on my understanding of killing processes versus terminating them, i think you are using a wrong way of logging out, The functionality was added only in zuluCrypt-gui and zuluMount-gui since these are the only two processes that hang around for a longer period of time. |
@mhogomchungu maybe you're right, I don't remember why I used the kill command and not terminate one inside my logout script. Btw, it seems that
|
zuluCrypt-cli is a backend and is the one that actually does all the heavy lifting. When unlocking a volume, zuluCrypt-gui collects all necessary information and then it starts zuluCrypt-cli and pass it the collected information. zuluCrypt-cli uses the information to unlock a volume and them terminates. zuluCrypt-cli is started by zuluCrypt-gui and it hangs around just to accomplish its task and then it terminates immediately after the task is complete. Its takes a while to create and unlock VeraCrypt volumes and you will see zuluCrypt-cli in your ps output when you run it while zuluCrypt-gui is creating/unlocking a VeraCrypt volume. |
@mhogomchungu |
Yes, you are right. CLI components(zuluCrypt-cli and zuluMount-cli) run for only a few second and it makes no sense to start an operation using zuluCrypt-cli and then logout within those few seconds. |
@mhogomchungu I get the point, but if I run the cli version commands only, I can't automatically dismount them on logout, isn't it? So, in this case, maybe a logout script is required. Is there any command to dismount all the volumes mounted by zuluCrypt? |
@mhogomchungu also, to me the problem is maybe more general and not related to the logout only. What if I suspend/hibernate the laptop and I'm physically away from it? Any other user of the system can then resume the laptop and look inside the volume (maybe if recover the password with some tricks). https://github.com/guns/go-luks-suspend |
With help from google, i manage to create a script that somehow manages to lock all volumes opened by zuluCrypt, try it out and see if it works for you and if you can incorporate it to your logout process.
|
@mhogomchungu thanks, really useful. I just suggest to replace EDIT: ok, I hadn't noticed the |
@tigerjack i suppose you're using a displaymanager then? else, logout would just be |
@Piraty yep, I'm using |
Is there any chance to unmount the encrypted volume on logout?
The text was updated successfully, but these errors were encountered: