Samba share open for all to all
Solution 1
You're almost there. Your mount command is wrong though. It should be this
/mnt/path cifs rw,noperm 0 0
If you leave the user and group unspecified the underlying permissions get applied. The noperm tells the client not to try and "second guess" the access controls. Otherwise you'll find that the local apparent permissions get in the way.
Solution 2
maybe you need to use setfacl -Rm d:g::rwx /home/Filmy
or setfacl -Rm d:o:rwx /home/Filmy
And force directory mode = 0777
Related videos on Youtube
SHLelieveld
Linux Specialist in the making. Learning as much as I possibly can.
Updated on September 18, 2022Comments
-
SHLelieveld almost 2 years
I have a CentOS 6.5 server with a share that is and should be accessable for and from everyone. All content placed on that share should be accessable by everyone. So I created a share with this parameters in smb.conf file:
[global] security = share [VODSTOR] comment = VOD Storage Array path = /storage/internal browseable = yes force user = nobody force group = nobody writable = yes create mask = 0666 directory mask = 0777 public = yes
As far as I know, this should give everyone that access this share the ability to create files and folders. Folders with drwxrwxrwx rights, and files, -rw-rw-rw rights, right? this seems to work from a windows perspective... folders created there have the drwxrwxrwx permission bits. and files seems to be readable by all. But when I mount this folder on a Debian Linux machine folders are created with drwxr-xr-x, That I think is weird..
On the debian machinie I mount it via fstab with: \ \mnt\path\ cifs rw,user=nobody,pass=nobody 0 0
What is wrong there...? Can't seem to find useful info on the web so far.
-
SHLelieveld almost 10 yearsI'll give it a try
-
SHLelieveld almost 10 yearsIt still creates files and folders from a linux machine on this storage with wrong rights. folders with 755 files with 644, Anybody else have a solution?
-
Scyld de Fraud almost 10 yearsIt's not it looks like. Do an
ls
oncifs
mount point and on real directory path that samba exports. You will notice a difference. It all about mount.cifs options. But in real directory path there will be files and directories exactly thei are force in samba configuration. -
Krzysztof Stasiak about 7 years@user67588 How do you create dirs, with smb share, or directly on linux?