Directory c:\%USERPROFILE% created
Hello, i was wandering about strange folders created in the root directory of my Cygwin-Enhanced PCs and found out that everytime i start installer programs from within a cygwin shell, a folder called %USERPROFILE% is created in the base directory of the pc's harddisk. I found out that if i start a command-shell from windows there is an environment variable called "%USERPROFILE%" which points to the current logged in users directory. In cygwin-shells this variable is missing. So everytime a windows-process tries to access the current users profile-dir (to store some ini's or whatever), the variable does not resolve but will be taken literal, so this directory will be created. In other words: %USERPROFILE% does not point to "c:\WINNT\Profiles\username", resp. "%SystemRoot%\Profiles\username" like it should. The effect is that the installer will fail, which is very bad if running "silent" setups. To avoid this i've set $USERPROFILE to the appropriate profile-directory for the users in his .profile in cygwin's /home/username. This seems to work, but do i make something wrong ? Is there a better way to do this ? Are there any environment-variables or programs to resolve the current users Windows-Profile-Directory, instead of setting it literally in .profile ? Regards, Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: access to event log of windows
Hello, is there a way to read/write from/to the event log of windows ? syslog and vsyslog are implemented in Cygwin. On NT they use the event log system. You're right. But i think with syslog i can only write to the log. What i also need is to read from it :-) In other words: i'd like to scan NT eventlog for errors, programatically. Mit freundlichen Grüssen, Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: OpenSSH disconnects when Windows user logging out
Hello. when using an secureshell on an Windows-Box, running cygwin and openssh, i receive an disconnect when the Windows user just loggs off (no shutdown nor restart !). I just tried the same. My remote session didn't disconnect when the local user logged off. That's strange. I see an errormessage like: Received disconnect from 172.29.3.165: Command terminated on signal 1. Can you/anybody give me a hint how to solve this ? Or what to do next to find the source of it ? Looks like you aren't starting sshd as a service. Are you even using WinNT/2k/XP? Service is started as "LocalSystem" on WindowsNT 4.0 But your question pointed me to the right direction and i finally found the error. I choose "Interact with desktop" in the service-dialog to do funny things like starting applications for users :-) If i uncheck this, my sessions thays active, even if the user loggs off. I wonder if there is a way to prevent this ?! It would be very nice to start programs from within a ssh-shell, e.g. start "iexplore c:\adminwarn.html" to show the user that someone's working on his machine. Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: "regtool 1.8" on "cygwin 1.5.10": Recursively remove registry keys
it seems that regtool cannot remove keys in registry if it's "not empty". I have to remove all subkeys/values first, otherwise i get an "Error (5) access denied". Is this true, or is there a way to remove whole "trees" from the registry ? AFAICS, regtool has no "recursive" option. Patches welcome. See Maybe i write some kind to "dir-crawler" in perl/shell to do this... Thanks for you info ! Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: OpenSSH disconnects when Windows user logging out
Hello when using an secureshell on an Windows-Box, running cygwin and openssh, i receive an disconnect when the Windows user just loggs off (no shutdown nor restart !). I just tried the same. My remote session didn't disconnect when the local user logged off. That's strange. I see an errormessage like: Received disconnect from 172.29.3.165: Command terminated on signal 1. Can you/anybody give me a hint how to solve this ? Or what to do next to find the source of it ? Thanks, Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
"regtool 1.8" on "cygwin 1.5.10": Recursively remove registry keys
Hello, it seems that regtool cannot remove keys in registry if it's "not empty". I have to remove all subkeys/values first, otherwise i get an "Error (5) access denied". Is this true, or is there a way to remove whole "trees" from the registry ? Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
OpenSSH disconnects when Windows user logging out
Hello, when using an secureshell on an Windows-Box, running cygwin and openssh, i receive an disconnect when the Windows user just loggs off (no shutdown nor restart !). The sshd service will never get stopped. I can reconncet without a noticeable delay. Any ideas? Regards, Oliver Geisen --- Systemadministrator Kreisboten Verlag Mühlfellner KG Telefon: 0881/686-63 Telefax: 0881/686-74 Mail: [EMAIL PROTECTED] --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/