From mboxrd@z Thu Jan 1 00:00:00 1970 From: kemas Subject: Re: cifs 1.50 and dosemu 1.4 great combination Date: Wed, 21 Nov 2007 11:04:18 +0700 Message-ID: <4743AE42.20700@ramayana.co.id> References: <70AFCDD624131E4F8E093DF91AA2CBA225B2D5@SERVER.STOKE01.local> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <70AFCDD624131E4F8E093DF91AA2CBA225B2D5@SERVER.STOKE01.local> Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Tarquin Adams Cc: linux-msdos@vger.kernel.org Tarquin Adams wrote: > Claudia, thank you for your response. > > I think I have now identified the cause of my problem. When a user creates a file in dosemu, the permissions are set as 'read and write' for that user but 'read only' for their group and all other users. Hence when my software tries to access a .pre file to append data to, it finds it is 'read only' for any user other than the first one to have run the software. > > How can I force all files created in dosemu to be 'read and write' for all users? > > Regards, > Tarquin Adams > > Hi Tarquin, if you want to force every file newly created by them to have access mode read write for user and group, you have to change the default umask. I use CentOS, so I've change in /etc/bashrc if [ $UID -gt 99 ] && [ "`id -gn`" = "`id -un`" ]; then umask 002 else umask 022 --> this one change to 002 fi