Re: Re: Usage of dpkg under cygwin
Lucas Laurindo dos Santos <[email protected]> Mon, 15 Aug 2011 12:47:16 -0300
| Newsgroups | gmane.linux.debian.ports.windows |
|---|---|
| Message-ID | <CALUWa7sK=dEQ7T9uMszoGU-Beb=OLT1GvL=OOSwrtdC1oO0cKg@mail.gmail.com> |
I'm not aware of the whole discussion, but it seems that you are
having problems because dpkg requires=A0user id "0" (root) and it does
not exist under Cygwin.
If it only requires user id "0" ignoring group id, I=A0think=A0I've found
a workaround for this issue. I'm running latest version of Cygwin over
Windows XP.
You can create a root user by following these steps:
- Open with Notepad the file "/etc/passwd" (probably "C:\cygwin\etc\passwd"=
)
- Look for the line that contains your Username. Mine looks like this
lucas.santos:unused:14268:10513:U-FNCMP\lucas.santos,S-1-5-21-1645522=
237-1563255344-1804674531-4368:/home/lucas.santos:/bin/bash
- Copy and paste the entire line to the end of the file.
- Note that the 4 first words follow the pattern
"username:groupname:userid:groupid", in my case
"lucas.santos:unused:14268:10513"
- Replace 'username' and 'userid' with "root" and "0". Mine:
"root:unused:0:10513"
- Replace "/home/yourusername" with "/root".
- In the end it will look like this
root:unused:0:10513:U-FNCMP\lucas.santos,S-1-5-21-1645522237-1563255=
344-1804674531-4368:/root:/bin/bash
- Save.
It's done. Open Cygwin Shell and run 'su' and 'whoami' to test.
Please let me know if it works!