X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4E6D677B.6090503@cs.umass.edu> Date: Sun, 11 Sep 2011 21:59:23 -0400 From: Eliot Moss <moss AT cs DOT umass DOT edu> Reply-To: moss AT cs DOT umass DOT edu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: admin privileges when logging in by ssh? References: <rg0q679hpajl00ujv34jtmavsanhpb6n2t AT 4ax DOT com> <jcbq67lml6l3qfvm5ukb6fbtcliq0kb7ee AT 4ax DOT com> <a3mq67l0qniptng808d8perkarqpeupduc AT 4ax DOT com> In-Reply-To: <a3mq67l0qniptng808d8perkarqpeupduc@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 9/11/2011 9:07 PM, Andrew Schulman wrote: >>> When a user with administrative privileges logs in to sshd, it seems that the user is only granted >>> standard user privileges for that session. Is there a way around that? How can I get the admin >>> privileges for that session? >> >> Nevermind. I found the answer from Corinna way back in 2004: >> http://cygwin.com/ml/cygwin/2004-09/msg00087.html. "The bottom line is, if you need all the user's >> access rights use password authentication. If that doesn't help, you're out of luck." > > Continuing my conversation with myself... > > The above is half right. It seems that I have to log in by password > authentication, and then authenticate again to UAC, before I get my admin > rights. > > At the console that's how it works: I log in as the backup user, ask for admin > rights, authenticate again to UAC, and then, finally, can read or write any file > on the system. > > In sshd, I log in by password authentication, but now I'm stuck because I don't > know a command-line program to authenticate to UAC. Without that, I don't have > any admin rights. > > So: Is there a command-line program that will allow me to authenticate to UAC? > And do I have this right? If what you want to do is to run a particular program with elevated privileges (which I guess might include cmd.exe), then this web page may be of assistance: http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html Other pages I found make the same recommendation. Regards -- Eliot Moss -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple