Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

learn more… | top users | synonyms

-2
votes
1answer
50 views

Read a file created by root user on unix system [closed]

I have a file created by root user on unix system and the file is assigned to a particular group.All I want to do is read that file by logging in as user which is not root and not a part that ...
1
vote
1answer
188 views

IPTables preventing remote connection to MySQL

My table rules: sudo iptables -L --line-numbers Chain INPUT (policy ACCEPT) num target prot opt source destination 1 ACCEPT tcp -- anywhere anywhere ...
1
vote
1answer
156 views

What's the best way to enforce a maximum size on a file directory?

I'd like to create directory with a maximum size of, let's say 500MB. The directory may contain any number and depth of subdirectories. When the maximum size limit of the directory is surpassed, I ...
1
vote
1answer
96 views

RDP forwarding on HP/UX machine

I have a setup that consists of a HPUX machine that acts as a router and has a set of windows machines sitting behind it. I have given the HPUX box 3 external IP address on our main network so we can ...
0
votes
1answer
112 views

find and delete files of a certain type inside a tar.gz file

Is there a way to not only find but also delete any .gz files inside a .tar.gz file? I found this link but I wouldn't know how to modify it to make it able to delete found files.
2
votes
3answers
90 views

Detect file update from modification time

Is there a way to see how often a file is being updated? I mean I need to see if the modification time of a file is updated in a dynamic way (same as tail shows if the file is updated in a dynamic ...
0
votes
1answer
261 views

dsh (dancer's shell): is it possible to specify ports in config file?

Using dsh you can define the list of machines in ~/.dsh/machines.list in the form: <user>@<host> I'd like to have multiple hosts with different ssh ports, like this (I tried): ...
0
votes
0answers
125 views

Custom certificate/key pair does not work on OpenVPN clients

I have setup very basic OpenVPN network on Windows Server 2008. My clients are IP Cameras having Unix OS and built-in feature of openVPN connectivity. Initially I used a common client certificate/key ...
2
votes
3answers
1k views

Privileges for ifconfig

In order to do ifconfig in Linux and change the IP and VIP does it require root privileges? Or it is also possible to do this via a non-root account?
1
vote
1answer
62 views

Can I easily setup a relay on a unix server which only accepts connection on a single IP?

I have a situation where I've developed a website on Windows and come to find only a single UNIX server has been white listed for the back end server-to-server information exchange that needs to be ...
-1
votes
1answer
58 views

can someone help me pick out the particular field? [closed]

I have to generate a script that alerts me when disk space goes beyond a threshold. df -k command would fetch me the disc spaces involved in my working directory. For example,the output would be ...
-2
votes
1answer
44 views

Adding nologin ftp users [closed]

I have set up an FTP account on a linux machine with vsftpd for a single user. Now, how would I add a new user with parameters: base_folder username password
0
votes
1answer
51 views

Creating Reboot Procedure For Legacy Linux Server

I have a legacy Linux System which has some processes ( manually or automatically started ) running under different users. The server is not restarted since long time, and current staff doesn't know ...
0
votes
2answers
327 views

CentOS lost Root Access

For some reason I cannot access my root user via SSH. It displays the error on login: could not open session. However I happen to have another user account that is a normal non-sudo user. Is there ...
0
votes
1answer
671 views

can I delete the files in the proc folder without consequence?

I see my proc folder getting bigger and bigger and I have limitation in terms of number of files. Can I delete those files or will it have consequences? thanks
-1
votes
1answer
75 views

running script containing sudo in cron [duplicate]

#!/bin/bash value=$(<man.txt) echo "$value" if [ "$value" == "true" ]; then echo "startedif_manthan" ps -ef|grep sym |awk '{ print $2 }'|sudo xargs kill -9; sleep 30; sudo sh ...
-1
votes
3answers
70 views

Cannot start a script

#!/bin/bash value=$(<man.txt) echo "$value" if [ "$value" == "true" ]; then echo "startedif_manthan" ps -ef|grep sym |awk '{ print $2 }'|sudo xargs kill -9; sleep 30; sudo sh ...
-1
votes
1answer
204 views

UnknownHostException in Unix while using InetAddress.getByName() [closed]

I use this snippet of Java code to lookup an IP Address from the domain name InetAddress address = InetAddress.getByName("google.com"); It works fine in Windows & Linux but throws ...
0
votes
2answers
196 views

unix: overwriting a file written by another user in same group

OS: Ubuntu 12.04 I have a directory what has given write permission to group foo. Two users bar and baz are part of the group. Both can successfully write files to the directory. However, baz cannot ...
0
votes
3answers
968 views

How to simulate a source IP to test which iptables rules are/aren't firing? [closed]

We have a fairly complicated iptables/ipchains configuration, which is generated by APF. Traffic to port 80 should be blocked, but our Apache logs show that someone was able to probe for web pages: ...
6
votes
1answer
225 views

Is it possible to use perl, python, php, ruby or whatever to write init.d scripts?

I'm new to this SysOp stuff, so I'm wondering if it's possible to use other interpreted languages to write init.d scripts? The upfront diff for me is /bin vs. /usr/bin #!/bin/sh versus ...
0
votes
1answer
108 views

how to tar or zip two sibling folders and avoid an extra top level folder when extracting

I have a need to create a tar of two sibling folders and send it to a client for extraction on their Mac OS desktop by double-clicking it. yes, that's a requirement of theirs. so I go: cd ~/Desktop ...
-1
votes
1answer
508 views

Block an IP range with FreeBSD's 'route add'

To block a single IP address I'm using the following: /sbin/route add -host 192.168.0.0 127.0.0.1 Is it possible to block an range of the IP addresses using the route? I have tried the tips found ...
0
votes
2answers
186 views

Sync files between two computers connected to same network using rsync command [duplicate]

Possible Duplicate: Need help w/ rsync I have two computers connected to the same network, say Computer A and Computer B. Computer A has some backup files in a directory that needs to be ...
1
vote
4answers
72 views

Howto: command/tool ability check

When developing a shell script that should run on various unix/linux derivates, i sometimes have the problem that some tools have to be called in a different way compared to other systems. For example ...
0
votes
1answer
1k views

SFTP without password prompt (from linux to windows)

I'm using freeFTPd as a sftp server on windows machine. From my linux machine(ubuntu) I want to do a SFTP from to windows and i want to bypass entering password as i'm trying to do this with scripts. ...
-7
votes
2answers
102 views

History of the /etc directory [closed]

It seems like the /etc directory was added for anything that falls into the "et cetera" category of system files. To me that seems along the lines of "extra" or "unnecessary". Why is it that (in my ...
3
votes
1answer
308 views

How can I quickly install FreeBSD ports?

I am a Linux system administrator, so my knowledge of the specifics of FreeBSD are very literal, and not very thorough; I've been configuring packages and what not a for a few days now and every one ...
2
votes
1answer
474 views

How can the root password on FreeBSD 9.1 be changed for the system for the purposes of root logins?

I've never encountered this before when using FreeBSD, but I recently got a new BSD VPS, and when I logged in as a wheel user and su to root, I used "passwd" to change the root password, but this only ...
0
votes
1answer
46 views

Staying up to date with Bugs/Patches [duplicate]

Possible Duplicate: How to stay up to date with the latest information about UNIX software patches and upgrades? I am learning system admin stuff on the side at home for some near future ...
0
votes
1answer
102 views

make backup of file when user run rm -f [closed]

Here is the scenario; I need to authorize a user to do activity in /opt/dev-folder/. Developer makes frequent changes in file, some time they replaced or remove original file. I have assigned ...
1
vote
0answers
285 views

Error sh: line 9: 19705: Memory fault (coredump) in case of OpenSSH installation

I downloaded openssh-6.1.p1/tar.gz with http://mirror.corbina.net/pub/OpenBSD/OpenSSH/portable/. I made at first ./configure, then make which, it seems, fulfilled without errors (Nexenta Illumos ...
0
votes
1answer
504 views

GIT issue in AIX 6.1

I recently installed GIT 1.8.1 on my AIX 6.1 machine and am facing a few issues with it. Now if I login as root and issue git commands like git --version I get the response as shown : Code: git ...
0
votes
1answer
291 views

Cannot get exclusive lock on rpm database in Unix

I was trying to install a python rpm on AIX 6.1 and it was taking too long and so I had to close ther terminal. Later when I tried to install the same rpm as root I am getting the problem as : ...
1
vote
0answers
111 views

The steps to install service-network-ssh [closed]

My original goal was setup service-network-ssh on Nexenta Illumos. As a result of the command apt-get install service-network-ssh I got the following message Reading package lists... Building ...
2
votes
2answers
2k views

Cannot ping over LAN until a ping is received

I have two OSX machines on a local subnet. Pings from Machine A to Machine B consistently timeout until Machine B pings Machine A. After B pings A, A can successfully ping B, but this success is ...
0
votes
1answer
55 views

removing the 'www' in bind9 dns

I want to create a record in my zone file which, by default goes to my webserver when I type in "mydomain.com" as opposed to "www.mydomain.com" <-- working. can someone give me some pointers, I ...
0
votes
1answer
347 views

Securing PHP's exec and others

I'm currently setting up an hosting service and, for now, i'm very concern about security. Here is my situation : I've set up multiple apache's vhost and for obvious securoty reason, i don't want to ...
0
votes
1answer
108 views

Why is sar output not matching?

I am using sar utility for collecting and saving system activity information. After saving the information, I am seeing/reporting the information but the output is not matching. Can some one please ...
0
votes
1answer
99 views

unix malicious scripts/ksh execution

I'm wondering whether my architecture poses a security risk. Details: The whole website is not ROOT owned but still, the APACHE user used instead has some pretty advanced permissions. I have a ...
3
votes
3answers
230 views

Why do I have more users logged on than there are?

On an old GNU/Linux Ubuntu box I see something like lorenzo@metropolis:~ $ w 09:58:18 up 651 days, 19:30, 5 users, load average: 0.28, 0.30, 0.24 The problem is, I am logged on other three ...
0
votes
1answer
133 views

View multiple remote desktops at the same time in Debian [closed]

I would like to be able to view multiple remote desktops at the same time. All the machines are running Debian. Ideally, if I could get the view on a windows machine that would be perfect. However, ...
2
votes
2answers
100 views

Effective toy benchmark for a computer? [closed]

I wanted to do some (very rough) comparisons between different computers, seeing the relative compute performance of laptops and cloud machines (AWS EC2, rackspace, etc.). I wanted something ...
0
votes
1answer
223 views

Upload database backup from mysql to Amazon S3 or Glacier without creating local file

Is there a tool that makes possible to backup a Mysql database to Amazon S3 or Amazon Glacier without having o create a local file with the database contents? Something like that: mysqldump -u ...
0
votes
1answer
95 views

ssh remote execution always exits 127

quick question: I have a program that is spawning a process which executes a basic remote command over SSH such as: ssh aiden@host /bin/ps Running this manually from my shell is successful (as you ...
0
votes
0answers
304 views

Compile php 5.3 ldap extension

So trying to follow the very un-descriptive guide at my webhost for compiling a new php extension: **Compiling PHP 5.3 extensions You can also compile and load your own extensions. Here's how:** ...
0
votes
2answers
219 views

Unix VPS server going down at almost the same time every day

My server load seems to be really spiking and many times the server goes down at the same time each night (Around midnight). I have about 20 cPanel accounts hosted on it and have tried everything I ...
1
vote
1answer
499 views

readlink: illegal option — f

Recently the script was working fine, but from some days I'm receiving such message, while running the readlink -f "$0" command: readlink: illegal option -- f usage: readlink [-n] [file ...] I was ...
1
vote
1answer
301 views

NIS: which mechanism hides shadow.byname for unpriviledged users?

On some Linux box (SLES 11.1) which is a NIS client I can do as root: ypcat shadow.byname and get output, i.e. some lines with the encrypted passwords, amongst other information. On the same Linux ...
2
votes
3answers
3k views

pam_ldap.so before pam_unix.so? Is it ever possible?

we have a couple of servers with PAM+LDAP. The configuration is standard (see http://arthurdejong.org/nss-pam-ldapd/setup or http://wiki.debian.org/LDAP/PAM). For example, /etc/pam.d/common-auth ...