Search Results

Search: Posts Made By: otheus
13,589
Posted By otheus
Most *NIX systems (AIX, Linux, Solaris, BSD) have...
Most *NIX systems (AIX, Linux, Solaris, BSD) have some kind of system and accounting records. You can run sar to see if it is properly deployed on your system. If you run it and get loads of output,...
14,725
Posted By otheus
So, just upgrade to latest coreutils version. ...
So, just upgrade to latest coreutils version.

What -n r/K/N does is print every K/Nth line. If K = 1 and N =2, you the first line, then every 2nd line after to the end of the stream. With K = 1...
16,837
Posted By otheus
Simple: sh scriptname Now, you have...
Simple:

sh scriptname

Now, you have some interesting options. You can log all the output and error to a file:

sh scriptname &> all-output.log

An important option is '-x' which will log...
11,697
Posted By otheus
Traditionally, you must specify a device....
Traditionally, you must specify a device. Therefore

tcpdump -i eth0 -w /tmp/syn.pcap 'tcp[tcpflags] & (tcp-syn) != 0'


But that assumes you want it from eth0. Maybe you want it from wlan0. But...
18,037
Posted By otheus
This question is too vague (I don't think Jim...
This question is too vague (I don't think Jim interpreted it correctly). Perhaps you mean "which users are allowed to execute what commands" in a sudoers file? If that is indeed the question, the...
14,417
Posted By otheus
Yeah you combine but only ONE pair of...
Yeah you combine but only ONE pair of SINGLE-QUOTE marks (')....


sed 's/|/","/g; s/^/"/; s/$/"/; s/"="/="/g; s/""~/"/g' A4.txt > A5.csv

Also, to prevent double quotes at the beginning and end...
13,824
Posted By otheus
Perhaps your pager provider has an email gateway?...
Perhaps your pager provider has an email gateway?

If not, you must set up a modem of some sort and use some kind of program that will work with it.

A more general solution is to use something...
12,493
Posted By otheus
This is a really vague question. What kind of...
This is a really vague question. What kind of suggestions are you looking for?
23,866
Posted By otheus
Do you know for sure that you can mount...
Do you know for sure that you can mount /home/nisuser on this host?

Try (as root):

mkdir /mnt/nisuser
chmod 755 /mnt/nisuser
mount titanium:/home/nisuser /mnt/nisuser
ls -l /mnt/nisuser
...
23,866
Posted By otheus
OK, the problem is ... you were still in /home...
OK, the problem is ... you were still in /home when you removed it.

1. Log out from all other users.
2. As root, change dir to /root or /
3. Run lsof /home. If there are processes listed, kill...
23,866
Posted By otheus
There is a caveat to working with autofs: The...
There is a caveat to working with autofs: The top-level directory must not exist before autofs is started. Try this (on the client): NOTE: THIS WILL DESTROY EVERYTHING IN /HOME ON THE CLIENT

...
23,866
Posted By otheus
So autofs builds on NFS in the way that each...
So autofs builds on NFS in the way that each directory will be mounted "on demand" and unmounted after a few minutes of inactivity. It is largely a pointless technology, but it still has its uses....
23,866
Posted By otheus
You're confounding NIS with NFS. The former...
You're confounding NIS with NFS. The former allows hosts to share information services such as the user database and hostnames. The latter allows home directories to be shared (for instance).

The...
11,691
Posted By otheus
The Masquerading setup will do this for you. ...
The Masquerading setup will do this for you.
So the modern way of configuring sendmail is through the distributed m4 scripts; to convert those to the configuration, you need to install...
13,526
Posted By otheus
The two most common problems in this situation...
The two most common problems in this situation are:
1. Dependency on an unreachable network resource, ie, NFS, NIS, LDAP
2. Bad disk

Per the previous post, boot into "single user mode". This...
130,621
Posted By otheus
I recently ran into this problem. The solution...
I recently ran into this problem. The solution offered here (and elswhere on the Internet) insufficiently failed to answer it. I had to dig deep to find it.

Depending on the precise server...
15,767
Posted By otheus
User agn takes the approach I would, but FYI: but...
User agn takes the approach I would, but FYI: but he has a coding error.



for f in *txt.xls; do suffix=${f#*.}; p=${f%.$suffix}; echo mv $f ${p}_$(date +%Y%m%d_%H%M%S%N).${s}; done

This code...
20,837
Posted By otheus
Make sure sshd is actually running. For instance...
Make sure sshd is actually running. For instance ps auxww|grep sshd
Make sure sshd is running on port 22. In some OS's like Linux, that's netstat -anp | grep :22
Check the firewall settings. If...
8,726
Posted By otheus
I have no idea how this helps recover the root...
I have no idea how this helps recover the root password, but ok.

The code is fixed with:
DISPLAY=11.22.33.44:0.0
export DISPLAY
The numvers must be filled in with the terminal's IP address.
11,298
Posted By otheus
Might be simpler to let awk do the calculation,...
Might be simpler to let awk do the calculation, and let the script's input parameters be used in the normal sense.
This code looks longer, because I added lots of checking, but the functional part...
7,682
Posted By otheus
You probably want to do something like this: ...
You probably want to do something like this:

First, add a soft link from /bin/false to /usr/bin/nologin

Next, have a list of user-names in a text file, one name per line. Then prepare the...
6,519
Posted By otheus
"man ps" so you can learn the various options you...
"man ps" so you can learn the various options you need for sorting and displaying the fields you are interested in. As noted by others above, these options vary slightly from system to system. (ie,...
11,780
Posted By otheus
gull04 and jlliagre are most probably correct. If...
gull04 and jlliagre are most probably correct. If you need a place to store stuff, here's what you can do in the mean-time:

Check the diskspace of /tmp and /var/tmp. Use df:

df /tmp /var/tmp
...
24,633
Posted By otheus
my $fcell = $worksheet->get_cell($row, 11); ...
my $fcell = $worksheet->get_cell($row, 11);
my $name = $fcell->value();

What's probably happened is that get_cell() returned an undefined object (perhaps because that cell was...
10,596
Posted By otheus
Remove this servers' IP addresses from...
Remove this servers' IP addresses from resolv.conf, and further, stop and disable the named service on it. After this, your host will use only the master and slave DNS servers and so should always be...
Showing results 1 to 25 of 500

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