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
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html