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

-1
votes
0answers
9 views

Tell Java on Cygwin it's running on Unix

I have a strange, proprietary Java program that's made for Linux. It actually runs fine on Mac, but it was really made for Linux in mind. For example, so if its parts are started with bash scripts. I ...
1
vote
0answers
18 views
+50

How to control the rate of automatic restarts of a runit service?

I have this runit service with run and log/run scripts properly working. As it happens, the service itself can crash for external reasons and might not be able to start for many minutes. The default ...
-1
votes
0answers
21 views

how to hide .php extension from url [duplicate]

I used the following configuration to hide my .php extensions from the URL's in my website. But it does not work. I'm using a Unix Server. RewriteEngine On RewriteCond %{REQUEST_FILENAME}.php -f ...
-2
votes
0answers
16 views

Terminal menu for SSH config shortcuts? [closed]

I've got thousands of SSH shortcuts in my .ssh/config file. I'm looking for a way to easily go through and/or search the list of servers/shortcuts. Ideally I'm looking for a terminal application ...
0
votes
0answers
28 views

Setting Samba passwords using Chef without storing plain text passwords in data bags

We have a server that is configured using Chef. Currently, the way that chef manages the passwords is by simply copying down the samba tdb databases and updating the shadow hashes of each user. ...
1
vote
1answer
32 views

Should I create ZFS zpools with whole disks or partitions?

I am making zpools on FreeBSD machine. While creating zpools i observe these two cases:- If i take raw disks and create zpool then i am able to form zpools and they are working perfectly. If i ...
-2
votes
1answer
14 views

DocumentRoot Path in browser?

I'm using Apache v2.2.26 on Mavericks and I am unable to understand why http://localhost/~username/Sites/ returns a 404 error, when, in fact the directory, Sites, exists, whereas ...
-1
votes
0answers
21 views

How to kill all process for a given user that take longer then x time

When I list processes with ps auxf I often see some that are stuck and I need to manually kill them. How can I do it with one command? Example ps result: $ ps auxf USER PID %CPU %MEM VSZ ...
0
votes
0answers
13 views

Collectd types.db save unix epoch time

I am trying to save unix epoch time to collectd and get it out with command: collectctl getval servername/stime/execstime The output I get is showed like this: value=9.998742e-01 The type I am ...
0
votes
0answers
14 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 ...
2
votes
1answer
53 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 ...
-1
votes
1answer
93 views

Routing traffic through different interfaces based on incoming IP

I am trying to setup a unique setup where I have to route traffic that's incoming to one server and have the traffic based on the incoming IP address get routed through to different interfaces and ...
0
votes
1answer
34 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 ...
-1
votes
1answer
34 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 ...
3
votes
1answer
92 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 ...
4
votes
1answer
74 views

How to trigger cross-platform jobs between Windows and Unix

I have an application which has components on Windows and Unix. I need to run overnight jobs which initiate tasks/jobs on both environment. These need to be sequenced so I cannot simple use Cron / ...
-4
votes
2answers
62 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
54 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
vote
2answers
65 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
39 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 ...
-1
votes
4answers
97 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 ...
3
votes
2answers
143 views

Is “sudo su -” considered a bad practice?

Background I know the difference between su -, sudo su -, and sudo <command>: su - - switches user to root, requires the root password sudo su - - switches user to root, requires only the ...
0
votes
1answer
42 views

Find Users without a password in UNIX AIX

I'm searching for a script that finds users who don't have a password. Could anybody please explain me the commands that are needed in such a script?
2
votes
1answer
52 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 ...
1
vote
2answers
51 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
-2
votes
1answer
42 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 ...
3
votes
1answer
366 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 ...
-1
votes
1answer
79 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
117 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 ...
2
votes
1answer
69 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., ...
2
votes
1answer
195 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 ...
0
votes
1answer
21 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 ...
3
votes
3answers
268 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
2answers
152 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
56 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
27 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
32 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 ...
7
votes
1answer
224 views

Linux/Unix - /etc/sudoers - host definition

can anybody tell me in which case the sudo host definition is useful? I mean this part of a line in the sudoers file: bob host1 = NOPASSWD: reboot In which environment (except sudo via LDAP) do I ...
0
votes
1answer
73 views

Configure IPv6 on FreeBSD webserver

Seems I just can't nail the right rc.conf configuration for IPv6 on my FreeBSD 10 VPS. I'd like to go completely IPv6 and tutorials/instructions i followed aren't really working for me somehow. It's ...
5
votes
1answer
122 views

Send interactive zoning commands to Brocade switch

I have a Brocade FC switch that I'd like to do some zoning on. I have a build file with too many lines to copy-paste into a normal interactive session, and I have ssh set up with pre-shared keys ...
1
vote
2answers
45 views

Incoming tcp SYNs possibilities

This might be a general TCP question. Can I receive TCP SYN packet on an established connection OR a connection in TIME_WAIT state? Is is possible?
1
vote
1answer
31 views

Minicom Successive Address Dialing

I've been tasked with writing a script for the minicom connection utility that tests a series of numbers in its dialing directory, I have found the baked in scripting language to be near useless. I've ...
0
votes
1answer
78 views

Using pppd with a serial port?

I just need to send/receive a messages through a unix-socket with PPP. But at first I want to launch the pppd with an usual serial port to make sure I know how it works. As I see, if I bind a pppd to ...
0
votes
2answers
28 views

updating, upgrading debian linux server except a package

I was looking for a command line to update/upgrade my VPS with the exception of the web server software. I have Nginx v.1.4.7 on my VPS and don't want it to get updated/upgraded when I run any ...
2
votes
1answer
402 views

How do you configure X11 forwarding over SSH on AIX?

Here is what I've tried. I've edited /etc/ssh/sshd_config on the remote AIX system X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes as well as set $DISPLAY DISPLAY=localhost:10.0 export ...
1
vote
1answer
190 views

What should the permissions be on for PostgreSQL /data files?

I installed Postgres 9.3 from the osX binary. When I attempted to restart using pg_ctl restart, I received the following error: $ pg_ctl restart pg_ctl: could not open PID file ...
0
votes
1answer
52 views

Nginx possible bug with dashes (-) in server_name

The following Nginx (v 1.2.1) configuration server { listen 80; server_name aaa.example.com; root /var/www/aaa; } server { listen 80; server_name hello-world.example.com; ...
3
votes
2answers
944 views

Why would chmod give “No such file or directory” when running recursively?

I can change the permissions of the file directly: # chmod --changes --recursive ug+rwX /var/www/shared/tmp/cache/assets/BA0/280/sprockets%2F286302903364106648b609d708884f78 and I can also ...
0
votes
0answers
45 views

*NIX devices getting Permission Denied errors after downloading ~4/5MB of data on FreeNAS CIFS share

I have my FreeNAS (FreeNAS-9.2.0-RELEASE-x64 (ab098f4)) which is set to rwx for my FreeNAS user and can be anonymously accessed through my network. When copying stuff from my windows host I get no ...
1
vote
1answer
41 views

Changing default ownership for files created by a user

I gave user "jdoe" access to SCP files onto a Unix server hosting Wordpress. Files this user creates within the /var/www/Wordpress folder (and subfolders) need to be owned by www-data or at least the ...