|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
chmod, ownership, etcI have the following cygwin environment set up:
/etc/passwd hacked such that user tim has group 544 rather than 513 tim:unused_by_nt/2000/xp:1002:544:tim othy,U-olorin\tim,S-1-5-21-**etc**-1002:/home/tim:/bin/bash cygwin installed on a shared Windows directory (E:\utils\cygwin\), with the key Windows volumes made visible using links: ln -s /cygdrive/c /C ln -s /cygdrive/d /D ln -s /cygdrive/e /E ln -s /cygdrive/f /F ln -s /cygdrive/p /P ln -s /cygdrive/i /I ln -s /cygdrive/l /L ln -s /cygdrive/t /T /home/tim 'remapped' to my Windows area rm -rf /home/tim ln -s /F/users/tim /home/tim and to enable chmod'ing to work: export CYGWIN=smbntsec Problem is that the existing files in my Windows area have user ownership Administrators, group ownership None, e.g., -rwxrwxrwx 1 Administrators None 5513 Jul 20 2005 set_from_reg.awk* whereas new files created under cygwin have owner tim, group Administrators -rw-r--r-- 1 tim Administrators 0 Jan 25 08:51 rti Before I run through a recursive chown & chgrp to have the ownership set as desired (tim/Administrators not Administrators/None), is there something that I need to do to fix the ownership rights to save having to recursively set them. And will recursive chown & chgrp screw up the existing Windows ownership? Well I've had a quick play, creating files under Windows come up with ownership Administrators/None, files created under cygwin come up with ownership tim/Administrators, so I'd really like to have cygwin set up such that it reports tim/Administrators rather than Administrators/None even for files created under Windows - or perhaps the solution will be: What you need to set up in Windows such that ownership will be reported as tim/Administrators. Hope you can help... Oh, yes: Cygwin Configuration Diagnostics Current System Time: Sun Jan 25 08:31:56 2009 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4 Path: f:\users\tim\bin l:\lib\system E:\utils\cygwin\usr\local\bin E:\utils\cygwin\bin E:\utils\cygwin\bin c:\WINNT\system32 c:\WINNT Output from E:\utils\cygwin\bin\id.exe (nontsec) UID: 1002(tim) GID: 544(Administrators) 0(root) 513(None) 544(Administrators) 545(Users) Output from E:\utils\cygwin\bin\id.exe (ntsec) UID: 1002(tim) GID: 544(Administrators) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINNT\system32 WinDir: C:\WINNT USER = 'tim' PWD = '/home/tim/bin' CYGWIN = 'smbntsec' HOME = '/home/tim' MAKE_MODE = 'unix' Use '-r' to scan registry a: fd N/A N/A b: fd N/A N/A c: hd NTFS 10244Mb 47% CP CS UN PA FC d: hd NTFS 146083Mb 61% CP CS UN PA FC packages_user e: net NTFS 146083Mb 61% CP CS UN PA FC packages_user f: net NTFS 146083Mb 61% CP CS UN PA FC packages_user g: hd NTFS 8707Mb 25% CP CS UN PA FC swap h: hd NTFS 131069Mb 36% CP CS UN PA FC disk_1_ntfs_1 i: net NTFS 146083Mb 61% CP CS UN PA FC packages_user j: hd NTFS 131069Mb 24% CP CS UN PA FC disk_1_ntfs_2 k: hd NTFS 34396Mb 19% CP CS UN PA FC disk_1_ntfs_3 l: hd NTFS 255Mb 45% CP CS UN PA FC RAMdisk m: fd NTFS 3951Mb 14% CP CS UN PA FC pilgrim n: fd NTFS 15487Mb 80% CP CS UN PA FC nomad o: net NTFS 146083Mb 61% CP CS UN PA FC packages_user p: net NTFS 146083Mb 61% CP CS UN PA FC packages_user r: hd NTFS 255Mb 45% CP CS UN PA FC RAMdisk t: hd NTFS 255Mb 45% CP CS UN PA FC RAMdisk v: cd N/A N/A E:\utils\cygwin / system binmode E:\utils\cygwin/bin /usr/bin system binmode E:\utils\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive -------------------------------- snippage -------------------------------- 978k 2008/11/10 l:\lib\system\cygiconv-2.dll 22k 2001/12/13 l:\lib\system\cygintl-1.dll 37k 2003/08/10 l:\lib\system\cygintl-2.dll 31k 2005/11/20 l:\lib\system\cygintl-3.dll 155k 2008/11/29 l:\lib\system\cygreadline6.dll 1829k 2008/06/12 l:\lib\system\cygwin1.dll Cygwin DLL version info: DLL version: 1.5.25 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 156 Shared data: 4 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: Thu Jun 12 19:34:46 CEST 2008 CVS tag: cr-0x5f1 Shared id: cygwin1S4 -------------------------------- mega-snippage -------------------------------- |
|
|
Re: chmod, ownership, etcOn Jan 25 01:04, timcygwin wrote:
> Problem is that the existing files in my Windows area have user ownership > Administrators, group ownership None, e.g., > -rwxrwxrwx 1 Administrators None 5513 Jul 20 2005 > set_from_reg.awk* > > whereas new files created under cygwin have owner tim, group Administrators > -rw-r--r-- 1 tim Administrators 0 Jan 25 08:51 rti > > Before I run through a recursive chown & chgrp to have the ownership set as > desired (tim/Administrators not Administrators/None), is there something > that I need to do to fix the ownership rights to save having to recursively > set them. And will recursive chown & chgrp screw up the existing Windows > ownership? Don't do that outside your user's directory or outside the Cygwin dir. Changing the default Windows permissions on C:\WINNT or C:\Program Files is not a good idea. You might screw up your system. > Well I've had a quick play, creating files under Windows come up with > ownership Administrators/None, files created under cygwin come up with > ownership tim/Administrators, so I'd really like to have cygwin set up such > that it reports tim/Administrators rather than Administrators/None even for > files created under Windows Cygwin reports reality. If the file is owned by the Administrators group and the group None, it reports that. > - or perhaps the solution will be: What you need > to set up in Windows such that ownership will be reported as > tim/Administrators. That's not possible. First of all, if your account is an administrative account (one which is member of the Administrators group), the default ownership of all files you create is the Administrators group. This "feature" of NT4 and Win2K has been changed with Windows XP which sets the owner of a file to the creator account by default, unless a Local Security Policy setting ("System objects: Default owner for objects created by members of the Administrators group") is switched back to the former NT4/2K behaviour. Second, if your machine is not part of a domain, the group setting for all files created by all non-system user accounts on the machine will be None. There's no Local Security Policy setting or registry entry in Windows to change the default group ownership of None in non-domain machines. None is not a fake name, it's the actual name of an actual group on your machine. See the file permission section in the Cygwin user's guide here: http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/ |
|
|
Re: chmod, ownership, etcThank you.
|
| Free embeddable forum powered by Nabble | Forum Help |