cant able to edit files which are created in samba shared folder
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
cant able to edit files which are created in samba shared folder
Dear all,
i have created an folder inside my redhat server. and i shared it via samba and mapped that shared folders inside 5 windows machine. now the problem i am facing is, if any one create a file in that mapped drive the other user cant edit that same file. but he can read it. only for files not folders.
i gave full permission to that folders and subfolders
and in smb file i gave readable writable browsable permissions.
and i disabled se linux and firewall
still its showing the same. its annoying me. please give me a solution for solving this.
for the user which creates the file having read write and excute. rest all having read only permission...may i know how to change that permission to read write and execute for all users accessing that folder.
i gave 777 permission to that shared folder and its subfolder.
for the user which creates the file having read write and excute. rest all having read only permission...may i know how to change that permission to read write and execute for all users accessing that folder.
i gave 777 permission to that shared folder and its subfolder.
ie # chmod -R 777 /data
use create mask directive for your samba share and check it.
i.e
Code:
[share]
path = /your/path
.....
....
create mask = 0775 <- this will allow write permission to owner and group
Regards,
Last edited by sem007; 09-29-2010 at 04:43 AM.
Reason: typo
yea i add dis but still not working...wat to do now...the new files which are created under that shared folder is still in read only mode for others which accessing the same folder. i think still the new files not getting inheritance permissions... can u pls help me
I am having the same problem. I have a create mask = 0777 and it does not work.
What I have read indicates that the create mask only works if you are copying files from a windows machine to the Samba shared folder and it does not work when copying files from another linux machine or Mac OS X.
This is exactly what is happening for me, if I copy files from windows, it properly sets the permissions, but if I copy from my mac it does not.
Can anybody verify that? and if that is the case provide a method to apply the desired permissions when copying from a mac or linux.
Thanks, below is my complete smb.conf file
[global]
log file = /var/log/samba/samba.%m
workgroup = AYC
server string = Samba Server Version %v
netbios name = AYC01
encrypt passwords = yes
#security = share
passdb backend = tdbsam
cups options = raw
wins support = yes
hide files = /.DS_Store/Thumbs.db/
#============================ Share Definitions ==============================
[ayc]
comment = AYC File Server
path = /AYC01
public = yes
writable = yes
printable = no
valid users = +ayc
write list = +ayc
guest ok = no
# Permissions
#unix extensions = no
inherit permissions = yes
store dos attributes = yes
force group = ayc
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.