Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Windows user file create with 666. How?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Windows user file create with 666. How? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Windows user file create with 666. How? - Jan. 7, '05, 1:21:12 PM   
heinz

 

Posts: 63
Joined: Oct. 21, '04,
Status: offline
How can I get a Windows User to create files in the Interix tree that would be read/writable by all (unix 666). The files, even text files, get created with read/write/execute for the user and no access for anyone else (not counting Administrator).

We're faking it at the moment with chmods in scripts but we alway miss some it seems. I'm hoping that there is a better way and that I've just been too dense to find it.

TIA - Heinz
Post #: 1
RE: Windows user file create with 666. How? - Jan. 7, '05, 1:45:53 PM   
ddalrymple

 

Posts: 2
Joined: Nov. 19, '04,
Status: offline
look at /etc/profile for the line
umask 022
change it to read
umask 000
umask -S

(in reply to heinz)
Post #: 2
RE: Windows user file create with 666. How? - Jan. 7, '05, 1:53:02 PM   
heinz

 

Posts: 63
Joined: Oct. 21, '04,
Status: offline
That works only for a unix user creating files, no?
I need a Windows User to create file with same umask but just in case it will, I've changed profile.lcl from umask 0 to umask 000 and have also added a umask 000 to /etc/profile

(in reply to ddalrymple)
Post #: 3
RE: Windows user file create with 666. How? - Jan. 7, '05, 2:12:08 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The Win32 process (or underlying API call) won't be creating the ACL with the Unix
ACE's needed for a correct Unix representation in the majority of the cases.
Interix will try to interpret/translate what is in the ACL to a "Unix-view" as
best as possible. There isn't the equivalent of a umask for Win32.
You can try setting the directories in question to "inherit" to see if that
will help. It's the check box on the security tab of the properties GUI you
can popup from File Explorer for a particular directory. No guarantees :-)

(in reply to heinz)
Post #: 4
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Windows user file create with 666. How? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031