folder and file permissions

Asked by Ivo Ivanov

Hello,
I have 4 pc running Ubuntu 11.04, everyone of them has a shared folder wich is visible and have rw permissions. The problem is that when a file is created despite the rw permissions for all kind of users and groups the file i have created is read only to all except the owner. For example: I create a LibreOffice file and save it in the folder, and when another user on another pc runnign Ubuntu or Win opens the file - the file is read-only... Question: How to set the folder and file permissions so that everytime a new file is created it is -rw-rw-rw- without changing it manualy everytime? I've applyed -rw-rw-rw- to all existing files, using the properties of the folder, but the new files do not accept those changes.

p.s. the problem exist not only with LibreOffice

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
; create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
; directory mask = 0700

If you edit those sections in /etc/samba/smb.conf it should change the ownership of the files and folders created to have a forced mask which can allow ALL users access. Something like 0755 although not hugely secure, will do it

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#2

Is the problem that the new files won't accept the changes, or that the new permissions are set but seem not to take effect?

If the latter, then you'll have to change your Windows file sharing settings, as actionparsnip suggested in the last paragraph of his post. However, if the way you share your files is in Sharing Options in the Nautilus file browser, then rather than manually editing smb.conf, you can simply set it to be modifiable by other users in Sharing Options for the shared folder.

Revision history for this message
Ivo Ivanov (penko-talasuma-z) said :
#3

It did not worked by changing samba settings. The new files wont't accept the changes. Even accessing them from another pc with ubuntu os the attrib is set to read-only.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#4

How are you configuring Samba? How did you set up the shares originally?

Can you help with this problem?

Provide an answer of your own, or ask Ivo Ivanov for more information if necessary.

To post a message you must log in.