Excel files cannot be open by other users in shared linux folder

When I created Word and Excel files using Microsoft Office 2010 in Windows and then copied to the shared folder in Linux, the other users cannot open them (the error msg was "Access denied. Contact your administrator.") However, after i changed the file mode in linux with "chmod 660 filename", the others can open those Word/Excel files from their computers. The question is how can I create Word/Excel files that can be copied to linux shared folder and allow everyone to open those files?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hamed NasrRetired IT ProfessionalCommented:
Check permissions in shared folder part for smb.conf configuration file.

What is the current value for "force create mode = ?"

force create mode = 0666

Or you may try the value, 660, you manually checked and worked for you.

What Linux are you using?
In Ubuntu it is working with me, but Red Hat is giving Access is denied.
Now I am having an issue and working on.
Joseph GanSystem AdminCommented:
Ensure "rw" in the /etc/exports file in Linux,

cat /etc/exports
weikiiroAuthor Commented:
We are using Red Hat
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

weikiiroAuthor Commented:
Thanks for looking into the "Access denied" issue when Word/Excel files created in MS Office 2010 were opened in linux. To provide more info, after those Word/excel files were changed status from "-rw-------" to "-rw-rw---" using "chmod 660" in linux, I can copy them back to Windows, do additional edits, and then copy them to linux again -- in such case others can open them. The problem is I want create a word file that can be opened by others directly (without do chmod in linux).
Joseph GanSystem AdminCommented:
Having a look the "umask" on Linux, change it to 0117 and test it.
Hamed NasrRetired IT ProfessionalCommented:
Try this:
After revisiting the redhat documentation, I managed to access the Linux shared file from windows.

chcon -R -t smbd_tmp_t  /sharedFolder/

Open in new window

This allows any file created in sharedFolder to take the default SELinux type smbd_tmp_t.

I found this by creating a file u.txt in sharedFolder from Linux (accessed from Linux but denied from windows), and created.txt file in sharedFolder from windows (accessed from windows and Linux).
Issued the command:
ls -Z /sharedFolder

Open in new window

Gave me the context type smbd_tmp_t for w.txt and a different one for u.txt
Modified the context type of sharedFolder to smbd_tmp_t solved the issue.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.