Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Once openSSH/Cygwin is installed and working on Windows 7, it seems like any user you use to ssh into the Windows 7 box takes on plain user privileges. That is, the user cannot execute privileged commands even if the user is an Administrator.

Is there a way for a Cygwin SSH user to acquire elevated user privileges? (e.g. "sudo") Or is that a limitation of Cygwin as it stands right now? (e.g. like Cygwin's ping)

Relevant technical info:

  • Windows 7 (64-bit) Home Premium
  • Cygwin 1.7.x
share|improve this question
    
Is this not because cygwin itself runs as a standard user? –  user3914 Jul 28 '10 at 2:59

2 Answers 2

If you log in to sshd with password authentication, then you authenticate simultaneously to Windows and should be granted your account's administrative rights. If you log in with public key authentication, then sshd makes an end run around Windows authentication, and you'll only ever have standard user rights.

For more information, see Corinna's answer to this question from 2004. See also the recent thread on the Cygwin mailing list about admin rights over ssh.

share|improve this answer

Chech freeSSHd, I think it will allow you an Administrator access.
But you will not be logging in through Cygwin here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.