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
0answers
45 views

Tru64 UNIX Does Not Respond

We had our old Tru64 UNIX system on an AlphaServer 400 233 crash today with I/O errors. From what I've read and the error outputs it appears that the drive containing the /usr partition is toast, and ...
1
vote
4answers
2k views

Unable to mount XP share using fs-cifs from Linux

I have a head unit that runs Linux that is connected to my PC via an Ethernet cable. I have a Windows XP share on this PC that the head unit needs to be able to mount, however, when mounting using the ...
2
votes
1answer
436 views

chattr - How to change file +i attribute without using chattr

Here`s the problem. My server got probably hacked. I would like to change a config file, but it is immutable (has the +i attribute), so I can't edit it. trying to execute a "chattr -i" on the file ...
0
votes
1answer
42 views

TOP processes by system time

I have a system running 2 processes - MySQL and Java I'm seeing 20-30% of the time spent in %system. I've looked around to try and find a way to identify which what the balance of the system time is ...
5
votes
5answers
27k views

How can I manually run a nagios check from the command line?

When defining and testing new services in nagios I have been restarting nagios, then clicking the service, and rescheduling a check for as soon as possible, then waiting until the check happens. Is ...
4
votes
2answers
4k views

Unix separate multiple commands which has '&' (execute in background) in the end

To separate regular commands in Unix is to put semicolon in the end like this: cd /path/to/file;./someExecutable; But it seems not working for commands like this: ./myProgram1 > /dev/null & ...
0
votes
1answer
1k views

Get all files using FTP via Unix Terminal

Using the FTP command in the Unix terminal I want to download all files / folders from my FTP server. When I use this command: ftp> mget * I get lots of these errors: ftp: Unable to determine ...
5
votes
9answers
9k views

Bash snippet to move all files in a directory into that directory

I have a directory with lots of files and directories in it. In order to tidy it up, I'm going to put all those files into a directory, so I was going to do something like this: $ ls | wc -l 123 $ ...
3
votes
1answer
171 views

ISC DHCPD memory leak solutions and or workarounds

Background: I have recently been put in charge of finding the root of and/or fixing a memory leak with an ISC DHCPD (4.2.5-P1) installation on a Debian (Lenny) Unix server. I have been researching ...
0
votes
5answers
2k views

Is There A Simple PHP Web Server [closed]

Is there anything that is a dead-simple PHP web server for Linux that literally takes a single PHP file and serves it via port 80. Don't want to configure a full blown web server like apache, ...
10
votes
9answers
4k views

Multiple *NIX Accounts with Identical UID

I am curious whether there is a standard expected behavior and whether it is considered bad practice when creating more than one account on Linux/Unix that have the same UID. I've done some testing on ...
1
vote
6answers
2k views

How can I install OpenBSD to a SSD without a Optical Drive?

I'm searching for an OpenBSD bootable image that I can install on SSD to run pf on. I've found these images for m0n0wall and pfSense but not for OpenBSD alone. Can somebody link me to an image with ...
-1
votes
1answer
79 views

How to share my linux folder with mac mini over nfs [closed]

I tried to mount using following command after exporting the folder in linux source machine ( NFS server) . sudo mount -t nfs -o resvport,rw 192.168.12.10:/home/pavunkumar /private/nfs It is ...
64
votes
7answers
88k views

How to forcibly close a socket in TIME_WAIT?

I run a particular program on linux which sometimes crashes. If you open it quickly after that, it listens on socket 49201 instead of 49200 as it did the first time. netstat reveals that 49200 is in ...
4
votes
1answer
108 views

Troubleshooting DNS issue

I am trying to troubleshoot a DNS issue I am currently having with a new project host on an AWS EC2 instance. It is a brand new domain, and I have already updated the nameservers on the registrar ...
5
votes
5answers
46k views

How to FTP multiple folders to another server using mput in Unix?

I am logged in on a server (using Putty). from there I'm connecting using FTP to another server. I want to copy several folders from the first server to the second server using mput. Like: ftp> mput ...
7
votes
5answers
2k views

Replacement for NIS/YP

The company that I am working for is embarking on replacing the current locally developed NIS/YP structure with LDAP. We already have AD in house for the Windows stuff and would like to consider ...
79
votes
14answers
71k views

In my /etc/hosts/ file on Linux/OSX how do I do a wildcard subdomain?

I need to test sub-domains on my localhost. How can I effectively have this result of adding *.localhost.com to m /etc/hosts/ file? If it's not possible, how do I work around this problem? I need ...
-4
votes
2answers
77 views

Closed source alternative to Linux? [closed]

Is there any closed source alternative to Linux that's still actively used and developed? I'm looking for a good, expensive Unix-like OS please. The only other OS's that come to my mind are the ...
3
votes
1answer
65 views

screen in screen, detach only last one

I have strange issue on my hands. I have opened (GNU) screen for one serial console and in that same console I have opened another screen to another serial console. It was working but I am now ...
-1
votes
4answers
611 views

need to make password less login for same linux server with same user [duplicate]

I need to make passwordless login for same linux server with same user. [airwide@eir ~]$ hostname -i 10.3.7.73 [airwide@eir ~]$ ssh airwide@10.3.7.73 airwide@10.3.7.73's password: how can make to ...
1
vote
2answers
117 views

My reverse zone doesn't work

I'm trying to configure my reverse zones on Centos server. I've read many articles and it looks like I'm doing everything right and don't know what to check or fix next. The following is a part of my ...
1
vote
1answer
182 views

Upload files from vsftpd ftp client in /tmp and once they are uploaded, move them to original folder

I'm having issues with my application. The scenario is that, there is a php cron which is running every 1 minute and it processes the uploads folder, wherein, files are uploaded via ftp ...
-3
votes
3answers
58 views

united authentication for multiple *nix hosts? [closed]

Something similar to NT domain controller in Linux? E.g. two hosts with one shared authentication. How to?
-1
votes
1answer
844 views

Postfix connects to wrong relay?

I am trying to set up postfix on my ubuntu server in order to send emails via my isp's smtp server. I seem to have missed something because the mail.log tells me: Jan 19 11:23:11 mediaserver ...
13
votes
3answers
4k views

A better unix find with parallel processing?

The unix find(1) utility is very useful allowing me to perform an action on many files that match certain specifications, e.g. find /dump -type f -name '*.xml' -exec java -jar ProcessFile.jar {} \; ...
-1
votes
3answers
384 views

what is the difference between Linux and Unix “in general” and “command-line”? [closed]

if anyone can Summarized the difference between Linux and Unix in general and in command-line in particular
13
votes
2answers
2k views

Linux/Debian - What does 'pee' in moreutils do?

I recently discovered the 'moreutils' package in Debian (and Ubuntu). It's a collection of convenient unix tools. One of the commands is 'pee'. The man page says: pee is like tee but for pipes. ...
22
votes
6answers
8k views

Bash Loop - How to stop the loop when I press Control-C inside a command?

I am rsyncing a few directories. I have a bash terminal open and am executing something like this: for DIR in * ; do rsync -a $DIR example.com:somewhere/ ; done However if I want to stop the whole ...
2
votes
1answer
3k views

502 Bad Gateway Error Nginx connect() to unix:/tmp/unicorn.sock failed

This is my first question on Server Fault. I could not find a solution to this while searching the web. I am working on an OpenBSD server running Nginx, which I did not setup, that is throwing a 502 ...
2
votes
5answers
9k views

How do I delete everything in the /tmp/ folder?

I do "sudo rm *" and it does not remove everything. (I probably have lots of objects in there which I don't need.) I'm not asking whether it's ok to remove everything in tmp - i'm asking how to do it ...
2
votes
1answer
138 views

TCP traceroute works fine but not UDP

So I ran into this issue where doing traceroute some-server.abc.com returned *** for multiple lines and finally reached maximum hops limit. Doing a traceroute -T some-server.abc.com works perfectly ...
-2
votes
1answer
63 views

How can I copy files by creating symlinks?

I want to traverse a filesystem and copy parts of it to another filesystem by creating symlinks instead of copying anything. rsync would be ideal if it had something like a --local-copy-via-symlink ...
1
vote
2answers
74 views

Unusual results returned by df, what caused it, how to fix?

Here is a copy-paste: root@****#df -h /var Filesystem size used avail capacity Mounted on /dev/md/dsk/d4 9.8G 8192E 0K 90204286294657% /var
0
votes
1answer
47 views

Tomcat Process occupying lot of Memory in UNIX BOX, how to reduce

I am using a play framework webapplication calling webservices, all these applications are deployed in one tomcat/apache server, when in production box, multiple process are started for tomcat which ...
-4
votes
6answers
135 views

Help with UNIX Crontab! [duplicate]

I want to shedule a task for 8.30am every Monday, for every month, for every year... What would the UNIX Crontab format be? Many thanks O.
4
votes
1answer
2k views

No space left on device - wrong size

I'm running an FreeBSD dedicated server. I am getting messages that I have ran out of space on the device. df -h is saying that I have no space left but du -sh /* doesn't even show the directiories ...
2
votes
1answer
81 views

Configure range of virtual user names with same password

I would appreciate if there is anybody who can advise me if the following FTP configuration is possible. I need range of read-only users that follow this pattern: (_[0-9]{15}) e.g., ...
-1
votes
1answer
212 views

Unable to connect to localhost or local ip but can connect to other servers or websites

I have a server with nginx|bind|mysql installed, everything is working fine but I am unable to connect to localhost or any websites hosted on server. I tried pinging and wget and none of them work ...
0
votes
0answers
369 views

Unexpected EOF write error

We have a Sun Solaris 10 server that is failing to backup using tar to write to tape. tar cEf /dev/rmt/0cn . The complete error is tar: write error: unexpected EOF tar error code 2 The ...
3
votes
1answer
826 views

sudo still ask for password when NOPASSWD is used

I read all sudo posts on serverfault, but I still cannot figure out what I'm doing wrong. Normally I finally find the solution but not this time : I want apache user to be able to execute this ...
20
votes
4answers
5k views

Can you have more than one ~/.ssh/config file?

We have a bastion server that we use to connect to multiple hosts, and our .ssh/config has grown to over a thousand lines (we have hundreds of hosts that we connect to). This is beginning to get a ...
12
votes
3answers
9k views

How do I do 'mount --bind' in /etc/fstab?

I'm trying to figure out how to add "mount --bind /proc/ /chroot/mysql/proc" to /etc/fstab, but how can I to do this?
0
votes
1answer
50 views

Strange behavour of which in a shell script launched as a forked process

So I have a java process that is doing some automation. One of the things it has to do is find the JDK home on random machines. So I wrote a shell script to try and find the JDK home assuming that ...
2
votes
5answers
7k views

How do I know what processes are using the network?

Sometimes I can see heavy usage of network in my Gnome System Monitor. I wonder what process is downloading/uploading data. Is there any tool which can show me: what processes are using the Internet ...
35
votes
7answers
23k views

What is a good solution to encrypt some files in unix?

I am looking for a utility to encrypt certain directories in Linux. I am not looking for any full disk encryption services, but simply to encrypt a few directories for the purposes of storing files in ...
0
votes
2answers
471 views

I'm on Windows. How to get time of a remote linux host [closed]

I'm trying to find a Windows command that retrieves the current time of a remote Linux\UNIX host. I know I can use ssh but I'd like to know for alternatives that do not require user and password. ...
2
votes
1answer
112 views

Unix hosts file order

For a long time I never even noticed but I made wrong /etc/hosts configuration on many machines. The order by the manual: 127.0.0.1 localhost 192.168.1.10 foo.example.org foo ...
0
votes
1answer
52 views

Usergroups in LDAP: User and Group in same object

"Usergroups" are a common concept in UNIX, many Linux distributions (e.g. Debian) use it as default. It means that each user has its corresponding private group (e.g., User "alex" has also a group ...
0
votes
1answer
69 views

Password reset is not working

I am using krb5 authentication to authenticate users in my machine. I am trying to change my password using passwd command but it failed. ~:$ passwd ~:$ Changing Password for bharathi ~:$ Kerberos 5 ...