Search Results

Search: Posts Made By: syndex
Forum: AIX 01-07-2011
8,126
Posted By syndex
Convert time (YYYYMMDD HHMMSS) to UTC
Okay, so let's say we have a string like:

20110105_193345

This represents:

January 5th, 2011 = 20110105

24-hour style time 19:33:45 = 193345

Okay, so we have our time. It's January...
8,041
Posted By syndex
Echo your env in your script and have it run from...
Echo your env in your script and have it run from cron.

So put this at the beginning of your script

env > /tmp/env

Have that run from cron, and then post the results. This is a simple way...
Forum: AIX 11-14-2009
5,318
Posted By syndex
Can you post the exact error messages when you...
Can you post the exact error messages when you shut down?
Forum: AIX 11-14-2009
8,734
Posted By syndex
Does the command errpt return anything relevent?
Does the command errpt return anything relevent?
Forum: AIX 11-14-2009
14,446
Posted By syndex
I would suggest setting up sudo for whoami. If...
I would suggest setting up sudo for whoami. If you want to make it completely transparent set up sudo, so the user doesn't need to type in a password and then create an alias that does 'sudo whoami'.
14,873
Posted By syndex
Once you type set -o vi, you should hold the...
Once you type set -o vi, you should hold the 'ESC' key and then tap the 'k' key. There is no way to enable the arrow key for history commands. Once you get used to it, however, it becomeslike second...
Forum: AIX 11-08-2009
6,022
Posted By syndex
IBM views the HMC as an appliance and not a...
IBM views the HMC as an appliance and not a computer.. you will find it very hard to get them to be any sort of lienient.
Forum: AIX 10-02-2008
2,263
Posted By syndex
Using the passwdpolicy() subroutine.
Okay, so in AIX, there are various subroutines that is built in to the OS. The subroutine is I want to use is passwdpolicy(). So I want to construct a C program that will be able to pass credentials...
Forum: Solaris 05-13-2008
10,241
Posted By syndex
Windows / Open Solaris dual boot problem.
Okay, let me sketch the problem.

I did have a ubuntu / Windows XP dual boot scenario that ran grub as my boot loader. I decided I wanted to try out solaris, so I popped in the opensolaris CD and...
Forum: Linux 05-12-2008
3,923
Posted By syndex
It probably will not work. When I write...
It probably will not work.

When I write scripts to work on AIX and Linux, I have to write it for AIX - test it - then rewrite it so it works on Linux.

I'm not smart enough to just write...
25,065
Posted By syndex
So star out and create the script. Inside...
So star out and create the script.

Inside the script echo your questions and then read the answer to assign it to a variable. Ex:

echo "What is the ip address?"
read ipaddress

What is the...
23,348
Posted By syndex
/logs/syslog/messages There are also other...
/logs/syslog/messages

There are also other log files under /logs/syslog, like the authlog etc.
3,288
Posted By syndex
At the top of your script put this in: set...
At the top of your script put this in:

set -x



This will help you debug.
Forum: AIX 12-23-2007
23,949
Posted By syndex
Already looked into this. Short answer: no.
Already looked into this.

Short answer: no.
Forum: AIX 12-22-2007
9,371
Posted By syndex
Might as well read up on AIX 6, as AIX 5.3 is...
Might as well read up on AIX 6, as AIX 5.3 is near its end :).
1,406
Posted By syndex
Help with Awk
How do I strip every character from a variable into a bunch of other variables:

For example

echo "Enter the text:"
read text


If I enter

Hello World!

I would like to awk the answer...
2,964
Posted By syndex
Mirroring a user?
I'm looking for a way to mirror one user to another.

For example:

If I have the user ABC and I want to mirror his:

-Primary group
-Any other groups ABC belongs to
-UID
-Home directory
...
5,523
Posted By syndex
Password limitations.
I would like to set my minimum password length to on Linux and AIX.

However, doing this normally would only make it so newly added users will be affected by this. I would like for when I make this...
1,875
Posted By syndex
What is this homework? Just put echo...
What is this homework?

Just put echo $hostname in .profile
2,058
Posted By syndex
This works!!! Can you explain the sed part...
This works!!!

Can you explain the sed part please?
2,058
Posted By syndex
Just a push for now, if I can't figure it out,...
Just a push for now, if I can't figure it out, I'll need a little more help. :o
2,058
Posted By syndex
Comparison in shellscripts.
This idea for a shellscript I have, is just beyond my reach of knowledge.

Basically I have a file that contains a list like so:

axis
heater
water
yast

The file is called mqm.list.

What...
Forum: Red Hat 07-13-2007
2
25,162
Posted By syndex
Everytime I do Auditctl -l I get ...
Everytime I do

Auditctl -l

I get

linux101:/etc # auditctl -l
No rules
File system watches not supported

Here is my audit.rules

linux101:/etc # cat audit.rules
# This file...
Forum: Red Hat 07-11-2007
2
25,162
Posted By syndex
auditd
Has anyone used, or set up auditd?

I want to use it to audit critical system files.

Will this be hard, how would I start setting this up?


:eek:
1,536
Posted By syndex
tmpvar="/tmp/{$USER}uid.tmp It's where the...
tmpvar="/tmp/{$USER}uid.tmp

It's where the file location is, where the user owns which files etc.
Showing results 1 to 25 of 46

 
All times are GMT -4. The time now is 11:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy