Mail Archives: cygwin/2006/11/29/12:51:07
Larry Hall (Cygwin <reply-to-list-only-lh <at> cygwin.com> writes:
>
> Specify the user name and password to "net use"? If this is not it, we
> need 'cygcheck -srv' output, your '/etc/passwd' and '/etc/group' entries for
> 'root', and whether you ssh in with password or public key authentication.
> The former should work. The latter requires the user name and password
> supplied to "net use" as I mentioned above.
>
Thanks Larry, i tried it with a passoword/userid (see below) but no joy.
here's the cygcheck -srv output etc:
$ id
uid=1006(root) gid=513(None) groups=0(root),513(None),544(Administrators),545
(Users)
root AT brandy ~
$ df
df: `/svctools': Permission denied
Filesystem 1K-blocks Used Available Use% Mounted on
C:\cygwin\bin 78148160 11758728 66389432 16% /usr/bin
C:\cygwin\lib 78148160 11758728 66389432 16% /usr/lib
C:\cygwin 78148160 11758728 66389432 16% /
c: 78148160 11758728 66389432 16% /cygdrive/c
d: 389140 389140 0 100% /cygdrive/d
root AT brandy ~
$ net use s: /delete
The network connection could not be found.
net use s: \\\\beech\\svctools xxxxx /USER:root
The command completed successfully.
df: `/svctools': Permission denied
Filesystem 1K-blocks Used Available Use% Mounted on
C:\cygwin\bin 78148160 11758728 66389432 16% /usr/bin
C:\cygwin\lib 78148160 11758728 66389432 16% /usr/lib
C:\cygwin 78148160 11758728 66389432 16% /
c: 78148160 11758728 66389432 16% /cygdrive/c
d: 389140 389140 0 100% /cygdrive/d
df: `/cygdrive/s': Permission denied
mount
\\beech\svctools on /svctools type system (binmode,cygexec)
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
s: on /cygdrive/s type system (binmode,noumount)
cygcheck -srv
Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1006(root) GID: 513(None)
0(root) 513(None) 544(Administrators) 545(Users)
Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1006(root) GID: 513(None)
0(root) 513(None) 544(Administrators) 545(Users)
SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS
USER = 'root'
PWD = '/home/root'
CYGWIN = 'binmode tty ntsec'
HOME = '/home/root'
MAKE_MODE = 'unix'
HOMEPATH = '\cygwin\home\root'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
HOSTNAME = 'brandy'
TERM = 'hft'
SHELL = '/bin/bash'
PROCESSOR_IDENTIFIER = 'AMD64 Family 15 Model 33 Stepping 2, AuthenticAMD'
WINDIR = 'C:\WINDOWS'
SSH_CLIENT = '9.71.45.65 34281 22'
TEXDOCVIEW_txt = 'cygstart %s'
TEXDOCVIEW_dvi = 'cygstart %s'
QTDIR = '/usr/lib/qt3'
OLDPWD = '/home/root'
USERDOMAIN = 'BRANDY'
SSH_TTY = '/dev/tty2'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
TEMP = '/cygdrive/c/DOCUME~1/SSHD_S~1.BRA/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
USERNAME = 'sshd_server'
TEXDOCVIEW_pdf = 'cygstart %s'
PROCESSOR_LEVEL = '15'
HOST_TOOLS_ROOT = '/cygdrive/s/hosts/windows/bin'
MAIL = '/var/spool/mail/root'
SYSTEMDRIVE = 'C:'
TEXDOCVIEW_html = 'cygstart %s'
USERPROFILE = 'C:\Documents and Settings\root.BRANDY'
QMAKESPEC = '/usr/lib/qt3/mkspecs/cygwin-g++'
TZ = 'GMTST0GMTDT-1,M3.5.0/1,M10.5.0/2'
PERLLIB = '/cygdrive/s/perl/lib'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\BRANDY'
PROCESSOR_ARCHITECTURE = 'x86'
USE_SVCTOOLS_DIR = 'yes'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
LOGNAME = 'root'
TMP = '/cygdrive/c/DOCUME~1/SSHD_S~1.BRA/LOCALS~1/Temp'
SYSTEMROOT = 'C:\WINDOWS'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '2102'
PKG_CONFIG_PATH = '/usr/X11R6/lib/pkgconfig'
TEXDOCVIEW_ps = 'cygstart %s'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files (x86)'
cygcheck: dump_sysinfo: GetVolumeInformation() for drive S: failed: 5
NUMBER_OF_PROCESSORS = '4'
COMPUTERNAME = 'BRANDY'
_ = '/usr/bin/cygcheck'
POSIXLY_CORRECT = '1'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
(default) = 0x00000400
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
(default) = '/cygdrive'
cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = 'C:\cygwin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/svctools
(default) = '\\beech\svctools'
flags = 0x0000004a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = 'C:\cygwin/bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = 'C:\cygwin/lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
c: hd NTFS 76316Mb 16% CP CS UN PA FC
d: cd CDFS 380Mb 100% CS UN CD
s: net 1216Mb 100%
C:\cygwin / system binmode
\\beech\svctools /svctools system binmode,cygexec
C:\cygwin/bin /usr/bin system binmode
C:\cygwin/lib /usr/lib system binmode
. /cygdrive system binmode,cygdrive
Contents of /etc/passwd
cat /etc/passwd
SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-BRANDY\Administrator,S-1-5-21-
449133008-941855031-18720091-500:/home/Administrator:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-BRANDY\Guest,S-1-5-21-449133008-941855031-
18720091-501:/home/Guest:/bin/bash
root:unused_by_nt/2000/xp:1006:513:U-BRANDY\root,S-1-5-21-449133008-941855031-
18720091-1006:/home/root:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1001:513:CN=Microsoft
Corporation,L=Redmond,S=Washington,C=US,U-BRANDY\SUPPORT_388945a0,S-1-5-21-
449133008-941855031-18720091-1001:/home/SUPPORT_388945a0:/bin/bash
sshd:unused_by_nt/2000/xp:1007:513:sshd privsep,U-BRANDY\sshd,S-1-5-21-
449133008-941855031-18720091-1007:/var/empty:/bin/false
sshd_server:unused_by_nt/2000/xp:1008:513:sshd server account,U-
BRANDY\sshd_server,S-1-5-21-449133008-941855031-18720091-
1008:/var/empty:/bin/false
cat /etc/group
root:S-1-5-32-544:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-449133008-941855031-18720091-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Distributed COM Users:S-1-5-32-562:562:
Guests:S-1-5-32-546:546:
Network Configuration Operators:S-1-5-32-556:556:
Performance Log Users:S-1-5-32-559:559:
Performance Monitor Users:S-1-5-32-558:558:
Power Users:S-1-5-32-547:547:
Print Operators:S-1-5-32-550:550:
Remote Desktop Users:S-1-5-32-555:555:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:
HelpServicesGroup:S-1-5-21-449133008-941855031-18720091-1000:1000:
TelnetClients:S-1-5-21-449133008-941855031-18720091-1002:1002:
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -