# innobackupex create files with defferent permissions

**URL:** <https://forums.percona.com/t/innobackupex-create-files-with-defferent-permissions/4747>\
**Category:** Percona XtraBackup\
**Created:** [February 25, 2016, 11:49pm UTC](https://forums.percona.com/t/innobackupex-create-files-with-defferent-permissions/4747 "2016-02-25T23:49:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sogl](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@Sogl](https://forums.percona.com/u/Sogl)\
**Post date:** [February 25, 2016, 11:49pm UTC](https://forums.percona.com/t/innobackupex-create-files-with-defferent-permissions/4747/1 "2016-02-25T23:49:17Z")

</div>

Hi!

I use NFS on my NAS fileserver for create backups with innobackupex from my MySQL 5.7 in Linux Ubuntu 14.04.

If I use mkdir or touch commands in Linux with mounted NAS:

1. folders has 750 permissions (read&write&execute by owner, read&execute by group)
2. files has 660 permissions (read&write by owner, read&write by group)  
It’s OK, but I need write for group in bash scripts.  
So I create folders with specific permissions:  
mkdir -m 770 -p /mnt/dir

But if I use innobackupex command with mounted folder:

1. folders has 750 permissions (read&write&execute by owner, read&execute by group)
2. files has 640 permissions (read&write by owner, read by group)  
It’s not OK, because I really need write by group!

Why files and folders from cli innobackupex creates with these permissions?  
How to fix it?

---

<div class="post-metadata">

**Author:** ![Sogl](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@Sogl](https://forums.percona.com/u/Sogl)\
**Post date:** [February 26, 2016, 1:16am UTC](https://forums.percona.com/t/innobackupex-create-files-with-defferent-permissions/4747/2 "2016-02-26T01:16:55Z")

</div>

I have the same situation as described here:  
[URL=“[https://www.linuxquestions.org/questions/linux-server-73/file-ownership-permissions-issues-on-nfs-fileshare-897122/](https://www.linuxquestions.org/questions/linux-server-73/file-ownership-permissions-issues-on-nfs-fileshare-897122/)”][https://www.linuxquestions.org/quest...eshare-897122/[/URL]](https://www.linuxquestions.org/quest...eshare-897122/%5B/URL%5D)

But I use ext4, not ext2.  
I’m still looking on NFS ACL solution… and still can’t understand why innobackup creates files with different permissions.

p.s. StackOverflow question created:  
[url][https://stackoverflow.com/questions/35646888/nfs-different-permissions-on-files-and-folders[/url]](https://stackoverflow.com/questions/35646888/nfs-different-permissions-on-files-and-folders%5B/url%5D)
