FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 2 users who use samba to access the server.
They both want to share each others files/directories.
The problem is that when one creates a file, for example, the other can only read it but not edit.( only talking about new files ).
How can I do a setting to make all files created by both of them to be
editable by both?
I see that when they create a file, it's owner is that user and the group fdoes not get the "samba-group" Is that the problem?
I have 2 users who use samba to access the server.
They both want to share each others files/directories.
The problem is that when one creates a file, for example, the other can only read it but not edit.( only talking about new files ).
How can I do a setting to make all files created by both of them to be
editable by both?
I see that when they create a file, it's owner is that user and the group fdoes not get the "samba-group" Is that the problem?
thanks.
rr77
That might be the problem, but that depends on what the permissions of the file are, check that with "chmod"
Make sure that both users are in the same group and that the file can be modified by everyone in that group.
i am talking only about NEW files that are created....
Already existing files have been chmod'd to 775 so that all users in the group 'samba-group' can rw.
but when a newly created file, the file is created as user="user1" and group="user1". No the common group "samba-group".
Originally posted by redrobin77 msybe I was not clear. sorry.
i am talking only about NEW files that are created....
Already existing files have been chmod'd to 775 so that all users in the group 'samba-group' can rw.
but when a newly created file, the file is created as user="user1" and group="user1". No the common group "samba-group".
that is the problem I think.
i could be wrong but i believe you need to edit the smb.conf under the particular directory.
add the lines
Code:
force create mode = "the permissions, like 0775" and force directory mode = 0775 or whatever.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.