Mail Archives: cygwin/2001/11/26/15:25:46
Hi everyone. I am really in need of help with chmod/chown.
I have downloaded cygwin and installed it on 2000 box and NT box. I have set
CYGWIN=ntsec, and run "mkpasswd -l -g > passwd" and "mkpasswd -g > group" to set
up passwords and groups.
However, I am now trying to use chmod and chown to no avail - I get the message
chmod: changing permissions of `temp2.txt': Permission denied
whenever I try it. I am logged in as dhay, my default user and am part of the
Administrator group. If I do a "ls -l temp2.txt" I get:
-rwxrwxrwx 1 dhay Administ 2166 Nov 26 14:42 temp2.txt
What am I missing?! I have searched the archives and user guide to no avail.
PLEASE could someone help me?
Cheers,
Dave
/etc/passwd:
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Backup Operators:*:551:551:,S-1-5-32-551::
Guests:*:546:546:,S-1-5-32-546::
Power Users:*:547:547:,S-1-5-32-547::
Replicator:*:552:552:,S-1-5-32-552::
Users:*:545:545:,S-1-5-32-545::
Administrator:unused_by_nt/2000/xp:500:544:U-REDCOAT\Administrator,S-1-5-21-1715537622-1737311756-107160125-500:/home/Administrator:/bin/bash
dhay:unused_by_nt/2000/xp:1000:544:David
Hay,U-REDCOAT\dhay,S-1-5-21-1715537622-1737311756-107160125-1000:/home/dhay:/bin/bash
Guest:unused_by_nt/2000/xp:501:544:U-REDCOAT\Guest,S-1-5-21-1715537622-1737311756-107160125-501:/home/Guest:/bin/bash
IUSR_REDCOAT:unused_by_nt/2000/xp:1001:544:Internet Guest
Account,U-REDCOAT\IUSR_REDCOAT,S-1-5-21-1715537622-1737311756-107160125-1001:/home/IUSR_REDCOAT:/bin/bash
IWAM_REDCOAT:unused_by_nt/2000/xp:1002:544:Launch IIS Process
Account,U-REDCOAT\IWAM_REDCOAT,S-1-5-21-1715537622-1737311756-107160125-1002:/home/IWAM_REDCOAT:/bin/bash
nobody:unused_by_nt/2000/xp:1003:544:nobody,U-REDCOAT\nobody,S-1-5-21-1715537622-1737311756-107160125-1003:/home/nobody:/bin/bash
/etc/group:
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Backup Operators:*:551:551:,S-1-5-32-551::
Guests:*:546:546:,S-1-5-32-546::
Power Users:*:547:547:,S-1-5-32-547::
Replicator:*:552:552:,S-1-5-32-552::
Users:*:545:545:,S-1-5-32-545::
Diagnostic info:
C:\>cygcheck -s -r -v -h
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Nov 26 15:27:10 2001
Windows 2000 Professional Ver 5.0 build 2195 Service Pack 1
Path: C:\Perl\bin\
C:\WINNT\system32
C:\WINNT
C:\WINNT\System32\Wbem
c:\notes
c:\notes\data
c:\cygwin\bin
\\WASHER\BPDPVCS\PVCS\NT
SysDir: C:\WINNT\System32
WinDir: C:\WINNT
Here's some environment variables that may affect cygwin:
CYGWIN = `ntsec'
Path = `C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\notes;
c:\notes\data;c:\cygwin\bin;\\WASHER\BPDPVCS\PVCS\NT;'
Here's the rest of your environment variables:
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\dhay\Application Data'
CommonProgramFiles = `C:\Program Files\Common Files'
COMPUTERNAME = `REDCOAT'
ComSpec = `C:\WINNT\system32\cmd.exe'
HOMEDRIVE = `C:'
HOMEPATH = `\'
JAVA_HOME = `c:\jdk1.3.1'
LOGONSERVER = `\\REDCOAT'
NUMBER_OF_PROCESSORS = `1'
OS = `Windows_NT'
Os2LibPath = `C:\WINNT\system32\os2\dll;'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 4 Stepping 4, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0404'
ProgramFiles = `C:\Program Files'
PROMPT = `$P$G'
SystemDrive = `C:'
SystemRoot = `C:\WINNT'
TEMP = `C:\DOCUME~1\dhay\LOCALS~1\Temp'
TMP = `C:\DOCUME~1\dhay\LOCALS~1\Temp'
USERDOMAIN = `REDCOAT'
USERNAME = `dhay'
USERPROFILE = `C:\Documents and Settings\dhay'
windir = `C:\WINNT'
Scanning registry for keys with `Cygnus' in them...
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
(default) = `/cygdrive'
cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = `c:/cygwin'
flags = 0x0000000a
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
Listing available drives...
Drv Type Size Free Flags Name
a: fd N/A N/A
c: hd NTFS 39252Mb 16% CP CS UN PA FC
d: cd CDFS 0Mb -2147483548% CS Audio CD
e: cd CDFS 594Mb 100% CS UN diska
f: net NTFS 52061Mb 17% CP CS UN PA FC raid5-disk1
o: net ???? 17123Mb 79% CP R5-1
fd=floppy, hd=hard drive, cd=CD-ROM, net=Network Share
CP=Case Preserving, CS=Case Sensitive, UN=Unicode
PA=Persistent ACLS, FC=File Compression, VC=Volume Compression
Mount entries: these map POSIX directories to your NT drives.
-NT- -POSIX- -Type- -Flags-
. /cygdrive user binmode,noumount
c:/cygwin / system binmode
c:/cygwin/bin /usr/bin system binmode
c:/cygwin/lib /usr/lib system binmode
Looking to see where common programs can be found, if at all...
Found: c:\cygwin\bin\bash.exe
Found: c:\cygwin\bin\cat.exe
Found: c:\cygwin\bin\cpp.exe
Found: c:\cygwin\bin\find.exe
Found: c:\cygwin\bin\gcc.exe
Found: c:\cygwin\bin\gdb.exe
Found: c:\cygwin\bin\ld.exe
Found: c:\cygwin\bin\ls.exe
Found: .\make.exe
Found: c:\cygwin\bin\make.exe
Warning: .\make.exe hides c:\cygwin\bin\make.exe
Found: \make.exe
Warning: .\make.exe hides \make.exe
Found: c:\cygwin\bin\sh.exe
Looking for various Cygnus DLLs... (-v gives version info)
45k 2001/04/25 c:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
"cygform5.dll" v0.0 ts=2001/4/25 1:28
34k 2001/09/30 c:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
"cygform6.dll" v0.0 ts=2001/9/29 22:43
18k 2000/10/23 c:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm.dll" v0.0 ts=2000/10/22 22:26
17k 2001/06/28 c:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/6 23:34
21k 2001/06/28 c:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
"cyghistory5.dll" v0.0 ts=2001/6/27 22:27
21k 2001/06/20 c:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
"cygintl.dll" v0.0 ts=2001/6/20 13:09
81k 2001/10/20 c:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2001/10/19 20:25
35k 2001/10/20 c:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2001/10/19 20:25
119k 2001/06/06 c:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
"cygjpeg6b.dll" v0.0 ts=2001/6/6 0:27
26k 2001/04/25 c:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
"cygmenu5.dll" v0.0 ts=2001/4/25 1:27
19k 2001/09/30 c:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
"cygmenu6.dll" v0.0 ts=2001/9/29 22:43
156k 2001/04/25 c:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/4/25 1:29
175k 2001/09/30 c:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++6.dll" v0.0 ts=2001/9/29 22:45
226k 2001/04/25 c:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses5.dll" v0.0 ts=2001/4/25 1:17
201k 2001/09/30 c:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses6.dll" v0.0 ts=2001/9/29 22:42
15k 2001/04/25 c:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
"cygpanel5.dll" v0.0 ts=2001/4/25 1:27
12k 2001/09/30 c:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
"cygpanel6.dll" v0.0 ts=2001/9/29 22:43
108k 2001/06/28 c:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/6 23:34
135k 2001/06/28 c:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
"cygreadline5.dll" v0.0 ts=2001/6/27 22:27
390k 2001/10/20 c:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2001/10/19 20:24
5k 2001/10/20 c:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2001/10/20 c:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2001/10/19 20:24
623k 2001/10/20 c:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2001/10/19 20:25
49k 2001/02/03 c:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2001/2/3 15:35
714k 2001/11/14 c:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2001/11/13 23:16
Cygwin DLL version info:
DLL version: 1.3.5
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 47
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Tue Nov 13 23:16:25 EST 2001
CVS tag: cygwin-1-3-5-2
Shared id: cygwin1S3
Cygwin Package Information
Last downloaded files to: C:\Documents and Settings\dhay\Desktop
Last downloaded files from: ftp://planetmirror.com/pub/sourceware/cygwin
Package Version
ash 20011018-1
autoconf 2.52-1
automake 1.5-1
bash 2.05a-2
bash-src 2.05a-2
binutils 20011002-1
bison 1.28-1
bison-src 1.28-1
byacc 0.0
byacc-src 0.0
cron 3.0.1-5
crypt 1.0-1
ctags 5.0.1-1
ctags-src 5.0.1-1
cvs 1.11.0-1
cygrunsrv 0.94-2
cygrunsrv-src 0.94-2
cygwin 1.3.5-3
cygwin-src 1.3.5-3
dejagnu 20010117-1
diff 0.0
expect 20010117-1
fileutils 4.1-1
findutils 0.0
flex 2.5.4-1
flex-src 2.5.4-1
gcc 2.95.3-5
gcc-src 2.95.3-5
gdb 20010428-3
gdbm 1.8.0-3
gettext 0.10.38-2
gettext-src 0.10.38-2
gperf 0.0
gperf-src 0.0
grep 2.4.2-1
grep-src 2.4.2-1
gzip 1.3-2
indent 2.2.6-2
indent-src 2.2.6-2
inetutils 1.3.2-14
inetutils-src 1.3.2-14
jpeg 6b-4
libncurses5 5.2-1
libncurses6 5.2-2
login 1.4-2
m4 0.0
make 3.79.1-5
mingw 20010917-1
mingw-runtime 1.1-1
mingw-runtime-src 1.1-1
ncurses 5.2-7
perl 5.6.1-1
readline 4.2-3
rxvt 2.7.2-6
sed 3.02-1
sh-utils 2.0-2
sharutils 4.2.1-1
sharutils-src 4.2.1-1
tar 1.13.19-1
tcsh 6.10.00-3
termcap 20010825-1
terminfo 5.2-1
textutils 2.0.16-1
unzip 5.41-1
unzip-src 5.41-1
w32api 1.1-1
which 1.5-1
zip 2.3-1
zip-src 2.3-1
zlib 1.1.3-6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -