Re: dpkg available
Hmmm, how to fix it. Actually, that was why I pointed "you"
(readers of the message) to the chapter on security in the cygwin
Users Guide. I finally started to get a grasp on it after reading
it 3-4 times....
Anyway,
do you have ntsec set as part of CYGWIN?
(export CYGWIN=ntsec binmode ......)
Oh, where to start after that????
Are you running cygwin's inetd, and starting telnetd/rlogind
from there? And, are you configuring/starting them via the
'net start inetd' command? This is necessary to give login
the proper privileges to do the context switching to another
user. Make sure you run inetd --install-as-service, and reboot
after that. Also, make sure you go into NT's service manager,
and disable NT's telnet and ftp service.
/etc/passwd:
first off, generate a fresh /etc/passwd and /etc/group,
(mkpasswd -l > /etc/passwd; mkgroup -l > /etc/group) and
then see if you can
telnet/rlogin as userid administrator, using the adminstrator
password. Once you can do that, then you can munge
/etc/password and /etc/group to allow administrator to actually
masquerade as root.
Once you have gotten administrator to log on, then you can edit
/etc/passwd, and update the administrator row. Don't copy the
row and edit a copy. You have to make sure that the SID for
administrator is unique. Change the name to root. Change the
userid to 0, and the group id to 0.
Then edit /etc/group, and (this is what id) look for the group with
SID of S-1-5-32-544. Change it's name to root, and it's gid to 0.
Then try to telnet into your box, using root as the userid, and
the administrators password.
HTH, & YMMV, but it's what worked for me.
FOn Tue, 20 Nov 2001 17:37:43 +0000, Julien Gilles wrote:
>"Mark Paulus" <mpaulus78@earthlink.net> writes:
>
>> See, I told you I would forget something important.... Ignore the
>> dpkg-source. Just copy off the dpkg.exe and dpkg-deb.exe....
>>
>> As far as root, there are several options, depending upon your machine
>> architecture. On my winxp and/or Win2K machines, I actually manipulated
>> my administrator accounts in /etc/passwd & /etc/group to make them respond as
>> root, and then I telnet back to my box, and login as root. On my Win98/ME
>> box, I mangled my default account in /etc/passwd and /etc/group so that my
>> normal account was always identified as root. You have to create a /home/root
>> account, but I chose to soft-link /home/root to it's "parent" account (administrator,
>> default account).
>>
>> I wish I could help more, but I understand it enough to get my machine to accept/work
>> with it, but probably not enough to write a definitive guide.
>Should be useful... at least for me !
>
>I tried, but failed to be root. (I am on Win2K).
>
>Do I need to create a root user in Win2K ? Or just defining it in
>/etc/passwd & /etc/group is enough ?
>
>I create a /home/root.
>In /etc/passwd I copy he line defining Administrator, and just
>replace the first field by root, and the home location.
>Same thing in /etc/group, using the group Administrators as reference.
>
>I re-log under bash using the 'login' command, user root and - of
>course - the Administrator password, and :
>
>$ dpkg -i dpkg_1.9.18_w32.deb
>dpkg: requested operation requires superuser privilege
>
>:-(
>
>--
>Julien Gilles
>
>
>--
>To UNSUBSCRIBE, email to debian-win32-request@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: