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?
weikiiroAsked:
Who is Participating?
 
hnasrCommented:
Try this:
After revisiting the redhat documentation, I managed to access the Linux shared file from windows.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/

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.
0
 
hnasrCommented:
Check permissions in shared folder part for smb.conf configuration file.

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

Try:
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.
0
 
Joseph GanSystem AdminCommented:
Ensure "rw" in the /etc/exports file in Linux,

cat /etc/exports
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
weikiiroAuthor Commented:
We are using Red Hat
0
 
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).
0
 
Joseph GanSystem AdminCommented:
Having a look the "umask" on Linux, change it to 0117 and test it.
0
 
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.