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
46 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
16 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
22 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
196 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
36 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
42 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 ...
0
votes
0answers
26 views

Sending char* throug TCP Socket in C (Unix) [migrated]

i'm just learning how to handle socket and tcp connection in C. I've got an application (a long one) which basically sends and receive char arrays with the system call write from server to client and ...
1
vote
2answers
29 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
29 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
19 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
17 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
53 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 ...
0
votes
1answer
33 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
37 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
171 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
18 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
26 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 ...
4
votes
2answers
81 views

Copy directory tree without empty directories?

I have the following tree # upper letters = directory # lower letters = files A |-- B |-- C |-- D |-- e <= file |-- F |-- G I need to copy this tree to another destination, ...
1
vote
1answer
24 views

curl is giving wrong result via ssh

Curl is working fine on the node itself: [ec2-user@smokebase1 ~]$ curl -s -I --retry 3 --header 'Host: smoke-base.dev-test.com' ...
2
votes
2answers
62 views

how to configure firewall with “psad” utility to avoid port scan

I am trying to configure psad to stop port scanning and other attacks. Currently I have following rules set for my firewall which drops all incoming connection except port 22,80,443 and 3306. -A ...
3
votes
2answers
317 views

How to tell the difference between “No such file or directory” and “Permission Denied”

I'd rather not parse STDERR, but I can't think of another way to tell the difference, programmatically, between the two: $ ls /net/foo.example.com/bar/test /net/foo.example.com/bar/test: Permission ...
0
votes
2answers
37 views

keep in tar.bz2 original directory datetime

I'm looking for a solution to create a tar.bz2 file and keep the original folder timestamp. My solution is "touch -t {original timestamp}" file.tar.bz2 manuel@mfpanzuela:~$ ls -la drwxrwxr-x 2 ...
2
votes
0answers
64 views

Solaris 9: Degraded mirror unmanageable with raidctl after drive replacement

We have a pair of Sunfire v20z's (WITH LSI MPT raid) that have each had one drive in their mirrors die. bash-2.05# cat /etc/release Solaris 9 4/04 s9x_u6wos_08a x86 ...
1
vote
0answers
23 views

Redhat quitting process never works always have to kill it

I am working on a RedHat server creating a unicorn process. I have two sets of these processes being created. I am able to QUIT one of the process fine and do so over and over again create it and QUIT ...
0
votes
1answer
25 views

OSAS v4 Open Systems Accounting Software [closed]

My company recently purchased another company and along with it, came an old SCO Openserver (v5) running OSAS v4. We use TinyTerm as recommended to access this but no one knows how to use it. I've ...
0
votes
1answer
44 views

Unable to clear sendmail mqueue-client

drwxr-xr-x 2 smmsp smmsp 4.0K May 6 23:31 mqueue drwxrws--- 2 smmsp smmsp 29M May 8 10:40 mqueue-client As you can see mqueue-client is filled with 29 megabytes of unsent mail. This seems to ...
-4
votes
1answer
45 views

Server that transfers FTP to FTPS without downloading on my PC [closed]

I need to do a server to server transfer, and the data is about 1 TB in size. One server supports plain FTP, but the other mandates FTPS. Both servers are located in the US. If the data was within a ...
1
vote
1answer
31 views

How to change protected config files via web/php interface?

I'm looking for way to modify configuration file that resides below /etc directory via web (in particular case PHP) interface. While it's not a problem to read (if you set up file permissions ...
0
votes
2answers
29 views

If a web root directory has a simlink that points to a folder one-level up, does that pose a security risk?

Assuming a Linux/Unix system. Not asking about any particular server software, just wondering in general. I want to use this to include javascript libraries or things like that in multiple sites or ...
1
vote
1answer
442 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 ...
-1
votes
2answers
51 views

Security in users having sudo access

How to protect my passwords list (in different databases for example) in a UNIX environment where most of the users have sudo access to other user IDs? I have a script (main.sh) with the following ...
0
votes
1answer
37 views

Give user permission to create/delete particular file?

Is it possible to give a user permission to create/delete a file at a certain path, but not to modify other files in the same directory?. I'm using Ansible to provision a CentOS 6.4 box. I'd like to ...
2
votes
1answer
73 views

Create a link to the Unix socket [duplicate]

Is there a possibility to create a hard link for an unix socket? I'm creating a jail and symbolic links won't work, so I'm looking for a solution, how to provide an unix socket inside chrootted ...
2
votes
3answers
68 views

How do i change the global login shell on a unix system?

I want to set the login shell (the shell they get when they log in) of all existing and future users. The correct way to change the login shell seems to be chsh. But this only allows me to change the ...
0
votes
2answers
92 views

Environment variables are unavailable when running scripts over ssh

Suppose I have two hosts: A and B with users a and b. B is Windows machine with Cygwin installed, if this matters. B is configured to be accessed from A through SSH without password (it contains A's ...
2
votes
1answer
71 views

How can I make my own linux distro? [closed]

My question is bit off-topic or may be impractical. The thing is, on the web too many material available to download customized linux distro. But what if I want to make my own linux distro ? ...
0
votes
1answer
115 views

Saving SSL password for SVN in Ubuntu

I have tried to set up my SVN that way, that it saves my passwords, but for some reason it won't work. I am using a SSL certificate, for which I need to provide a password every time. I have tried ...
0
votes
0answers
19 views

Process identifier mask in z/OS

I've noticed a curious pattern to process identifier numbers on the z/OS system I'm working on (uname reports it as OS/390), they're either 1-4 digits long or 8 digits long but never in between. The ...
0
votes
2answers
53 views

Using Jenkins to access mysql files on the same instance

I have a Jenkins installation and running mysql server on the same box. One of my jenkins jobs is supposed to tar up the /var/lib/mysql folder but I get the following error tar: ...
1
vote
1answer
29 views

How do I accept two different types of network connections using iptables

I need to setup iptables for a mongodb database server, such that it allows only two types of INPUT connections: one connection to port 27017, monogdb's default port, from our main web-app one ssh ...
0
votes
3answers
105 views

Exclude with the find command [duplicate]

I need some help getting the find command to work right in a script working on. I need to be able to exclude some directories. Below I have what I'm doing as a work around. sudo find / ( -name ...
1
vote
2answers
52 views

How do I show listening open ports from the shell?

I always have to google this and ServerFault is never the first result. Typically I want to do this on a unix box, but I'd also like to know how to do it on a Windows machine from CMD.exe.
0
votes
2answers
143 views

CPU usage command for monitor script

Is there a command for FreeBSD (except the top -P) I could use to monitor my dedicated server CPU usage? I am in progress of writting my bash script which will notify me as soon as any of the CPU core ...
1
vote
1answer
34 views

Viewing the packet-size of an incoming IP

I have been looking for a sulution to this for a few hours. after no avail im asking for help here. I need to watch my incoming packets by Size. in a format similar to: IP SIZE I have tried ...
1
vote
1answer
68 views

Can sftp check for existing data?

I have 700 binary files (pdf) to download and right now only 400 are available on a sftp server. Can sftp, from the cli, determine what files exist in the local directory so it doesn't need to ...
3
votes
1answer
568 views

Can't log in to FTP on Debian with vsftpd

Linux noob here so please bear with me :) I'm trying to setup FTP access to my Apache server but I'm receiving a 530 Login Incorrect error. I installed the vsftp package via sudo apt-get install ...
0
votes
2answers
72 views

How to block rejected messages I did not send?

In exim mainlog I see a lot of rejected messages I did not actually sent (they were send from spammers). 2014-02-20 23:42:47 H=a94-132-158-40.cpe.xxxxxxx.pt (zonhub) [94.132.xxx.xxx] ...
0
votes
1answer
103 views

dmesg time vs system time time isn't correct

I hope that here is somebody that can help me with this strange problem. I think that i know why it is happening but i don't know how to solve it. Maybe it is because the BIOS time isn't set correct ...
1
vote
2answers
132 views

How do you tell if a user is “allowed to log in” on Linux?

The question is simple, I want to list all the user accounts which can log in to my system, but I'm not sure if that all the users in /etc/passwd are "could login" users? Details: I can see users ...
0
votes
2answers
89 views

Portforwarding with IPTABLES and Remote IP detection

I was able to forward 80 port from my primary server 192.168.90.1 to the second one 192.168.90.2 with IPTABLES The primary server has a public address X.X.X.X so I forwarded X.X.X.X:80 -> ...