Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hopefully fix Issue 1379 #1392

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Hopefully fix Issue 1379 #1392

wants to merge 2 commits into from

Conversation

ddpbsd
Copy link
Member

@ddpbsd ddpbsd commented Apr 3, 2018

Rename label_t to OS_label_t (and label to OS_label just for fun).
Waiting on confirmation that this fixes it.

Rename label_t to OS_label_t (and label to OS_label just for fun).
Hopefully fixes the issue.
@holly1954
Copy link

i get this error now
In file included from os_auth/main-client.c:26:0:
os_auth/check_cert.h:53:47: error: unknown type name 'label'
int label_match(const OS_label *label1, const label *label2);
^~~~~
make: *** [Makefile:1007: os_auth/main-client.o] Error 1

@holly1954
Copy link

my fault i see my error

@ddpbsd
Copy link
Member Author

ddpbsd commented Apr 3, 2018

If it works, I'll merge it. :-)

@holly1954
Copy link

that worked for that now having an issue with the installation of the files the useradd/groupadd did not work i added the userid/group and am trying to remake agent now

@holly1954
Copy link

it is not installing the files
this is the errors

./init/adduser.sh ossec ossecm ossecr ossec /var/ossec
Wait for success...
Usage: useradd [ -c comment ] [-d dir ] [ -e expire ] [ -g group ] [ -G group1,group2 ... ] [ -m [ -k skel_dir ] ] [ -u uid ] [ -s shell ] [ -r role1,role2 ... ] login
make: *** [Makefile:360: install-common] Error 2
cp: cannot create regular file '/var/ossec/etc/ossec-init.conf': A file or directory in the path name does not exist.
chmod: cannot access '/var/ossec/etc/ossec-init.conf': A file or directory in the path name does not exist.
ln: failed to create symbolic link '/etc/rc.d/rc2.d/S97ossec': Do not specify an existing file.
ln: failed to create symbolic link '/etc/rc.d/rc3.d/S97ossec': Do not specify an existing file.

trying with commented out line 360

@holly1954
Copy link

that did it also had to comment out the PATH for AIX line 56 in Makefile
line 382 #install -m 0440 -o root -g ${OSSEC_GROUP} /etc/localtime ${PREFIX}/etc
missing /var/ossec/etc/shared/agent.conf': XMLERR: File '/var/ossec/etc/shared/agent.conf' not found. (line 59). seeing if i can find it

@ddpbsd
Copy link
Member Author

ddpbsd commented Apr 3, 2018

Were any of the ossec users created?
It looks like the useradd command it's trying to use is:
useradd ossec -d /var/ossec -s /bin/false -g ossec

Based on what you posted, it should probably be:
useradd -d /var/ossec -g ossec -s /bin/false ossec

I'll update it and add the changes to this PR.

@ddpbsd
Copy link
Member Author

ddpbsd commented Apr 3, 2018

@holly1954
Copy link

holly1954 commented Apr 3, 2018 via email

@ddpbsd
Copy link
Member Author

ddpbsd commented Apr 6, 2018

What's the smitty command to add users and groups? Adding those in shouldn't be too difficult.

@holly1954
Copy link

holly1954 commented Apr 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants