Permission problem with samba 3.5.4 + vscan-vfs + RHEL6(64 bit)

Kai Blin kai at samba.org
Sat Jun 25 01:23:23 MDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2011-06-24 13:42, Amancio Tarrito wrote:

Hi,

>                I am Amancio Tarrito, I have my own vscan-vfs module that is 
> working well with  samba 3.5.4 + RHEL6(64 bit).  But the problem is I am opening 
> file from my vfs module for writing some logs. But when I     
> fopen("/var/log/mylogfile.log", "w")    it is  saying me permission denied 
> opening file  '/var/log/mylogfile.log'  even though  permissions are 777 as well 
> as  user and group users are correct. For your information  my vfs module is 
> working correctly on RHEL 5.5(32 bit) accurately.
>                I have also tried opening file ' mylogfile.log '  at other 
> locations also.  But It has been found that I can only create log file in /tmp 
> directory.

I'm just guessing here as I don't have any experience running a recent
RHEL, but this sounds a bit like SELinux or AppArmor getting in the way.
Not sure which of these RHEL uses, but it might be worth checking the
appropriate log file of that tool.

HTH,
Kai

- -- 
Kai Blin
Worldforge developer http://www.worldforge.org/
Wine developer http://wiki.winehq.org/KaiBlin
Samba team member http://www.samba.org/samba/team/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4FjOQACgkQEKXX/bF2FpSfLwCfVEW0yIcTpcVSe98o/6L6i/qL
J4MAn1i4j26mfluAj57UEGeba7x7yiJ8
=NcxZ
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list