Ubuntu Servers :: Test Limits.conf Without Bricking The Server?

Jul 31, 2011

I'm running a server using Debian 5, on which a few people log on to over SSH using a user account with limited permissions. Basically I want to make sure they can't run things like fork loops as a lot of bad stuff would happen were the server to hard reboot.So, how can I test what something like this will do:

Code:
:(){ :|:& };:
in a controlled environment, ie. so that I can kill it without rebooting?

View 7 Replies


ADVERTISEMENT

General :: Pam - /etc/security/limits.conf For Setting Program Limits?

Feb 9, 2011

I have the following inside /etc/security/limits.conf(I have specified root separately because * will not include it.)

user2 - core unlimited
* - core 0
root - core 0

[code]....

View 2 Replies View Related

General :: Limits.conf To Set Memory Limits?

Jan 30, 2011

I would like to limit any process from using more than 500 MB of RAM. AFAIK this is done using RSS in /etc/security/limits.conf but the process called gnome-panel apparently is using 618436 kB of VmRSS. How can this be ?

/etc/security/limits.conf
* hard rss 512000
username@debian:~$ cat /proc/3002/status
Name: gnome-panel

[code]...

View 2 Replies View Related

Ubuntu :: Updating Limits.conf Without Reboot?

Dec 16, 2010

I have changed and added some lines to /etc/security/limits.conf. At this time I can not reboot the system. Which service limits.conf belong to so that I can restart that service.

View 4 Replies View Related

General :: How To Activate Limits.conf

Sep 18, 2009

I've set limits in limits.conf but they don't seem to be having an effect (the easiest to test is maxlogins). Do I need to do something to enable the limits?:wqEDIT: old postI know you can have file system quotas, is there any way to set a similar quota for CPU usage for particular users so that they can't hog all the system resources (either intentionally or accidentally)?A preliminary Google search is suggesting it's not possible, but I can't believe thatOk, limits.conf and pam... I used bad search terms apparently. Now I just need to figure out how to use this stuff, but that shouldn't be an issue.

View 2 Replies View Related

General :: Instruction Cpu Works At Limits.conf?

Dec 2, 2009

i need to limit summary working time at system. I tried use limits.conf for this. If only two lines would be thereQuote:TestUser soft cpu 10estUser hard cpu 20 So user TestUser can login at system at any time, work any time period, and when summary time of all its logins reaches 20 mins all his proceses would be killed?p.s. if i am wrong in method whith which i try set time limit for user,

View 8 Replies View Related

Software :: Difference Between Rtprio And Priority In Limits Conf

Jan 4, 2011

We want to know following :
1) What is the difference between rtprio and priority in limits.conf?
2) How to apply changes in values of limits in limits.conf?
3) What is the value system takes if it is not set in limits.conf?
4) What is the max/ideal value of each parameter especially priority?

View 1 Replies View Related

General :: Coredumps Don't Work After Enabling Them In /etc/security/limits.conf On Debian

Aug 25, 2011

I have some init scripts that launch some daemons that I wrote. I want Linux to generate a coredump anytime something crashes. I activated coredumps in /etc/security/limits.conf by adding the next line:

* hard core 100000 After rebooting, I run ulimit -a and I can see that coredumps are not activated: > root@computer:~# ulimit -a > core file size (blocks, -c) 0 First, I checked if there is any file script on my system that deactivates coredumps (greping ulimit -c 0 ), but I didn't find anything so far.

Then, I created a bogus c program..to double check if it's working, and I can confirm that it's not. The program is this

[Code]...

View 1 Replies View Related

Fedora Servers :: Several Postfix - Test Antivirus Scan Using Eicar Test Virus ?

Apr 8, 2009

I have installed Postfix + Amavisd-new, then I am started all services (and configured main.cf and master.cf to use amavis).

The questions are:

1) I am trying to test antivirus scan using eicar test virus

Code:

And the message is successfully delivered to mailbox with mark "CLEAN" in maillog. But I cant see any attachment using

Code:

Where is my mistake?

2) Should I update clam and how I can do it?

3) Is spamassassin enabled by default in amavis (I have started daemon)?

4) Where configuration files of spamassassin is stored?

View 1 Replies View Related

Ubuntu Servers :: Desktop 10.04 Home Server- Editing Httpd.conf File - Fails

Jul 8, 2010

I turned my home PC running Ubuntu 10.04 into a server, and so i am so lost, after reading like a 10-20 different guides and/or official docs, I am totally lost.

All I wanted was to create a custom 404 error page...i read about how people edited .htaccess files to customize error pages, i tried and failed also, editing apache2.conf, I got lost and i dont wanna mess up everything and also, how you're supposed to not touch either of those as its not how it should be done and instead you need to edit httpd.conf and i did and FAILED! again...

Also how do I make it so that I can make subdomain(s) on my site? and wth is a name server and where do I get one?

View 4 Replies View Related

CentOS 5 Server :: Loading Multiple Virtual Host Conf Files From Httpd.conf?

Jun 1, 2009

I've been scanning the apache2 docs for the past few days and have not come up with an answer my following issue:

In my httpd.conf file, at the very end, I have the line

Include conf/vhosts/vhost_*.conf

However, when I run apache checkconfig or try to start apache, it gives me the error:

httpd: Syntax error on line 993 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf/vhosts/vhost_1.conf: Permission denied

It appears as if the Include line is correct - in terms of it grabbing the first virtual host conf file. However, I'm confused on the permissions. the /etc/httpd folder is owned by root:root, as are the subfolders. As a test, I chown'd the conf/vhost folder combination and all the vhost files to apache:apache to see if that made a difference, and it appeared to make no difference at all. The log files don't contain anything (assumed because apache isn't starting). If I place the contents of the vhosts in a singular vhosts.conf it works - with the permissions set to root:root. I'd like to avoid having to use one vhosts conf for the configuration I'm trying to achieve - as it would make my life a lot easier.

View 3 Replies View Related

General :: Change The Limits Of E-mail Sizes On The Server?

Apr 28, 2010

How i change the limits of e-mail sizes on the server. I have an e-mail server installed with CentOS3.

View 4 Replies View Related

Server :: Determining System Limits Affecting Apache - Specifically RLimitMEM

Mar 15, 2011

Our Apache server is pretty much configured straight out of the box, and I've noticed it is using far more CPU and less memory than another server where I have the following:

RLimitCPU 8
RLimitMEM 100000000
RLimitNPROC 24

The Apache documentation says that if these aren't set, the values are obtain from the OS. How can you tell what those are? I'd like to see if I can tune Apache's performance, but I don't even know if these values are higher or lower than what it's currently using...

View 5 Replies View Related

Ubuntu Servers :: Dhcp3-server Fails To Start - Can't Open /etc/dhcp3/dhcpd.conf: Permission Denied

Oct 1, 2010

I installed dhcpd using:

Code:

Now when I try to run it, I get this weird error:

Code:

The error was:

I changed permissions to 777:

Code:

To no avail!

It's got something to do with AppArmor.

I don't think it is installed on this system:

Code:

View 1 Replies View Related

Server :: Ldap Cannot Carry Slapd.conf Changes Or Did Not Use /etc/openldap/slapd.conf?

Aug 20, 2010

I am setting up LDAP server, i set slapd.conf(dc=proldap,dc=com) and start ldap it is OK but when i check using ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts result is : namingContexts: dc=my-domain,dc=com

it seems that it did not use my slapd.conf so i tried removing my slapd.conf from /etc/openldap and start slapd again and it did start with no errors. and when i do ldapsearch again still uses dc=my-domain,dc=com

I tried searching about this in google and found no answers,

my reference in setting up ldap is the link below. but it seemed that it always uses another configuration not the one i modified

I'm using Fedora12, ldap version 2.4.19. i installed ldap by yum install url

url

View 12 Replies View Related

Ubuntu Servers :: Run Xampp - Can't Test Drupal Out?

Apr 2, 2010

I'm trying to run Xampp so that I can test Drupal out. I'm running Lucid Lynx Beta. I'm having a lot of trouble getting Xampp to run. I downloaded Xampp version 1.7.3a and installed it but when I type http://localhost in Firefox to see if Xampp is working it just says:

Quote:

This is the default web page for this server. The web server software is running but no content has been added, yet.

View 5 Replies View Related

Ubuntu :: Test The Internet Speed Between Two Servers?

Nov 5, 2010

Is their from the CLI a way to test the internet speed between two servers?I'm thinking some sort of ping test that can calculate it or something.

View 2 Replies View Related

Software :: Protecting A Multi-user Server - Per-user Limits

Feb 8, 2010

I'm looking for a way to limit:

-memory usage (mb/user)
-cpu usage
-processes (amount and no same process multiply)
-connections (amount of connections (to specific host))
-bandwidth (kbps/user and even owerall for regular users)
-disk usage
-available commands

For every other users than me/root.

View 1 Replies View Related

Ubuntu Servers :: Test Website In Private Cloud?

Oct 15, 2010

I have installed Ubuntu enterprise cloud on two machines(Cluster and node)and trying to set up an image and test my internal website in private cloud. if there is any documentation or any steps?

View 1 Replies View Related

Ubuntu Servers :: CUPS Printing-Can Print Test Page & Nothing Else?

Mar 22, 2010

I recently built a server from an old box using Ubuntu Server 9.10. This is my first server and I am very new to the server world.I have an Epson Stylus NX400 connected via USB. I have managed to configure it to the point where I can see the printer listed on my client laptop and can print a test page. However, I cannot print anything else. When I access the job history through the CUPS adminI can see that the print jobs were recognized and marked as complete, even though the printer never physically engaged.

View 4 Replies View Related

Ubuntu Servers :: Linux Freezes When Running A JVM Performance Test?

Jun 6, 2010

I am in the process of running a set of performance tests for the latest Sun JVM 1.6.0_20. I am using for that the dacapo test suite: [URL]

I ran the test suite very often with all sorts of settings, but recently it happened once that my Ubuntu system froze. I could still ping the machine, but nothing else was responding any more, no screen output, no ssh login, not possible to switch consoles. After rebooting the system the system logs were quiet. No single trace of any problem.

I am using a custom compiled kernel 2.6.34: Linux i7 2.6.34-custom-201005231602 #1 SMP PREEMPT Sun May 23 16:06:01 CEST 2010 x86_64 GNU/Linux and I am experimenting around with the -XX:+UseLargePages JVM switch the requires to set-up the hugetlbfs on the Linux system: [URL]

A similar issue happened in March 2010 on one of our CentOS 5.4 systems where we run a heavy load Java application on, where we had to hard power off the machine and after the reboot there was no trace of the problem in the logs. On that server we used JDK 1.6.0_17 and did not use hugetlbfs.

My first question would be what to do so that next time something like that happens I have more information available after the incident to debug and analyse the problem?

View 3 Replies View Related

Ubuntu Servers :: Test Mailgraph Manually To Create The Graphic?

May 16, 2011

I already install mailgraph in ubuntu 10.04. but now I got problem with mailgraph in ubuntu 10.04. No graph appear in the graphic created by mailgraph.I know mailgraph consist of perl and cgi script.If I have postfix log, how to test mailgraph manually to create the graphic using its perl script from existing postfix log. Just to see whether the graph created or not in the graphic

View 1 Replies View Related

Ubuntu Servers :: Separate The 2 Hosts And Access 2 Different Internal Test Sites?

Oct 7, 2010

I installed Apache2 and I added a second virtual host, now can i separate the 2 hosts and let them access 2 different internal test sites? For Example lets say"

User1 uses one IP
User2 uses second IP

How can I separate it in Apache2 and in the /var/www ?

View 4 Replies View Related

Ubuntu Servers :: No Path In Smb.conf File

Mar 21, 2010

I successfully shared a subdirectory of my home directory, using GNOME under Ubuntu 8.04 LTS Desktop. What drives me crazy is that I can't find this directory listed in /etc/samba/smb.conf, in a "path" line. Please tell me where is this directory specified, since smb.conf seems to be the only samba config file.

View 5 Replies View Related

Ubuntu Servers :: Where Did My Resolv.conf File Go?

May 8, 2010

I tried to setup a dyndns, and ever since I tried to get that setup, I can't access my webmin, or access /etc/hosts/resolv.conf. But I can still access my samba shares I had created before this happened.

View 5 Replies View Related

Server :: Basic Postfix And Dovecot Mail Server For A Test Environment?

Sep 16, 2009

I did a a basic install of postfix and dovecot instead of using courier-pop and courier-imap. This is only send and receiving e-mail locally within the test network 10.7.0.X and 10.0.0.X. I used:

[URL]

my postfix.conf is;

PHP Code:

[code]....

This is the error when I send an email from a local machine on the 10.0.0.X network.

PHP Code:

Jan 20 17:05:48 testbox postfix/smtpd[2491]: warning: Illegal address syntax from unknown[10.0.0.111] in MAIL command: <test@10.0.0.112> 

View 8 Replies View Related

Ubuntu Installation :: Warning - Can't Create Test File /var/lib/mysql/mosty.lower-test

Mar 15, 2010

I am trying to install mysql 5.1.44..so i downloaded the binary package, i extracted it and then followed the instructions that were in the manual but i keep getting this error when running this command

Code:

scripts/mysql_install_db --basedir=/home/mosty/mysql

the error is

Code:

Installing MySQL system tables...
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test

[code]....

You can try to start the mysqld daemon with:

shell> /home/mosty/mysql/bin/mysqld --skip-grant &

and use the command line tool /home/mosty/mysql/bin/mysql to connect to the mysql database and look at the grant tables:

shell> /home/mosty/mysql/bin/mysql -u root mysql
mysql> show tables

View 1 Replies View Related

Fedora Servers :: Custom 403 Does Not Work - Test Page Shown ?

Jun 12, 2011

I use .htaccess to deny all ip addresses except certain to an internal wiki on a subdomain.

Code:

If access is denied to the homepage users are shown the Fedora test page instead of my own custom 403 error page. When I go to a page - not home - I see a standard 403 error page.

Code:

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.0.54 (Fedora) Server at wiki.domain.com Port 80. What am I missing here? Seems like my ErrorDocument is not being reached..

View 2 Replies View Related

Programming :: Faking IP Addresses To Test Servers On Internal Network

Jun 9, 2009

I'm in the process of setting up a script in perl to make 1,000's of curl calls to my companies application on our test server. Our software does all sorts of tracking of data based on IP addresses using geoIP, so i was wondering if anyone knew of a way to fake these addresses to the server?I know a big issue with the IP faking is the return path but i dont really need this. I also cant do it on the hardware level since the script is going to be picking lots of different IP's at random.Anyone have any idea if this is possible and if so, are there any known libraries i can use for this? I prefer perl but any Linux compatiblie scripting language is fine.

View 1 Replies View Related

CentOS 5 Server :: Unable To Test SASL On Mail Server

Nov 23, 2009

I followed the Wiki guide for configuring my Postfix server for SASL / TLS. I don't get any errors and I assume it's working but when I try and test SASL (saslauthd), I don't get the response noted according to the Wiki and I don't understand why.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved