This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cannot change file permission with either chmod or setfacl


Hello,

I'm trying to change the permission of a file from 644 to 600. I've tried chmod and setfacl without success. Can someone please help me with this? Details follow:

Platform is XP.

$ uname -srv
CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34

$ ls -l foo
-rw-r--r-- 0 xotrader01 Users 4 Sep  5 18:05 foo

$ chmod 600 foo

$ ls -l foo
-rw-r--r-- 0 xotrader01 Users 4 Sep  5 18:05 foo

$ getfacl foo
# file: foo
# owner: xotrader01
# group: Users
user::rw-
group::r--
other:r--
mask:rwx

$ setfacl -m g:Users:--- foo

$ getfacl foo
# file: foo
# owner: xotrader01
# group: Users
user::rw-
group::r--
other:r--
mask:rwx

$ cat /etc/group
SYSTEM:S-1-5-18:18:
None:S-1-5-21-2025429265-1682526488-682003330-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Network Configuration Operators:S-1-5-32-556:556:
Power Users:S-1-5-32-547:547:
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-2025429265-1682526488-682003330-1001:1001:
$U21000-QK62V23SFN9J:S-1-5-21-2512144311-4245432656-3813863829-1118:11118:
DnsUpdateProxy:S-1-5-21-2512144311-4245432656-3813863829-1142:11142:
Domain Admins:S-1-5-21-2512144311-4245432656-3813863829-512:10512:
Domain Computers:S-1-5-21-2512144311-4245432656-3813863829-515:10515:
Domain Controllers:S-1-5-21-2512144311-4245432656-3813863829-516:10516:
Domain Guests:S-1-5-21-2512144311-4245432656-3813863829-514:10514:
Domain Users:S-1-5-21-2512144311-4245432656-3813863829-513:10513:
Enterprise Admins:S-1-5-21-2512144311-4245432656-3813863829-519:10519:
Exchange Organization Administrators:S-1-5-21-2512144311-4245432656-3813863829-1
114:11114:
Exchange Public Folder Administrators:S-1-5-21-2512144311-4245432656-3813863829-
1202:11202:
Exchange Recipient Administrators:S-1-5-21-2512144311-4245432656-3813863829-1115
:11115:
Exchange Servers:S-1-5-21-2512144311-4245432656-3813863829-1113:11113:
Exchange View-Only Administrators:S-1-5-21-2512144311-4245432656-3813863829-1116
:11116:
ExchangeLegacyInterop:S-1-5-21-2512144311-4245432656-3813863829-1117:11117:
Group Policy Creator Owners:S-1-5-21-2512144311-4245432656-3813863829-520:10520:

Schema Admins:S-1-5-21-2512144311-4245432656-3813863829-518:10518:

$ cat /etc/passwd
SYSTEM:*:18:544:,S-1-5-18::
LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19::
NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-T_ROOM_MON\Administrator,S-1-5-21-2
025429265-1682526488-682003330-500:/home/Administrator:/bin/bash
ASPNET:unused_by_nt/2000/xp:1004:513:ASP.NET Machine Account,U-T_ROOM_MON\ASPNET
,S-1-5-21-2025429265-1682526488-682003330-1004:/home/ASPNET:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-T_ROOM_MON\Guest,S-1-5-21-2025429265-168252
6488-682003330-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1000:513:Remote Desktop Help Assistant Accoun
t,U-T_ROOM_MON\HelpAssistant,S-1-5-21-2025429265-1682526488-682003330-1000:/home
/HelpAssistant:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft Corporation,L=Redmon
d,S=Washington,C=US,U-T_ROOM_MON\SUPPORT_388945a0,S-1-5-21-2025429265-1682526488
-682003330-1002:/home/SUPPORT_388945a0:/bin/bash
User:unused_by_nt/2000/xp:1003:513:U-T_ROOM_MON\User,S-1-5-21-2025429265-1682526
488-682003330-1003:/home/User:/bin/bash
xotrader01:unused_by_nt/2000/xp:11195:10545:xotrader01,U-XOTRADING\xotrader01,S-
1-5-21-2512144311-4245432656-3813863829-1195:/cygdrive/h:/bin/bash
sshd:unused_by_nt/2000/xp:1005:513:sshd privsep,U-T_ROOM_MON\sshd,S-1-5-21-20254
29265-1682526488-682003330-1005:/var/empty:/bin/false


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]