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

0
votes
1answer
118 views

Samhain: depth of “-1”

In a samhainrc file you are allowed to have a depth associated with your dir. Like so: dir=3/etc/tinydns But what does it mean when you have a depth of -1? ( I was not able to find anything in the ...
3
votes
4answers
1k views

Is there a way to throttle syslog

We use Log4J with its SyslogAppender to send messages to a central syslog-ng server, all running on Unix machines. Is there a way (whether that's in Java or in Unix) to throttle the number of ...
2
votes
1answer
93 views

access shared folders from unix to windows

how to access a shared folder in unix system connected through LAN from windows using IP address
0
votes
1answer
73 views

Easy to use remote PHP app for controlling file permissions?

We have a NAS here, in a small company, that I sysadmin (not my full-time job) and my boss want to have control on directory access. It's a QNAP so it's Linux-powered. The NAS doesn't provide an ...
0
votes
3answers
148 views

In unix (Ubuntu) How do I run a service, or application as a certain user?

I'm told I should run my Rails app as the user www-data, how do I do that? How can I also run say Nginx, and other services as certain users? What is the best practice for this?
0
votes
2answers
488 views

Failover clusters of WPAR with HACMP in AIX 6.1?

Is it possible to create a failover cluster using Workload Partitions (wpar) in AIX 6.1? I want to create a two node cluster such that each of the nodes is a wpar and in event of a software failure ...
2
votes
3answers
13k views

unix/setfacl: set directory default acl for correct permission inheritance

I have several svn repositories in /projects/svn which should be writeable by 2 users, mine (unix), and wwwrun (apache, for svn over http) newly created folders and file should be read/writeable by ...
2
votes
3answers
50k views

Most simple way of extracting substring in Unix shell?

What's the most simple way to extract substring on Unix shell (with regex)? Simple means: less feature less options less study Update I realized regex itself is conflicting with simplicity, and ...
4
votes
5answers
3k views

Appending output to a file at the same time truncating it to N lines

I'm trying to find a simple way to append/write to a log, while at the same time keeping it the log trimmed to a reasonable size. I would prefer to not just append files forever, and then have to have ...
2
votes
2answers
4k views

Monitoring /proc/sys/fs/inode-nr

As part of a general overhaul of some Nagios scripts, I am adding parameters to the scripts so that the thresholds can be determined on a machine-by-machine basis. As an example, we are specifying ...
1
vote
3answers
327 views

How and where to create Subversion repository in best practice by web development

Could you teach me, how to create svn on the Redhat server, in which several sites, there is need to each of them: /home/webmaster/www/kmp.ru/ /home/webmaster/www/yandexapi/ /home/webmaster/www/fms01....
1
vote
1answer
190 views

mysql & maatkit: What kind of blocking will mk-table-checksum do?

We have two MySQL servers set up with simple master-slave replication. We currently use all MyISAM tables, but may move to InnoDB in the future. Our largest tables are more then 2GB. I would like to ...
3
votes
2answers
557 views

What Unix command can I use to enforce a limit of 100 files in a folder?

I would like to delete the oldest files in a directory, after a limit of 100 files. In other words, I want to ensure that no more than 100 files exist in the directory, and if a limit is exceeded, ...
0
votes
1answer
100 views

mod_wsgi with dynamically allocated UIDs

I have a system where users upload wsgi applications and we serve them using apache/mod_wsgi. For scaling reasons, we're simply using the WSGIDaemonProcess directive and setting them to dynamically ...
1
vote
4answers
3k views

Solaris/Unix equivalent of Event Log

What is the unix equivalent of the Windows Event Log - the tool that logs all processes that start and stop. Need not be exact - with the whole GUI and everything. Anything close would do.
11
votes
2answers
9k views

How do I print contents of at jobs?

I have a Debian box with some jobs scheduled using at. I know I can list the jobs with their times using atq, but is there any way to print out their contents, apart from peeking into /var/spool/cron/...
1
vote
3answers
543 views

uname standard installation path

Just wanted to know - is there a standard path where uname is installed? e.g. /usr/bin/uname or /bin/uname I'm asking with regards to HP-UX, AIX, SunOS and RedHat Linux Is there a common path in ...
8
votes
4answers
19k views

How to move directory from one server to other?

I have SSH access to the both servers, one of them is empty. How can I move site directory from old server to new server via SSH connection? PS: On both servers is unix
-3
votes
1answer
480 views

Pipe with ls, grep and wc [closed]

Can anyone tell me about the output/purpose of this command? ls -l | grep gopal | wc -l
0
votes
1answer
3k views

Can i automate a script to get EMC grab reports from different servers

Here is my issue, we have 170 unix servers , 80 ESX servers and many Windows (2003/2008)s pread across 3 EMC Clariions and 2 VMAX in which I want to perform host grabs on all the servers prior to ...
1
vote
1answer
1k views

use SED recursively in linux?

I want to implement the following command recursively sed -i 's/href=\"1\//href=\"\/1\//g' ./* so that it replaces all href="1 with href="/1 in all sub-directories. Is there a flag I can add to ...
9
votes
8answers
18k views

Easy way to get IP address from hostname using a Unix shell

What is the easiest way to get the IP address from a hostname? I was thinking about trying a ping and parse it from the output. However, that doesn't seem very nice and will probably not work the ...
8
votes
2answers
2k views

Monolithic vs Micro kernel

What are the differences between a monolithic kernel and a microkernel with respect to structure and security. My friend told me that Linux systems have monolithic kernel and thus are not easier to ...
3
votes
1answer
394 views

Can't receive email on VPS server [closed]

Since a couple of weeks I can't receive emails with a mailserver, in combination with a VPS server. When I trace the e-mailadres on http://www.mtgsy.net/dns/utilities.php I get the following result: ...
3
votes
6answers
3k views

Ifconfig Alias Address Assigned by DHCP

I would like to create several aliases to eth0, but have the addresses assigned by DHCP instead of being set to static IP's. Is this even possible? All the examples I've seen assign a static IP ...
1
vote
2answers
7k views

What causes Permission Denied when doing an ls on a symbolic link, when the underlying file has 'r' granted to all?

Not sure if this belongs here or on superuser.com. I'm battling with getting a C process working that needs to link in Oracle dynamic libraries. It compiles and runs fine under the oracle user (the ...
3
votes
6answers
2k views

solaris vs linux for production servers (many servers like tens in a cluster)

which os should I choose solaris or linux if linux which distribution? i want to deploy my java app on production servers in a cluster on tens of servers... can someone tell me what are the key points ...
0
votes
3answers
303 views

how to make a special cron job?

i need to make a cron job to run a java program every 40 minutes on unix server. considering that: 1)it should run from 8h30 to 12h30 and from 14h to 18h from monday to friday 2) take ...
1
vote
2answers
701 views

Visudo All Password Less Access to Script (Visudo + Cron)

I want my user 'dave' to be able to run a bash script without entering a password, so the script can run with crontab? For all other activities I'd like this user to be required to enter a password (...
0
votes
1answer
445 views

Can I set noatime for my XEN guest OS partition? Will it work?

I have a VPS in cloud environment based on XEN Virtualization platform. /etc/fstab looks like that: LABEL=PRGMRDISK1 / ext3 errors=remount-ro 0 0 As far as I know IO can pretty ...
2
votes
2answers
692 views

How do I run Postgres under “nice”?

I usually start Postgres with pg_ctl -D /db start How can I make it start under "nice", so it runs at a lower priority?
1
vote
5answers
5k views

file permission is not correct while copying files with SCP

we are trying to copy files from one server to another but the permissions of copied files are not correct. I have tried following solution but its not working. http://linuxshellaccount.blogspot.com/...
0
votes
2answers
2k views

Copying windows shared folder files on unix into Unix

I am on a unix box with Sun OS 5.0. Now I have a shared folder on a Windows server on my LAN. I have some files on Windows to be copied into my unix by running a script on unix itself. So windows box ...
0
votes
1answer
238 views

Tool for Copying windows shared folder files on unix into Unix

I am on a unix box with Sun OS 5.0. Now I have a shared folder on a Windows server on my LAN. I have some files on Windows to be copied into my unix by running a script on unix itself. So windows box ...
0
votes
4answers
2k views

how to automatically and periodically upload a file from a windows machine to a unix server?

i have 2 csv files on my windows xp machine that i want to transfer to a unix server every hour (because the 2 files are updated every 30min). so i search on the web and i found this possibility: to ...
2
votes
1answer
94 views

Writing UNIX scripts that include “init”

I have an install script for the operating system that I'm setting up and, in part of the script, I need to install the graphics card drivers. In order to do this, I'm required to switch to runlevel 2 ...
1
vote
1answer
125 views

Unix memory management

When using top/free to see memory usage in Unix, there're 'used/free/shared/buffers/cached' categories. What do those exactly mean? I've tried to look for a wiki but didn't find detail information. ...
0
votes
1answer
429 views

How do I arrange millions of images? [duplicate]

Possible Duplicate: Storing a million images in the filesystem I am designing a website which will potentially have millions of images. Whats the best way to arrange them..All of the images ...
0
votes
1answer
1k views

Change primary group with sudo (-u) -g

I would like to run commands on an AIX system with sudo -i instead of just sudo. This way I can make sure that any environment settings like umask will be those of the user I'm running the command as. ...
0
votes
1answer
436 views

Weird output from df on Solaris 9

I just ran df -h on a Solaris 9 machine and got a a very weird output, something I have never seen before. /proc 0K 0K 0K 0% /proc mnttab 0K 0K ...
1
vote
1answer
47 views

Multiple directories update with changing user permissons

I have multiple users on one machine with FreeBSD7.3. Each user has his own site (only one). Each site is a copy of master-site with slight differences (ie. database configuration, template files). It'...
1
vote
2answers
139 views

Getting Long-term load statistics from RHEL Cluster?

Is there any straightforward record/poll of long term load record instead of the usual 1,5,15 minute load values? Background: Trying to convince faculty that current cluster solution is underutilized ...
0
votes
1answer
285 views

Recording remote xserver output without x-forwarding

Any ideas for essentially creating a loop-back display on a remote server, so I run a X application, and instead of forwarding that display to a local client, the output is essentially 'screen-grabbed'...
2
votes
2answers
128 views

Safely deleting all files of a given name

On Mac OS X, .DS_Store files seem to contain custom view settings for the directory when it is viewed in Finder (file manager GUI). I want every directory to use my default view settings. Is this ...
2
votes
1answer
2k views

Best file structure for storing 1000s of photos (in different sizes)

I am developing a site that lets people upload images. We resize each image to 4 sizes. We're expecting lots and lots of images and are considering ways to increase performance with regards to the ...
2
votes
5answers
517 views

How to get the timezone of a system image?

I'd like to get the timezone of a system. Now some caveats... Im using Linux, and the target systems will be UNIX. I'll be using only system images, ie. not the live system, but the partitions will ...
0
votes
1answer
254 views

Script to replace user permissions?

I am moving resources from Mac and Unix boxes onto our windows storage server. I need to replicate permissions from Mac and Unix using the users active directory equivalent. So: File A On Location A ...
13
votes
5answers
5k views

What are the practical differences between Interix and Cygwin?

Both Interix and Cygwin appear to provide a Unix-like user environment in Windows. What are the practical differences between the two, in terms of, for example: Unix-like "feel" Performance Package ...
2
votes
4answers
24k views

How to test if a remote host port is accessible or not in Unix

In Windows, I go to command line and 'telnet ' to check the port. How to do the same in Unix? It seems some people using 'tcpdump port ' commands. Is this monitoring the real time traffic? Thanks.
2
votes
3answers
533 views

Easy notification of arbitrary events on remote Linux/Unix computer

I am looking for a way to easily define one-time notifications of some events that take place on a Linux box. Events might include things like: file /tmp/my.lock is unlinked or process 666 finished or,...