Alexey Gladkov

Results 26 comments of Alexey Gladkov

Why did you change the permissions for all content from 644 to 755?

Just sloppy. On unix systems, access rights are important.

To open new shell and switch to it run: `sudo openvt -s -u -l -w /bin/bash`. @Witko Please explain, what exactly do you want to do?

@Witko /proc mounted?

Hm... it means that we could not find the process on this tty. https://github.com/legionus/kbd/blob/master/src/openvt.c#L131-L139

@Witko Do you have `/var/run/console/console.lock` in your system ?

In this case I do not know how to find owner of current console. Sorry.

@Witko ehhh... No. If you run openvt under sudo, then the whoami response is `root`. ``` $ sudo whoami root ```

No. This looks ugly. Also, it doesn't work on my laptop: ``` $ TTY=$(tty | grep -oP "/dev/\Kpts/.*") $ echo $TTY pts/10 $ who | grep "${TTY}" | awk '{print...

Can you show me output `fgconsole` and `who` ?