LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-12-2006, 06:42 AM   #1
nintendology
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Disk quotas & ulcers, Galore!


Here is my problem:

I had my server running just dandy. Then I decided to mess with user quotas.

As I had looked up on how to change the user quotas, I found several pages saying the same thing. Here is what I did:

edited /etc/fstab as follows:

/dev/hda2 / ext2 defaults 1 1

to

/dev/hda2 / ext2 defaults,userquota 1 1

it told to remount / with the following command:

mount -o remount /

All had gone well so far, and I was optimistic. Furthermore, I created a user to test out to see if it worked.

# touch /aquota.user
# chmod 600 /aquota.user
# quotacheck -vaum
# edquota -u testquota

I edited the "hard" value for the blocks to 5000, not the inodes. At this point, I tried to ftp into it, and I realized I lost my ftp access. For all users (everything was a bad login/password). HTTP was still up and running, so I left for work and would fix it after I get back. I got back, and HTTP NO LONGER WORKS.

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Now I'm pissed off. I edited /etc/fstab back to it's original state, and remounted it. Still doesn't work. This is where I'm at now. Help, anyone?
 
Old 01-12-2006, 09:18 AM   #2
nintendology
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I need to add that in the apache error logs, there are no apparent errors. It just stopped working.
 
Old 01-12-2006, 01:27 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I don't see you mentioning you ran
Code:
quotaon -av
When you reboot your machine, Slackware will activate the quota system for you - you might want to check if a reboot helps discovering that you forgot stuff in the middle. Read /etc/rc.d/rc.M to see the chain of commands that activate Slackware's quota.

Now, the problems you ran into with users and processes no longer being able to access your root partition. Could they be related to changed permissions on the root directory? The command
Code:
chmod 755 / ; chown root:root /
will fix broken access permissions and ownership of the root directory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Quotas mdk3 Linux - General 12 07-06-2005 04:41 PM
disk quotas johnnycash Linux - General 1 03-16-2004 08:12 AM
Samba 3 and disk quotas ducati Linux - Newbie 1 02-05-2004 08:30 AM
disk quotas skeletal29 Linux - General 1 10-13-2002 04:42 PM
Disk Quotas with kernel 2.4.x luismi Linux - General 6 07-12-2001 04:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration