No read/write premisions on new folders (samba)

GaMMaLiKKeR

I have a share using samba called share. If I do Chmod +R 777 folder/* the files already in the folder get the rights but if I copy folders from my other PC using the samba share I get a no rights error. I can get it to work if I do Chmod +R 777 folder/* again but I have to do that for every folder. Is there a way Ubuntu does this automatically every time a new folder is added?

Stormlord

You have to edit /etc/samba/smb.conf. Open it as root, go to the end, where the shared folder you want to configure is placed and add the parameter

inherit permissions = yes

at the end of the specific folder section. Then save the file and either reboot your system or restart samba services manually by typing

sudo service smbd restart
sudo service nmbd restart

in a terminal window.

This tells samba to give all parent folder permissions to each newly created item automatically. If, for example, the parent folder uses 777, all newly created files will be given the same permissions.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to share encrypted folders with Samba

From Dev

Samba File Server hide folders for certain users

From Dev

Unable to edit files and folders over Samba

From Dev

Can't connect to Samba shared folders

From Dev

Samba shows folders which are not accessible for a user

From Dev

Linking samba shared folders onto FSTAB linux

From Dev

Grunt - Watch new folders

From Dev

Creating NEW files and folders

From Dev

batch file to rename folders creates new folders

From Dev

Why is Samba not adding a new user with "samba-tool"?

From Dev

Why is Samba not adding a new user with "samba-tool"?

From Dev

Share Folders on OpenSUSE 13.1 Using SAMBA (Share Not Working)?

From Dev

Files/Folders get weird names and become inaccessible on Samba share

From Dev

Can't get Raspbmc to browse samba shared folders

From Dev

Samba is not sharing NTFS filesystem folders. (Kubuntu 20.04)

From Dev

Missing folders in windows network share mounted using samba

From Dev

Ubuntu shared folders using samba not getting listed in windows 7

From Dev

Dolphin displaying samba files as folders on Kubuntu Focal Fossa

From Dev

Missing folders in windows network share mounted using samba

From Dev

R create new folders in a loop

From Dev

Moving files/folders to new structure

From Dev

All folders open in new windows

From Dev

Cannot add new files to mounted Samba NAS

From Dev

Move images from sub-folders into new sub-folders

From Dev

Copy sequential files from multiple folders into new folders

From Dev

move x amount of files to new folders

From Dev

Getting eclipse to recognise new source folders

From Dev

Moving read mail into new folders in outlook

From Dev

Create folders when creating a new WPF project

Related Related

HotTag

Archive