Questions tagged [unix]
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.
1,957
questions
-1
votes
3
answers
704
views
How to know Window user detail logged in Unix server using putty
I have one common user named meduser in unix SunOS server, many people logged into the same user meduser from Window machine using putty.
Please reply me if there is any way to know the Windows user ...
0
votes
1
answer
2k
views
Placeholder in bash/shell for defferent linux distr
i have some problem. I need to add in autorun of linux, some scripts. But in my infrastructure, i have a different distrs. Of course, the way of adding this scripts in autorun different. In CentOS it ...
4
votes
1
answer
5k
views
Solaris 10 NFS client mount error "NFS compound failed for server 10.0.2.18: error 5 (RPC: Timed out)"
I have a Solaris 5.10 (I think that's considered Solaris 10) server - we'll call it "Bill" - which I own, but a vendor supports the additional software installed. They have to manually stop services ...
0
votes
1
answer
2k
views
Making open file descriptor limit unlimited in Debian
I am doing a perf test of one of my API. After some time I keep getting the error Too many open file. Once I increase the number of open file descriptor (ulimit -Hn, ulimit -Sn & cat /proc/sys/fs/...
3
votes
1
answer
11k
views
Which umask is more secure in Linux ( 022 or 027)?
Is there any security concerns if the umask is set to 027 for root (Basically I want to know if 027 is better in security than 022 ) ?
As per my understanding 027 is a better one from security ...
0
votes
2
answers
540
views
iptables, are all ports open? how do i remove line?
it´ been an long time i configured my firewall and now i see there might be an error, heres the INPUT part of iptables -L
Chain INPUT (policy DROP)
target prot opt source ...
0
votes
0
answers
125
views
Postfix arguments
According to another answer, I may need to set smtp_sasl_mechanism_filter = plain in order to get postfix to work correctly for my needs.
My question: Is there a way to modify this setting from the ...
0
votes
1
answer
752
views
chroot root jail with where you an only su out to registed user
Can i ask for some advice about securing ssh logins.
Is this a good way.
I want to have only one user allowed to connect to our remote servers(AllowUser in sshd.conf)Using ssh keys and NoPasswords.
...
0
votes
1
answer
111
views
cpulimit, but for load? Pause a command until load avg goes below some figure?
The programme cpulimit on Linux is great. You can tell it to limit a process so that it doesn't use more than X% of the CPU. For example, I know someone who's laptop overheats if the CPU runs too hot ...
0
votes
1
answer
361
views
cfgadm hangs when attempting to attach SCSI device
I'm trying to hot plug a EXB-8900 tape drive into Solaris 10 and having issues.
Here's the process I follow. Please note this has worked:
cfgadm -x insert_device c4
yes at the first prompt to ...
0
votes
1
answer
751
views
what are the reasons for umounting /proc filesystem? [closed]
I am trying to write an audit program for unixs systems. First I was thinking of getting all the outputs of various native commands, such as ifconfig, df, route, and so on, depending on the system the ...
0
votes
1
answer
781
views
Standing Up Cisco CSR1000v .iso on Google Cloud Platform RHEL VM
I have a Cisco Cloud Service Router 1000v, CSR1000, .iso image that is advertised to run on KVM. I launched a RHEL 1 vCPU, 0.6 GB w assigned public IP and default private IP and uploaded the image.
...
0
votes
1
answer
757
views
abrt-ccpp ignores MaxCrashReportsSize and creates a huge dump :(
My abrt-ccpp service suddenly stopped capping the dumps at 10M and creates huge dumps - what am I missing? (I really haven't changed anything...)
my dumps folder:
sudo du -sh /home/tmp/abrt/*
12K ...
2
votes
2
answers
79
views
Is there a way to see free mem history on redhat? [closed]
Is there a built-in way of checking free mem history or any other performance stat on redhat 6.5--e.g., the past hour, days, weeks etc..
On other systems, I have previously used orca which creates ...
-1
votes
2
answers
2k
views
bash script to detect when a file is added to folder and command exec
I am trying to write a script to detect whenever a file is added to a specific folder and run a command using the last file added name. What I am specifically trying to do is to create a QR code for ...
6
votes
1
answer
374
views
8mm Data8 tape drive compatibility for Maxell HS-8/112 and 3M D8-112
We have a Exabyte Mammoth-2 tape drive connected to a Solaris 10 box that's currently able to restore any Exabyte media no problem, but we have two other brands of 8mm tape that are shown as "illegal ...
2
votes
1
answer
952
views
In bash script, what is difference between > and >| redirections?
What is the difference between the following two redirection commands?
ls > out
ls >| out
They both seem to produce the same output.
2
votes
2
answers
814
views
Connection refused on shared internet connection
The following picture shows the topology of my network.
I now want to route all http traffic from 10.8.0.15 via 10.8.0.42 to the outside world, using wlan0. Unfortunately, I am a noob when it comes ...
0
votes
1
answer
267
views
Use failover IP as a primary server IP
I bought a dedicated server which has its primary IP blacklisted, I am having a IP failover (NIC I believe) I'd like to use as a primary IP instead.
Is action like that possible? if so, what can I do ...
-1
votes
1
answer
478
views
How to get telnet working in SCO openserver release 3.2v5.0.6?
I have a sco box (SCO openserver release 3.2v5.0.6) and I went and changed the ip address of the server via netconfig.
Sadly, telnet is no longer working when I attempt it from another computer to ...
1
vote
2
answers
2k
views
Parent bash script not receiving 'trap' despite process still running
What I'm actually trying to achieve:
I'm trying to get a custom daemon working on a system that uses SysVinit. I have the bootstrapper /etc/init.d/xyz script already, which calls my daemon, but it ...
2
votes
1
answer
62
views
Running OpenOffice as a Daemontools service not picking up the user
My problem is that, when started with Daemontools, files created by OpenOffice (which runs in server mode) are owned by root (and in the root group). When I start the Daemontools 'run' script manually,...
0
votes
1
answer
100
views
Trouble running this simple cronjob on the server every 24 hours. What is wrong? [duplicate]
Trying to run an 'R' script at 00:30 every day. The script is located in /home/username/Desktop/folder/runnow.r and which Rscript reveals that the absolute path to binary Rscript is /usr/bin/Rscript. ...
0
votes
2
answers
4k
views
“yum repolist” showing repo list but there is NO repo file in /etc/yum.repo.d
Could any one look into the issue and help ?
I have a Red Hat server which has Red Hat subscription and I tried to get all Security patches list using /usr/bin/yum list-security --security. After ...
0
votes
1
answer
5k
views
How to store SSH key without attempting to login with password using Plink?
The below command is used to attempt to store the SSH key, even though we tried to force exit in the command, still it is asking password.
echo y | plink -ssh [email protected] "exit".
The server's ...
-2
votes
2
answers
528
views
what happen when we delete resolv.conf file from a linux server
I have deleted the resolv.conf file from Linux server and now I am not able to login to the server. What is the logic behind this and How can this be resolved ??
0
votes
1
answer
2k
views
Default http proxy under FreeBSD
I'd like to set default http proxy for all users under my FreeBSD environment. I modified /etc/login.conf file by adding HTTP_PROXY variable:
default:\
:passwd_format=sha512:\
:copyright=/etc/...
-1
votes
1
answer
744
views
How does process CPU usage relate to Load Average? [duplicate]
I have the following host / load:
Two 6-core CPUs, with HT (From what I understand, max load would be 24.0)
12 "primary" processes, with sustained usage of about 50% CPU
Load average: 0.86 0.98 0....
-1
votes
2
answers
22k
views
How to find unix eth port link speed
I have small issue with my openwrt router.
I want to know link-speed in format 10M,100M, 1000M, etc. or 10BaseT ..
but I can't find it in /proc or with "ip" command also "dmesg" doesn't provide ...
7
votes
1
answer
5k
views
why linux reuse 'time_wait' port?
As I know, tcp port in 'time_wait' stat cann't be used. However, in my experiment, server reuses the 'time_wait' port? Why?
Firstly, in client machine, type command ehco 40000 40001 > /proc/sys/...
1
vote
1
answer
2k
views
Timestamp comparison on AIX without date -d
I have a bash script on AIX 7 that runs a database query and the output I get is a timestamp in the following format: 201607130319.
Now I would like to compare the timestamp with current time (date +%...
1
vote
2
answers
5k
views
How to filter (out) certain output in bash
I have a process that tails our AWS CloudWatch logs. It works great, except for the fact that every line is prepended by the CloudWatch group and container ID. For example:
core-api ...
-5
votes
1
answer
671
views
Run 64bit installer on 32bit centos cannot execute binary file [closed]
I Have a 64bit file from my old server, its ./install file
now i want run it in 32bit server, see below error:
[root@host ~]# ./installer.1
-bash: ./installer.1: cannot execute binary file
My ...
0
votes
1
answer
3k
views
What is the equivalent of chdir for UNIX?
I'm working on OSX 10.11.4 trying to write a simple bash script. I'm getting command not found when I try to use chdir. When I test with which chdir I get nothing. What's going on?
I'm using this ...
-4
votes
1
answer
53
views
web program today: why is online web program user =/= Unix user in /etc/passwd [closed]
History and explanation
In the early days of Unix,
... as Unix was invented as a network and multi-user operating system; you could deploy web server programs on Unix where the online user in the ...
0
votes
1
answer
2k
views
Run FNDLOAD command on unix server from windows using Jsch
I'm trying to run an FNDLOAD command using Jsch after connecting to my unix server through ssh. But the command is giving me the following error
bash: FNDLOAD: command not found
Also if I try to ...
4
votes
1
answer
152
views
How to let chef listen on multiple IPs
I'm currently playing with chef to evaluate whether or not such a configuration tool might help us in our *nix-based environment.
For the last few days I'm struggling with one problem I can't find a ...
2
votes
0
answers
426
views
ssh -t -t sudo displays back my password
My problem is about executing sudo over SSH. I have tried various things, but non works.
Here is my script:
ssh my-host /bin/bash << EOF
# some commands...
sudo -u my-user -s -- << EOFF
...
0
votes
2
answers
6k
views
Check number of connections to webserver port 80 AND 443
As the title says how would one check the number of open connections to a webserver on port 80 and 443?
I'm currently using this oneliner to get the number of open connections per ipaddress from port ...
0
votes
0
answers
82
views
wget FTP directories with more than 10k folders
I have an issue trying to move servers. I have a couple of folders with 300k subdirectories and wget will only copy the first 10000 (the same number that Filezilla is capable of showing).
Splitting ...
1
vote
1
answer
1k
views
Why is my awk sub command failing?
When I run
df -hl | grep '/dev/disk1' | awk '{sub(/%/, \"\");print $5}'
I'm getting the following error:
awk: syntax error at source line 1
context is
{sub(/%/, >>> \ <<< "\"...
0
votes
1
answer
531
views
Changing /etc/passwd in SSH User
I've got an Amazon EC2 instance running. It's an Ubuntu 14.04. I connect using Putty SSH. I use the key/certificates I got when I created the instance to authenticate my connection. This is all done ...
-2
votes
1
answer
217
views
Removing 1 line of code from all php files
I can see same code under all php files.
Starting from
<?php $rfghoh = '*f%)sfxpmpusut)tpqssu6
And end
$rfghoh=$yuoopi-1; ?>
I am just looking for script using which only first line of ...
2
votes
2
answers
22k
views
SERVERFAIL error while doing nslookup on server itself. FreeBSD
I am using FreeBSD to setup a DNS server.
I have install BIND and setup everything in resolv.conf and named.conf file.
This is the ip address of my DNS server 192.168.10.100.
in resolv.conf I added ...
6
votes
2
answers
10k
views
Create a file only if the directory exists?
I am trying to write the module where it creates the file if directory exists or else it shouldn't do anything.
class puppetmodule{
exec { 'chk_dir_exists':
command => 'test -d /usr/dir1',
...
-1
votes
1
answer
70
views
BSD Connection 'Drops'
I've been setting up a BSD server and every thing went fine. It still works fine except on my own IP address I cannot connect to my webserver at all and with SSH I can login but then as soon as I type ...
2
votes
1
answer
865
views
Apache James: eval: /opt/james/bin/./wrapper-linux-x86-32: not found
I'm setting up a James server for the first time. I'm using 3.0-beta4. After I copied the binaries to /opt, I tried running it:
neonorb@neonorb /opt/james/bin
% ./james start
Starting Apache James ...
-1
votes
1
answer
106
views
SSD Server with trim enabled
I have a Windows Server (but I think this problem may apply to any UNIX server too) running using SSD. I have Kingston UV300 SSD and they allow TRIM. I also checked and my Windows is running with TRIM ...
2
votes
2
answers
3k
views
Centos 6; phpMyAdmin 'Cannot log in to the MySQL server' after moving mysql.sock
I recently moved my mysql datadir from /var/lib/mysql to a new directory /home/mysql mounted on a new hard drive.
For neatness sake I thought it'd be nice to place the tmpdir and socket on this new ...
1
vote
2
answers
2k
views
how to put files in ram
I have a server with 30 Gb ram and i have a script that put a (.ts) file (10mb) in /var/www/html/tv and script replace (.ts) file every 2 mintues.
so my question is: can i mount this folder /var/...