detecting elevation of a process running in bash in vista

2007-11-02 Thread Kurt Franke
Hi, does anyone found a methode to detect if a bash process is running so-called "elevated" with cygwin on windows vista ? it would be a nice feature setting the prompt to a value reflecting this like done when running as root under an unix os. or to modify the windows title to reflect the fact t

cygwin processes listing on windows vista

2008-02-04 Thread Kurt Franke
Hi, is there any possiblity to list the cygwin processes of all users when logged in as an user which is member of the Adminstrators group in windows vista ? There are only the own processes and the service processes (inetd etc.) visible in ps output and of course also in the /proc filesystem.

Re: cygwin processes listing on windows vista

2008-02-06 Thread Kurt Franke
Corinna Vinschen cygwin.com> writes: > > On Feb 4 16:41, Kurt Franke wrote: > > > > Hi, > > > > is there any possiblity to list the cygwin processes of all users when > > logged in as an user which is member of the Adminstrators group in > > wind

Re: cygwin processes listing on windows vista

2008-02-08 Thread Kurt Franke
Christopher Faylor cygwin.com> writes: > > On Thu, Feb 07, 2008 at 12:43:47AM +0000, Kurt Franke wrote: > >Corinna Vinschen cygwin.com> writes: > > > >> > >> On Feb 4 16:41, Kurt Franke wrote: > >> > > >> > Hi, > >>

Re: Remove Cygwin Path for Called Batch Script

2008-03-26 Thread Kurt Franke
Scott Wegner hdfgroup.org> writes: > > Greg Chicares wrote: > > On 2008-03-25 13:30Z, Scott Wegner wrote: > >> I am trying to create a "wrapper" Cygwin bash script to add > >> functionality to an existing Windows batch script. In my Cygwin script, > >> I would like to call the batch file with

Re: How big are your /etc/passwd and /etc/group files?

2014-02-03 Thread Kurt Franke
Corinna Vinschen cygwin.com> writes: > > dbm style unix) database, and don't keep that in memory, unless you > > want a small LRU algorithm in there to keep a small fixed number. I > > bet the tiny delay later on a ls or other unix translation won't be > > very noticeable. > > This means, a rew

Re: Testers needed: New passwd/group handling in Cygwin

2014-02-14 Thread Kurt Franke
Corinna Vinschen cygwin.com> writes: > > Indeed. After the discussion yesterday I already realized that we will > > need some commandline tool to request passwd and group entries. > > > > There is a function called getpw on Linux which allows to fetch a passwd > > entry in the form it has in /e

Re: About "defunct" processes

2014-03-11 Thread Kurt Franke
Angelo Graziosi alice.it> writes: > $ ps >PIDPPIDPGID WINPID TTY UIDSTIME COMMAND > 2648 12648 2648 ? 1001 12:01:38 /usr/bin/mintty > 372426483724 2012 pty01001 12:01:38 /usr/bin/bash > 317637243176

Re: Security Settings for directories created in Cygwin (+ executable bit on files)

2014-08-12 Thread Kurt Franke
Sebastien Vauban writes: > Currently, whenever I create new files from Windows 8 executables (such > as Notepad), they're often flagged as "executable", even for text files! > > I've noticed that such a behavior happens when I create a new file in > a directory that has been made FROM CYGWIN (`m

Re: ssh + patch + $TMP

2010-02-19 Thread Kurt Franke
Charles Wilson cwilson.fastmail.fm> writes: > > I ran across an interesting "feature" of remote access today. I was > ssh'ed in to my cygwin computer, under my normal windows/cygwin account > name, and tried to run 'patch': > > $ patch -p1 -R --dry-run < ../some-patch.patch > patch: Can't

Re: ssh + patch + $TMP

2010-02-22 Thread Kurt Franke
Cyrille Lefevre laposte.net> writes: > > > Kurt Franke a écrit : > > I added a script > > > >000-ssh-session-env.sh > > > > to /etc/profile.d/ to fetch the SYSTEM environment and USER environment > > from the registry. > > Some

Re: ssh + patch + $TMP

2010-02-27 Thread Kurt Franke
Cyrille Lefevre laposte.net> writes: ... deleted ... > > may be you may post your code ? > > Regards, > > Cyrille Lefevre Cyrille, the script is appended in uuencoded form (due to some lines longer 80 characters). regards kf ===

Re: ssh + patch + $TMP

2010-03-08 Thread Kurt Franke
-Ursprüngliche Nachricht- Von: Cyrille Lefevre Gesendet: 06.03.2010 23:30:57 An: cygwin@cygwin.com,kurt-fra...@web.de Betreff: Re: ssh + patch + $TMP >Hi, > >the attached script only fork 5 processes (ps, grep, mount, find and >awk), and does not use any temporary files, so, it should no

Re: Using main() from a shared library in Cygwin 1.7

2010-05-14 Thread Kurt Franke
Ferenc Kovacs gmail.com> writes: ... > I have an application, which links with a shared library (fairly common > situation :)). This shared library provides the main() function. This > approach works well on Linux/Solaris machines, but on Cygwin 1.7 > I get the following link error: ... Hi Fer

Re: Permission Problem with crontab

2008-04-11 Thread Kurt Franke
Adi B Treiner (abt Account treiner.net> writes: > > Hi, > > Maybe you are determining something within my cygwin configuration which > causes the issue. > > The issue is, when I'm starting jobs from crontab which should transfer > backup archives from a local depot to a network depot, I'm det

Re: environment variables derived from TMPDIR

2008-08-05 Thread Kurt Franke
Hi Ralf, Ralf Fassel gmx.de> writes: > > In a SHELL script I prepare a temp file to pass to some non-cygwin > program: > > # TMPDIR is set to c:/temp outside of cygwin > # which translates to /cygdrive/c/temp inside cygwin > # prepare input > TMPFILE=$TMPDIR/foo.$$ > cat

Re: /usr/local/bin symbolic link disappears every time cyg setup is run

2014-09-04 Thread Kurt Franke
Larry Hall (Cygwin cygwin.com> writes: > > On 09/03/2014 05:19 PM, Dat Head wrote: > > I have a symlink from /usr/local/bin to /3TB-external/bin/CYGWIN to keep > > architecture independent bin files on an external drive for portability. > > > > every time I run cyg setup.exe it removes the symli

Re: Question about UAC and bash/cygwin

2012-08-16 Thread Kurt Franke
Lord Laraby gmail.com> writes: > > On Thu, Aug 16, 2012Corinna Vinschen > > On Aug 16 08:48, Lord Laraby wrote: > >> On Thu, Aug 16, 2012 Corinna Vinschen wrote: > >> > On Aug 16 07:06, Lord Laraby wrote: > >> > >> See, here where I said I want to know if the user is in fact > >> "elevated"? I'

Re: ls and completion very slow in root dir of a windows drive

2010-06-26 Thread Kurt Franke
Simon Brandner gmx.de> writes: > On Wed, 23 Jun 2010 11:29, Larry Hall wrote: ... > $ cygcheck -s -v -r > cygcheck.out > cygcheck: dump_sysinfo: GetVolumeInformation() for drive J: failed: 5 > cygcheck: dump_sysinfo: GetVolumeInformation() for drive Z: failed: 53 > J: is some special drive, for

privilege problem with permanent virtual drives defined as DOS devices

2010-12-29 Thread Kurt Franke
Hello, a privilege problem occures with permanent virtual drives defined as DOS devices. $> uname -a CYGWIN_NT-6.0 meow2 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin when have defined dos devices to access a particular path as a permanent virtual drive in each session like the following exam

Re: mtr compilation problem

2011-03-16 Thread Kurt Franke
Olivier Lefevre yahoo.com> writes: > Re. raw sockets and the need for elevated privilege, > can't you use the RunAs trick to get around it? Also on Unix/Linux a raw socket cannot be used by a normal user. But the ping program is setuid root and thus can be called by any user. Unfortunatly there

Re: Undo taking of ownership of LocalService & NetworkService file trees

2011-07-04 Thread Kurt Franke
Andrew Hancock gmail.com> writes: ... something deleted > > Would it suffice to use chown to force ownership back to the strings > "LOCAL SERVICE" and "NETWORK SERVICE"? Or is something deeper > required to ensure complete and proper ownership transferral? > Andrew just add the following entr

Re: ACL Hell

2015-07-17 Thread Kurt Franke
Sky Diver gmail.com> writes: ... > > Still, how can I get a normal behavior (i.e. normal Windows symlinks > as produces in winsymlinks:nativestrict mode) in a regular session w/o > elevation? > You could grant the necessary privilege to your account or to the group Users editrights -u sky -a