Jump to content

how to set fixed owner and permissions for new created files


Recommended Posts

horstepipe
Posted (edited)

hey

one of my issues I'm having with the library monitor is that sometimes I need to make a chown and chmod on my library folders to give Emby server the privileges to delete the files via web gui. When changing these params the library monitor is being triggered, which triggers the new content notification for the "changed" files, again.

I'm pretty sure there's a way to tell Ubuntu to give new created files and folders a specific owner, group and permissions with the umask command, but I'm not sure how to exactly do this and don't want to mess everything up.

So let's say my library folders are

/Emby/Movies/

/Emby/Shows/

 

and I want all files and folders being created within these folders to have the owner root, the group emby, and the permissions 770.

A cronjob is not possible as I said this would modify the files AFTER they were being created and trigger the Emby library monitor.

 

Thank you

Edited by horstepipe
mastrmind11
Posted

hey

one of my issues I'm having with the library monitor is that sometimes I need to make a chown and chmod on my library folders to give Emby server the privileges to delete the files via web gui. When changing these params the library monitor is being triggered, which triggers the new content notification for the "changed" files, again.

I'm pretty sure there's a way to tell Ubuntu to give new created files and folders a specific owner, group and permissions with the umask command, but I'm not sure how to exactly do this and don't want to mess everything up.

So let's say my library folders are

/Emby/Movies/

/Emby/Shows/

 

and I want all files and folders being created within these folders to have the owner root, the group emby, and the permissions 770.

A cronjob is not possible as I said this would modify the files AFTER they were being created and trigger the Emby library monitor.

 

Thank you

https://unix.stackexchange.com/questions/115631/getting-new-files-to-inherit-group-permissions-on-linux

  • Like 1
Posted

Great info, thanks !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...