Subject | Re: [firebird-support] Linux samba rights |
---|---|
Author | Milan Babuskov |
Post date | 2006-06-19T17:01:40Z |
Sándor Tamás (HostWare Kft.) wrote:
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.
directory and files owned by root, read by any samba user. However,
that's probably not a good idea regarding security.
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
http://swoes.blogspot.com/
http://www.flamerobin.org
> fails on some linux environment.Some?
> The bad thing, that when FB creates the backup file, it creates with rootIf you are running Classic and not using hostname:/path but just /path
> rights (we tried to change the FB starting script, so the user would be
> user1, but finally it always starts with root privileges).
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 ourYou can set up rights for samba users independently. AFAIK, you can have
> application tries to pack it on Windows, it tries to read it with user1
> rights trough samba
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 ourI don't understand some things: you create backup on Linux and then you
> application, it HAS to work.
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
http://swoes.blogspot.com/
http://www.flamerobin.org