[Nfdump-discuss] Sub directory file permissions issue on RedHat 6.5
netflow collecting and processing tools
Brought to you by:
phaag
|
From: Garrett B. <gb...@eg...> - 2015-01-09 10:23:53
|
Hi All, I'm running nfsen-1.3.6p1 with nfdump-1.6.11-1 on RedHat 6.5 It's run as user 'netflow' which is a member of the 'apache' group. I'm seeing an issue where having added a new NetFlow source (Test3 in this example) that the sub directories under profile-data are being created without the execute bit set and thus subdirectories can't be created under the initial directory resulting in the following errors being logged. Jan 8 07:10:10 localhost nfcapd[10045]: Ident: Test3, Failed to create sub hier directories: mkdir() error for '/opt/nfsen/profiles-data/live/Test3/2015/01/08': Permission denied Jan 8 07:10:10 localhost nfcapd[10045]: Ident: Test3, Can't rename dump file: Permission denied Jan 8 07:10:10 localhost nfcapd[10045]: Ident: Test3, Serious Problem! Fix manually ls -l /opt/nfsen/profiles-data/live drwxrwxr-x 3 netflow apache 4096 Jan 8 06:57 Test3 # ls -l Test3 drw------- 2 netflow apache 4096 Jan 8 06:57 2015 # ps -ef | grep nfcapd netflow 10045 1 0 06:57 ? 00:00:00 /usr/bin/nfcapd -w -D -p 8888 -u netflow -g apache -B 200000 -S 1 -P /opt/nfsen/var/run/p8888.pid -z -I Test3 -l /opt/nfsen/profiles-data/live/Test3 Anyone else seeing this? Thanks, GB |