File Manager | Files Permissions


#1

Hi,

I have managed to start os-js with PAM authentication, but when I use file manager and create or upload new file it creates it as root user and not as logged in user.

Also, if there is a file to which logged in user shouldn’t have permissions to read or write, the file manager allows it.

Is there a way to set os-js file manager to respect file permissions?

Best regards!


#2

Hi,

Are you running the server as root ? This is not recommended.

Currently there is no way to respect file permissions, but it’s a good idea!

Feel free to open an issue about this here: https://github.com/os-js/osjs-server


#3

Thanks!

Yes, I was running it as root. This was just for development purposes.

I opened the issue:


#4

Yup. Got a notification on it. Thanks! I’ll look at what’s required to get this working this weekend.


#5

OK, great, thanks!