Subject Re: [firebird-support] Linux samba rights
Author Milan Babuskov
Sándor Tamás (HostWare Kft.) wrote:
> fails on some linux environment.


> The bad thing, that when FB creates the backup file, it creates with root
> rights (we tried to change the FB starting script, so the user would be
> user1, but finally it always starts with root privileges).

If you are running Classic and not using hostname:/path but just /path
you would solve that problem.

If that is not an option, you can set the sticky bit on the directory
where you store backups, and force all files to have same owner as the
directory itself. I don't recall the correct flag, but something like:

chmod 6770

on directory should do it.

> But when our
> application tries to pack it on Windows, it tries to read it with user1
> rights trough samba

You can set up rights for samba users independently. AFAIK, you can have
directory and files owned by root, read by any samba user. However,
that's probably not a good idea regarding security.

> Any idea how to make this works? This is a very important part of our
> application, it HAS to work.

I don't understand some things: you create backup on Linux and then you
ZIP it from your (Windows?) application and then you try to copy it from
Linux to Windows? I'd really like to know which is that ZIP library that
can pack the remote Linux file from Windows machine?

If you're, however, zipping it up on Linux, then why not just "chmod" or
"chown" it afterwards and get the job done.

Milan Babuskov