RE: cygwin mentors? Was: bash and the suid bit
Hi Richard, a short answer pretty busy, hopes its enough to get you started... > Tell me about it, Justin! > No, Nobody mentioned that! > How does it work? Is it part of the OS or an add-on? It's a Win2000 native service , look in services Description : "Enables starting processes under alternate credentials" Nearest thing to sudo (ala Linux) I know of > Also, can it be ported/made to work on NT? Might need to use the CreateProcessWithLogonW http://msdn.microsoft.com/library/en-us/dnwxp/html/appsec.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/pro thred_2gl3.asp > If it only works on W2000, it might not be good enough for my needs... > Only works on Win2000 AFAIK , although might in XP etc. http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q294676&; http://www.microsoft.com/windows2000/en/server/help/windows_security_runas.h tm Actually one of those articles mentions XP so. > Thanks for your reply, > Richard > > -- > Richard Troy, Chief Scientist > Science Tools Corporation > [EMAIL PROTECTED], 510-567-9957, http://ScienceTools.com/ > > On Thu, 18 Apr 2002, Justin MacCarthy wrote: > > > Date: Thu, 18 Apr 2002 15:28:25 +0100 > > From: Justin MacCarthy <[EMAIL PROTECTED]> > > To: Richard Troy <[EMAIL PROTECTED]> > > Subject: RE: cygwin mentors? Was: bash and the suid bit > > > > I haven't followed this tread, but I had a quick look , did > anyone mention > > the RunAs service in WIn2000? > > > > Might solve your problem ??? > > > > Justin > > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: bash 2.05a-3: option to allow drive letter prefixes for completion?
Whats wrong with mount c: /c etc. and $ ls -d /c/win* /c/win2000 /c/wincvs /c/winzip.log Justin > Chris Metcalf > Currently, if you use completion on a path with a drive letter (e.g. > "ls -d c:/win"), bash considers the drive letter to be unrelated > syntax and expands out of the mounted root instead (e.g. c:/cygwin). > This is quite understandable and defensible, but it would be nice to > allow drive letters to be considered part of the path name if the > user so chooses. In defense of this option, I submit: -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
bash script Q
Hi, anyone point me to the best bash script option for checking the first 2 characters of all the files in a directory? logic of the script is for each file in directory test if the first 2 chars are "%!" print Filename valid if not print Filename not valid Does magic do something like this ? Thanks Justin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Running a bash script using "at" on an NT box
Larry, Spot on, thanks Justin > The first most > likely problem is that your mount table is not system-wide. Start there. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Running a bash script using "at" on an NT box
Hi, I'm trying to schedule a bash script to run using "at" on a NT4 box The script is located in /d/test.sh test.sh is very simple just to test it If i type d:\Runscript /d/test.sh then it works fine. However I've tried at 16:00 /every:M,T,W,Th,F,S,Su "cmd /c d:\RunScript.bat /d/test.sh" It produces an error: The At6.job command failed to start due to the following error: The system cannot find the file specified. also tried : at 16:00 /every:M,T,W,Th,F,S,Su cmd /c "d:\RunScript /d/test.sh" produces nothing , no error , no d:\test.txt Below are the files I'm using... Any ideas ??? Thanks Justin test.sh -- echo test >> /d/test.txt Runscript.bat - @echo off C: chdir \cygwin\bin bash --login -o vi %1 %2 %3 %4 %5 %6 %7 %8 %9 chdir c:\ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/