Closed ggaussling closed 9 years ago
As a workaround I switched to cygwin UNC path names. But that triggert cmd.exe /c mklinks UNC warnings. cmd.exe switched automatically into %systemroot% working directory. That implies absolute path names.
Thanks for the report. Since sudoserver simply calls Python's chdir() function and it fails, I think there's nothing I can do for it. In other words, it won't fix.
Hello, thank you for providing this software! I got an issue by running sudo in a script. I followed the entry under issues and at the end of the readme to install the server as a task on login. This was successful.
It seems, that sudo will not work with network mapped drives of mount type type netapp !
I mapped
\\DATENSERVER\ao
to driveB:
In a script with this command, I get an error message, but the path
'/cygdrive/b/path/to/some folder/2015/02_15'
is valid!It worked formerly as
cygstart --action=runas cmd /c $command | tee -a "$log_cyg"
, but with the elevation prompt, that I want to prevent.Here is the part of the script:
This is the output i get:
File "/home/$USER/bin/sudo-for-cygwin-master/sudoserver.py", line 40, in child os.chdir(cwd) OSError: [Errno 2] No such file or directory: '/cygdrive/b/path/to/some folder/2015/02_15' Closing connection Exception KeyError: KeyError(4293775964L,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
Maybe this helps? KeyError in module 'threading' after a successful py.test run
Further tests (drive 'G:' is a local drive):