public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Locked desktop session but still running computer
@ 2025-07-04 17:58 whiteman808
  2025-07-04 19:00 ` Javier Martinez
  0 siblings, 1 reply; 8+ messages in thread
From: whiteman808 @ 2025-07-04 17:58 UTC (permalink / raw
  To: gentoo-user

Hello,

I have a possibly stupid question motivated by curiosity. Is it possible to gain access to root account, or maybe at least have an access to regular user console, or even unlock desktop session without knowing password of root or regular user's password? How this can be done? I'm talking about computer not having any remote services like ssh exposed, even in lan

What should I do if for example I forgot hypothetically luks encryption password but still have computer powered on and locked gnome or kde session?

What in case if PC doesn't have enabled magic sysrq?

Just asking because I'm curious, not because I have problem described
above

Thank you,
whiteman808.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Locked desktop session but still running computer
  2025-07-04 17:58 [gentoo-user] Locked desktop session but still running computer whiteman808
@ 2025-07-04 19:00 ` Javier Martinez
  2025-07-04 23:46   ` [gentoo-user] " Nuno Silva
  0 siblings, 1 reply; 8+ messages in thread
From: Javier Martinez @ 2025-07-04 19:00 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 927 bytes --]

El 4/7/25 a las 19:58, whiteman808 escribió:
> Hello,
> 
> I have a possibly stupid question motivated by curiosity. Is it possible to gain access to root account, or maybe at least have an access to regular user console, or even unlock desktop session without knowing password of root or regular user's password? How this can be done? I'm talking about computer not having any remote services like ssh exposed, even in lan
> 
> What should I do if for example I forgot hypothetically luks encryption password but still have computer powered on and locked gnome or kde session?
> 
> What in case if PC doesn't have enabled magic sysrq?
> 
> Just asking because I'm curious, not because I have problem described
> above
> 
> Thank you,
> whiteman808.


ctrl+alt+backspace can give you terminal access if you locked your X 
windows and it had not been started from a display manager (so started 
with startx)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] Re: Locked desktop session but still running computer
  2025-07-04 19:00 ` Javier Martinez
@ 2025-07-04 23:46   ` Nuno Silva
  2025-07-05  3:18     ` Javier Martinez
  0 siblings, 1 reply; 8+ messages in thread
From: Nuno Silva @ 2025-07-04 23:46 UTC (permalink / raw
  To: gentoo-user

On 2025-07-04, Javier Martinez wrote:

> El 4/7/25 a las 19:58, whiteman808 escribió:
>> Hello,
>>
>> I have a possibly stupid question motivated by curiosity. Is it
>> possible to gain access to root account, or maybe at least have an
>> access to regular user console, or even unlock desktop session
>> without knowing password of root or regular user's password? How
>> this can be done? I'm talking about computer not having any remote
>> services like ssh exposed, even in lan
>>
>> What should I do if for example I forgot hypothetically luks
>> encryption password but still have computer powered on and locked
>> gnome or kde session?
>>
>> What in case if PC doesn't have enabled magic sysrq?
>>
>> Just asking because I'm curious, not because I have problem described
>> above
>>
>> Thank you,
>> whiteman808.
>
>
> ctrl+alt+backspace can give you terminal access if you locked your X
> windows and it had not been started from a display manager (so started
> with startx)

Unless you've locked it with vlock, I suppose?

(vlock -na)

-- 
Nuno Silva



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: Locked desktop session but still running computer
  2025-07-04 23:46   ` [gentoo-user] " Nuno Silva
@ 2025-07-05  3:18     ` Javier Martinez
  2025-07-05  5:13       ` whiteman808
  2025-07-05  9:25       ` Nuno Silva
  0 siblings, 2 replies; 8+ messages in thread
From: Javier Martinez @ 2025-07-05  3:18 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 1313 bytes --]

El 5/7/25 a las 1:46, Nuno Silva escribió:
> On 2025-07-04, Javier Martinez wrote:
> 
>> El 4/7/25 a las 19:58, whiteman808 escribió:
>>> Hello,
>>>
>>> I have a possibly stupid question motivated by curiosity. Is it
>>> possible to gain access to root account, or maybe at least have an
>>> access to regular user console, or even unlock desktop session
>>> without knowing password of root or regular user's password? How
>>> this can be done? I'm talking about computer not having any remote
>>> services like ssh exposed, even in lan
>>>
>>> What should I do if for example I forgot hypothetically luks
>>> encryption password but still have computer powered on and locked
>>> gnome or kde session?
>>>
>>> What in case if PC doesn't have enabled magic sysrq?
>>>
>>> Just asking because I'm curious, not because I have problem described
>>> above
>>>
>>> Thank you,
>>> whiteman808.
>>
>>
>> ctrl+alt+backspace can give you terminal access if you locked your X
>> windows and it had not been started from a display manager (so started
>> with startx)
> 
> Unless you've locked it with vlock, I suppose?
> 
> (vlock -na)
> 

IMHO vlock can't lock standard tty.

I want mean, vlock can lock all xterms you have opened for example, not 
the login session opened at tty2

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: Locked desktop session but still running computer
  2025-07-05  3:18     ` Javier Martinez
@ 2025-07-05  5:13       ` whiteman808
  2025-07-05  8:37         ` Anna Vyalkova
  2025-07-05 11:02         ` Javier Martinez
  2025-07-05  9:25       ` Nuno Silva
  1 sibling, 2 replies; 8+ messages in thread
From: whiteman808 @ 2025-07-05  5:13 UTC (permalink / raw
  To: gentoo-user

On 05 Jul 2025, 05:18:28, Javier Martinez wrote:
> El 5/7/25 a las 1:46, Nuno Silva escribió:
> > On 2025-07-04, Javier Martinez wrote:
> > 
> > > El 4/7/25 a las 19:58, whiteman808 escribió:
> > > > Hello,
> > > > 
> > > > I have a possibly stupid question motivated by curiosity. Is it
> > > > possible to gain access to root account, or maybe at least have an
> > > > access to regular user console, or even unlock desktop session
> > > > without knowing password of root or regular user's password? How
> > > > this can be done? I'm talking about computer not having any remote
> > > > services like ssh exposed, even in lan
> > > > 
> > > > What should I do if for example I forgot hypothetically luks
> > > > encryption password but still have computer powered on and locked
> > > > gnome or kde session?
> > > > 
> > > > What in case if PC doesn't have enabled magic sysrq?
> > > > 
> > > > Just asking because I'm curious, not because I have problem described
> > > > above
> > > > 
> > > > Thank you,
> > > > whiteman808.
> > > 
> > > 
> > > ctrl+alt+backspace can give you terminal access if you locked your X
> > > windows and it had not been started from a display manager (so started
> > > with startx)
> > 
> > Unless you've locked it with vlock, I suppose?
> > 
> > (vlock -na)
> > 
> 
> IMHO vlock can't lock standard tty.
> 
> I want mean, vlock can lock all xterms you have opened for example, not the
> login session opened at tty2

I ask about if it's possible to gain in some smart way access to data
stored on powered on physical computer while PC is locked (tty or DE)
and I want know about methods of doing it.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] Re: Locked desktop session but still running computer
  2025-07-05  5:13       ` whiteman808
@ 2025-07-05  8:37         ` Anna Vyalkova
  2025-07-05 11:02         ` Javier Martinez
  1 sibling, 0 replies; 8+ messages in thread
From: Anna Vyalkova @ 2025-07-05  8:37 UTC (permalink / raw
  To: gentoo-user

On 2025-07-05, whiteman808 wrote:
> I ask about if it's possible to gain in some smart way access to data
> stored on powered on physical computer while PC is locked (tty or DE)
> and I want know about methods of doing it.

If someone with the right forensics tools for the task has physical 
access to your powered on PC, they will be able to capture your RAM and 
decrypt everything.

https://en.wikipedia.org/wiki/Computer_forensics#Volatile_data

If this scenario is in your threat model, consider configuring a "kill 
switch", e.g. https://github.com/hephaest0s/usbkill

Other means could be considered too:

https://en.wikipedia.org/wiki/Anti–computer_forensics#Physical


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] Re: Locked desktop session but still running computer
  2025-07-05  3:18     ` Javier Martinez
  2025-07-05  5:13       ` whiteman808
@ 2025-07-05  9:25       ` Nuno Silva
  1 sibling, 0 replies; 8+ messages in thread
From: Nuno Silva @ 2025-07-05  9:25 UTC (permalink / raw
  To: gentoo-user

On 2025-07-05, Javier Martinez wrote:

> El 5/7/25 a las 1:46, Nuno Silva escribió:
>> On 2025-07-04, Javier Martinez wrote:
>>
>>> El 4/7/25 a las 19:58, whiteman808 escribió:
>>>> Hello,
>>>>
>>>> I have a possibly stupid question motivated by curiosity. Is it
>>>> possible to gain access to root account, or maybe at least have an
>>>> access to regular user console, or even unlock desktop session
>>>> without knowing password of root or regular user's password? How
>>>> this can be done? I'm talking about computer not having any remote
>>>> services like ssh exposed, even in lan
>>>>
>>>> What should I do if for example I forgot hypothetically luks
>>>> encryption password but still have computer powered on and locked
>>>> gnome or kde session?
>>>>
>>>> What in case if PC doesn't have enabled magic sysrq?
>>>>
>>>> Just asking because I'm curious, not because I have problem described
>>>> above
>>>>
>>>> Thank you,
>>>> whiteman808.
>>>
>>>
>>> ctrl+alt+backspace can give you terminal access if you locked your X
>>> windows and it had not been started from a display manager (so started
>>> with startx)
>>
>> Unless you've locked it with vlock, I suppose?
>>
>> (vlock -na)
>>
>
> IMHO vlock can't lock standard tty.
>
> I want mean, vlock can lock all xterms you have opened for example,
> not the login session opened at tty2

I think the Linux virtual consoles might be precisely what vlock is
intended to lock, or at least its online manual features the expression
"virtual console" and suggests that focus/purpose.

It will also work on standard terminals (say, something from DEC on
ttyS0) and on terminal emulators like xterm.

With the X session itself, it works by instead creating an additional
virtual console to switch to.

-- 
Nuno Silva



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: Locked desktop session but still running computer
  2025-07-05  5:13       ` whiteman808
  2025-07-05  8:37         ` Anna Vyalkova
@ 2025-07-05 11:02         ` Javier Martinez
  1 sibling, 0 replies; 8+ messages in thread
From: Javier Martinez @ 2025-07-05 11:02 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 1732 bytes --]

El 5/7/25 a las 7:13, whiteman808 escribió:
> On 05 Jul 2025, 05:18:28, Javier Martinez wrote:
>> El 5/7/25 a las 1:46, Nuno Silva escribió:
>>> On 2025-07-04, Javier Martinez wrote:
>>>
>>>> El 4/7/25 a las 19:58, whiteman808 escribió:
>>>>> Hello,
>>>>>
>>>>> I have a possibly stupid question motivated by curiosity. Is it
>>>>> possible to gain access to root account, or maybe at least have an
>>>>> access to regular user console, or even unlock desktop session
>>>>> without knowing password of root or regular user's password? How
>>>>> this can be done? I'm talking about computer not having any remote
>>>>> services like ssh exposed, even in lan
>>>>>
>>>>> What should I do if for example I forgot hypothetically luks
>>>>> encryption password but still have computer powered on and locked
>>>>> gnome or kde session?
>>>>>
>>>>> What in case if PC doesn't have enabled magic sysrq?
>>>>>
>>>>> Just asking because I'm curious, not because I have problem described
>>>>> above
>>>>>
>>>>> Thank you,
>>>>> whiteman808.
>>>>
>>>>
>>>> ctrl+alt+backspace can give you terminal access if you locked your X
>>>> windows and it had not been started from a display manager (so started
>>>> with startx)
>>>
>>> Unless you've locked it with vlock, I suppose?
>>>
>>> (vlock -na)
>>>
>>
>> IMHO vlock can't lock standard tty.
>>
>> I want mean, vlock can lock all xterms you have opened for example, not the
>> login session opened at tty2
> 
> I ask about if it's possible to gain in some smart way access to data
> stored on powered on physical computer while PC is locked (tty or DE)
> and I want know about methods of doing it.
> 

Dumping RAM memory through firewire port

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-07-05 11:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-04 17:58 [gentoo-user] Locked desktop session but still running computer whiteman808
2025-07-04 19:00 ` Javier Martinez
2025-07-04 23:46   ` [gentoo-user] " Nuno Silva
2025-07-05  3:18     ` Javier Martinez
2025-07-05  5:13       ` whiteman808
2025-07-05  8:37         ` Anna Vyalkova
2025-07-05 11:02         ` Javier Martinez
2025-07-05  9:25       ` Nuno Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox