Modify Cygwin sshd to support login into user SYSTEM?

Andrey Repin anrdaemon@yandex.ru
Sat Jan 4 01:27:17 GMT 2025


Greetings, Cedric Blancher!

>> What problem are you solving?

> 1. Replace PsExec, and only use Cygwin builtin tools

Cygwin is a user-level library, don't use it to substitute system
administration tools. Bad idea. Bad things will happen.

> 2. Do global mounts, i.e. mount SMB filesystem for all users. That
> AFAIK only works if you logon as user SYSTEM, and do the net use
> \\server\path there

That would only mount the path for SYSTEM user. All network mounts are
per-session. Every user has to do it for themselves. More so, if a user has
elevation rights, they will need to remount the paths under elevated token
separately.

Use logon scripting for that. Solves the problem the way it's intended to be
solved.


-- 
With best regards,
Andrey Repin
Saturday, January 4, 2025 04:23:39

Sorry for my terrible english...



More information about the Cygwin mailing list