Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant Add video that belongs to diffrent Owner or Group . #657

Open
brixxnatt opened this issue May 11, 2024 · 7 comments
Open

Cant Add video that belongs to diffrent Owner or Group . #657

brixxnatt opened this issue May 11, 2024 · 7 comments

Comments

@brixxnatt
Copy link

Cant Add video to the playlist that belongs to diffrent Owner or Group .
please how to fix this IMPORTANT

@brixxnatt brixxnatt added the bug Something isn't working label May 11, 2024
@LuizStSantos
Copy link

How to Change Directory Permissions in Linux for the Group Owners and Others
The command for changing directory permissions for group owners is similar, but add a “g” for group or “o” for users:

chmod g+w filename

chmod g-wx filename

chmod o+w filename

chmod o-rwx foldername

HOW TO GIVE PERMISSIONS

@JunioCalu
Copy link
Contributor

JunioCalu commented May 11, 2024

The ffplayout execution process is managed as a systemd service (daemon), and systemd seems to be linked to this issue of restricted access to specific folders, I believe. If you try to create a "video" folder for storing media files, and this videos folder is located within a common user's home directory such as "/home/youruser/video/clips", and then correctly and recursively set the access permissions for this "video" folder to ffpu as the owner and ffpu as the group, and subsequently designate this folder as the default media storage folder in the ffplayout settings, ffplayout will simply return an access permissions error and will be unable to access it. Interestingly, if the media storage folders are placed within the "/var" or "/home/ffpu/" directory with the proper file permissions set, they will be accessible by ffplayout. Therefore, even if you set the correct file permissions, there may still be access restrictions depending on the path of the media storage folder you wish to work with.

@brixxnatt
Copy link
Author

The Problem is that the videos is from another streaming platfrom, and i need to play always those files that is recorded in a folder , I need a way to make ffplayout read and play the root mp4 files what belongs for example to www-data or root

@jb-alvarado
Copy link
Member

jb-alvarado commented May 12, 2024

When the file permission is 644 reading and playing is not a problem. Only when you need to write it become one. Then the folder needs 777 or you let ffplayout run as different user, for example as www-data. Changing the user I would not recommend for everyone, because then you have to change all permissions, for config, log, sudo, etc. and maybe it makes updates difficult.

@brixxnatt
Copy link
Author

the files is chmodded 755 in the folder and belongs to www-data , how can i make this possible with ffplaout , what is the instruction i can use to make them usable
thank a lot for all the help

@jb-alvarado jb-alvarado removed the bug Something isn't working label May 12, 2024
@jb-alvarado
Copy link
Member

Is difficult to say, what the problem is. Are the files listed in frontend? I use all the time different file owners, but I don't use ffplayout for file upload, only for playing.

You could observe system logs and see where is the problem is. You can also create a folder directly in root like "/tv-media" and add all your files there and the folder you give 777. 755 for files is not needed, that means you give them a execution bit, normally you don't want this. Only folders and binaries/scripts needs a execution bit.

@brixxnatt
Copy link
Author

yes i can see them in the front end , but cant add them to playlist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants