Excerpt from the Wikipedia page Unix was originally written in assembly but has since been rewritten in C. It has been branched many times both commercially and open source. One popular variant is the BSD variant which originated from the University of California, Berkeley. It also gave rise to ...
0
votes
0answers
14 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 ...
1
vote
1answer
15 views
chcore command not taking effect
I am trying to change the behaviour of where core dump files get written to, as described here:
...
1
vote
1answer
22 views
Secure LDAP Alias Lookup through Sendmail
I'm trying to configure sendmail to use an LDAP lookup as an alias table.
I have this line in my config:
Kldapfullname ldap -k"uid=%s" -v"mail" -h"my-ldap-server"
I've been using that for a long ...
3
votes
1answer
63 views
Apache executes HTML, but not PHP; PHP CLI works
I am running php 5.3.3 on rhel 6.2 with Apache 2.2.15 and am failing to get PHP code interpreted by Apache.
There are no errors (in the system log, httpd/error_log, or php_errors.log) - I have ...
0
votes
2answers
20 views
Apache executes HTML, but not executing PHP; PHP CLI works
I am running php 5.3.3 on rhel 6.2 with Apache 2.2.15 and am failing to get PHP code interpreted by Apache.
There are no errors (in the system log, httpd/error_log, or php_errors.log) - I have ...
0
votes
1answer
36 views
Unix: giving a group permissions to a file
On a Ubuntu server, I have a database file under a user's home directory, specifically /home/pistacchio/lessico/mydatabase.db. Apache works under the group www-data. What is the best way to grant ...
3
votes
4answers
276 views
Bash script is not working as cron job
I have the following shell script
$cat capture.sh
TIME=$(date +"%H-%M-%d-%m-%y")
IP="203.208.198.29"
PREFIX=$TIME$IP
tshark -f "udp" -i eth0 -w /root/captures/$PREFIX.cap&
pid=$!
sleep 2m ...
0
votes
1answer
13 views
Directory replication in New server
Scenario is to replicate all the directories,sub-directories,files,symbolic links present in Linux development Server to Linux QA Server.
Lot of unix users also to be created.
Consider an unix ...
1
vote
1answer
26 views
File open notification
Is there a way to be notified/trigger a script when a particular file is opened for reading or writing? I'm not specifically thinking of security but if anyone knows any linux/unix security mechanisms ...
2
votes
1answer
26 views
How to find any symbolic links that point outside a given folder tree?
I have a bunch of folders/files that are 10+ levels deep.
How can I find any symbolic links that point outside this folder tree?
I tried find -type l but this returns all soft links... even ...
0
votes
0answers
32 views
L2TP over IPSec on Debian
I've configured the IPSec and XL2TPd daemons properly, both boot fine. At the moment, the issue I'm having is I get this message.
ipsec_setup: multiple ip addresses, using 127.0.0.2 on venet0
...
1
vote
1answer
16 views
Running vmstat slows performance of the unix server?
Does vmstat degrades performance of the unix server?
0
votes
0answers
8 views
Child processes remain after quitting screen [migrated]
I'm seeing some strange screen behavior on OSX. When I quit screen, child processes are not killed.
$ screen
$ tail -f (or some long running process inside screen)
Then, I kill the current screen ...
0
votes
0answers
38 views
I don't recognize the locale variables
I am use to ISO and UTF formats being defined when /bin/locale is ran.
however I am getting formats that I am not familiar with :
> locale
LANG=C_C.C
LC_CTYPE="C_C.C"
LC_COLLATE="C_C.C"
...
0
votes
2answers
21 views
How can I install a perl module available only to my user ID?
I need to install some Perl Modules for my Perl scripts. However those modules are not available on the servers I want to run the scripts on. I also do not want to mess with server wide library ...
0
votes
1answer
34 views
socat: Show incoming connections
I am slightly going mad. Even if I call socat like this:
socat -vvvv tcp4-listen:9000 tcp4-listen:9001
it works perfectly, but doesn't inform me about incoming TCP connections! Is there an ...
3
votes
2answers
164 views
Is there a CentOS server edition and a seperate desktop edition?
Until now I have been using Ubuntu server. Ubuntu has separate downloads for desktop and server editions. I want to try a CentOS server, when I download a copy from a mirror through centos.org the ISO ...
0
votes
0answers
18 views
chuser alternative in HP-UX command to edit /tcb/files/auth/s/someuser [closed]
Possible Duplicate:
command to edit /tcb/files/auth/s/someuser
is there a command in HP Unix used to change for example min age for password in this file without actually editing the file?
...
0
votes
1answer
19 views
command to edit /tcb/files/auth/s/someuser
is there a command in HP Unix used to change for example min age for password in this file without actually editing the file?
/tcb/files/auth/s/someuser
it has to do with trusted or non-trusted ...
3
votes
6answers
180 views
Alternate way to create a clone of a UNIX System
THE STORY:
(If you don't like to read much, down below is the question :) )
Where I work we have two HP RP2470 servers same hardware same number of hard drives same everything :).
One of them is a ...
1
vote
2answers
43 views
Why does chmod(1) on the group affect the ACL mask?
I am trying to understand this Unix behavior (which I happen to be testing on Ubuntu 11.10):
$ touch foo
$ setfacl -m u:nobody:rwx foo
$ getfacl foo
# file: foo
# owner: michael
# group: michael
...
-1
votes
1answer
47 views
unix read permission
I have a quick question about how the read permission works. Does read permission mean I can open the file?
The situation is this: FTP server where I have an account that is not Root. There, files ...
0
votes
1answer
22 views
problem_ldap_bind
contents of file.ldif
(le file.ldif)
dn: dc=ircoms,dc=com
changetype: add
objectclass: top
objectclass: dcObject
objectclass: organization
o: ircoms
dc: ircoms
dn: ou=People,dc=ircoms,dc=com
...
0
votes
1answer
33 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 ...
-2
votes
1answer
164 views
1
vote
2answers
180 views
Why does “cat /dev/null” and “ls” take 5 seconds to load?
One of my web servers is responding very slowly. Even to simple unix commands. Can you help point me in the right direction to debug?
Here's a crazy example:
# cat /dev/null
This command ...
4
votes
3answers
258 views
What equivalent technologies to Microsoft's forthcoming ReFS exist for Linux/Unix?
With the announcement and write-up of ReFS (Resilient File System) on places like arstechnica, I am curious to know what technology, or technology stack, exists for Linux/Unix for a similar outcome.
...
0
votes
1answer
32 views
Can't get postgresql running from Homebrew with Lion
I'm new to unix and having trouble running initdb with postgresql. I installed postgres via homebrew with "brew install postgres", and have attempted to run the initdb command as follows:
initdb ...
2
votes
1answer
28 views
Can UNIX/MSAD LDAP/Kerberos authentication work without matching usernames?
It looks as though there is a solid requirement for usernames on the UNIX client and in the MSAD to match for kerberos authentication to function (I think LDAP authentication too).
Is this absolutely ...
0
votes
1answer
36 views
HAProxy configuration file
Where it is located? Sometimes I see it under /etc/haproxy.conf, other times at /etc/haproxy/haproxy.cfg. IF both reside, which one precedes then?
1
vote
2answers
60 views
I want to use mail@mydomain, but user mail already exists (Debian 6)
I'm trying to create a user "mail" in my fresh VPS (Debian 6), so I can use the email address mail@mydomain, but I receive the error
useradd: user 'mail' already exists
Indeed, /etc/passwd contains ...
1
vote
0answers
20 views
Is it possible to make scp fail when you do a local copy? [migrated]
Is it possible to make scp fail when you do a local copy? I find it annoying to accidently create files with names like 192.168.11.5 when I meant to type 192.168.11.5: and hence copying the file to ...
-1
votes
1answer
43 views
Old ubuntu password
I know how to set new password of root in ubuntu 10.04 if I don't know root pasword and grub has no password . I want to know that whether I could get the old password which was set before I changed ...
2
votes
1answer
33 views
Can daemontools (djbtools) be configured to start multiple processes as a single UNIX service?
If I have an application that requires two separate processes (front- and back-end) to run properly, is it possible to launch both of them from a single runscript and have daemontools supervise both ...
0
votes
3answers
79 views
Sendmail is not sending
I have a sendmail server on a Solaris 10 server that's stopped working. I can't seem to find anything about failed messages in /var/adm/sendmail. Here's what I'm seeing when I try to debug:
...
0
votes
2answers
67 views
SOLARIS + uname -v + OS version
when I type:
uname -v
from where this command (uname -v) take the OS version ? from which file/configuration-files ?
0
votes
3answers
100 views
Does /var/spool/mail/user ever get cleared?
I have a crontab task running every 5 minutes. It writes an output (result of the .sh file run by the crontab) to the /var/spool/mail/user. Should I be worried that this spooler will build up and slow ...
10
votes
4answers
514 views
how many user accounts can a unix-like OS host?
Let's say I want to have a server with as many user accounts as possible. How many is the max?
I want millions of user accounts. Is that crazy? I'd host dozens of load-balance mirrors of the box, ...
1
vote
1answer
124 views
SSH whitelist 2 addresses
We want to block all access to SSH, except for two IP addresses. One address is dynamic, it starts with 124.567.890.xxx where xxx is changing all the time. I read that you can do this by changing ...
0
votes
1answer
26 views
Use tar to exclude one directory (but not another) that matches a pattern
I'm working on doing a pretty straightforward tar for a site, but there's a wrinkle. Here's the file structure of the site:
...
files/
images/
images/visitors/
...
logs/
...
...
2
votes
3answers
254 views
Enabling apt-get on a default Amazon EC2 instance which has yum installed
I'd like to call something like:
sudo yum install apt
to enable me to use apt-get as well as yum for installation.
However this doesn't work. I get the following back:
Loaded plugins: ...
0
votes
1answer
49 views
Accessing mac address from ad-hoc network [closed]
Running a wireless ad-hoc network from an osx machine, can I programmatically access level 2 data (specifically mac address) of other wifi devices within range?
14
votes
4answers
593 views
What is the first digit for in 4-digit octal Unix file permission notation?
3-digit:
644
ugo (user group other)
4-digit:
0644
?ugo (??? user group other)
What is the first octal digit for in 4-digit octal Unix file permission notation?
8
votes
6answers
59 views
Track, save and revert file system modifications made by a program under Linux
I'd like to be able to, when a program such as an installer is ran, track the list of the modifications made to my filesystem so that I can revert them afterwards.
EDIT: This concerns a non-packaged ...
1
vote
1answer
32 views
What are the ramifications of UNIX files and directories where owner doesn't have group rights to the file?
I've a group of users, all of which are in a single group. Then I have a Java daemon that is a member of a seperate group.
I want both the users and the daemon to have access to the same set of ...
0
votes
1answer
33 views
SFTP on Unix defaults to Key Authentication
This is probably a simple one for all you Unix whiz' out there, but I can't figure it out, so I am trying to sftp into a windows server from the command line, and the remote refuses connection. When I ...
1
vote
1answer
110 views
Clone hard drive Solaris 8 (SunOS 5.8)
I have an old 73gb SAS SCSI drive, so I plugged in a new 73gb SAS SCSI and I want to clone everything from it to the new drive..
I want to clone SCSI hard drive SD20 to SD21.
Is there an easy way to ...
2
votes
4answers
111 views
What are my options for centralizing Unix user management
We have 15 Debian servers and growing.
What's a simple, lightweight method for centralizing user management? Use cases would be adding a user across all servers, tweaking a users access on a specific ...
0
votes
3answers
58 views
Hiding the last run program in `w`
w shows a list of users and the last run program by each user. What are ways to hide the last run program?
1
vote
5answers
124 views
Safe way to determine size of a file using unix tools?
I wonder, what's the best way to determine the size of a file using common unix tools. I need to determine the size of a file in bytes in a shell script. The problem is, that the shell script needs to ...