UNIXguide.net ( AIX, FreeBSD, HP-UX, LINUX, SOLARIS & Tru64)

 © 2000 UNIXguide.net, All Rights Reserved. Hermelito Go 

OpenLDAP: Allow users to change their password with the unix passwd command.

If you run into this ldap error below, this is the correct way to fix it.


[litogo@sge4 ~]$ passwd
Changing password for user litogo.
(current) LDAP Password:
New password:
Retype new password:
password change failed: Insufficient access
passwd: Authentication token manipulation error


The issue here is that ldap server is not allowing the user password to be changed without the ldap manager's credential.
You need to add an ACL to allow this password change by the user.

OVMCLI: Oracle VM Manager Command Line Interface

OVMCLI: Oracle VM Manager Command Line Interface


Oracle virtual machine manager (ovmm) is an excellent tool.  It's a GUI that can help you get your system up and running.
Since it's a GUI you can't use it to automate your environment.  The OVM command line interface is there to address that issue.
In a nutshell it's just shell that you use to communicate with the ovmm. You connect to it by ssh on port 10000 with the ovmm server.

Chef workstation and client installation

First we install Chef development kit package.

Why my stop script is not being executed?

I recently got a question on why his Linux script is not executed when the system is rebooted or shutdown.
The script runs fine when run manually.

# service cleanscript stop
Cleanscript:  Cleaning up the directory!

My quick response was maybe your script is not configured correctly for systemd. Upon further inspection the 
server is running a Redhat 6 update 10 OS. This was still using the old init scripts.

Here is the script in question.

Chef server installation

I wrote this study notes in the point of view of a system administrator on what to expect and any issues that can trip up your installation.
The original standallone installation instruction can be found at https://docs.chef.io/install_server.html

Server checks and preparations.


First thing to check is the if the ports http (80) and https (443) are open.
If not then enable the ports for access.

Running mysql in a docker container.

First thing we do is to pull the mysql image and then inspect it and look for the volume location.

[root@centos7 ~]# docker pull mysql
Using default tag: latest
latest: Pulling from library/mysql
be8881be8156: Already exists
c3995dabd1d7: Pull complete
9931fdda3586: Pull complete
bb1b6b6eff6a: Pull complete
a65f125fa718: Pull complete
2d9f8dd09be2: Pull complete
37b912cb2afe: Pull complete
54242fcd8eaa: Pull complete
0a9d4d211511: Pull complete
270ae5bd02c2: Pull complete
9b55b8e72e70: Pull complete
68083f7985cd: Pull complete
Digest: sha256:d39a8ab7679df309e7eff6ddba434ad5747cc2a2acee2d7c60d8221c9acedcad
Status: Downloaded newer image for mysql:latest

Solaris: Could not obtain address of AI server from DHCP server

Error:  Could not obtain address of AI server from DHCP server

When you are running an Oracle VM or Virtualbox you may encounter the error above.
As a work around you will need to assign a fixed address to this dhcp address.


Edit  the file /etc/inet/dhcpd4.conf  and add the line fixed-address.
Here is an example below:

Oracle Virtual Server Manager 3.4.5: Database reset

Oracle Virtual Server Manager 3.4.5:  Database reset
(This comman should work with OVMM 3.3 and above)

[root@oel75 ~]# service ovmm stop
Stopping ovmm (via systemctl):                             [  OK  ]
[root@oel75 ~]# service ovmcli stop
Stopping ovmcli (via systemctl):                           [  OK  ]

Change PASSWORD with your ovmm password.

Linux: Do not power off when laptop lid is closed


If you want to configure your laptop running any of the RHEL 7 derivatives (OEL,CentOS, etc) not to suspend the running OS when you close the laptop lid.

Edit the file /etc/systemd/logind.conf and set HandleLidSwitch=ignore.


Subscribe to UnixGuide.net RSS