LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-08-2009, 08:35 PM   #1
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
Adding a disk quota to all samba users on LDAP


***SOLVED***
It appears that you are still able to apply quotas to LDAP users even through they do not appear as native linux users. Just apply the quota to the LDAP users username.





Hi

Current Situation
  • I have all users setup using SAMBA and LDAP.
  • All users are in the LDAP tree.
  • Each user has an linux home drive.
  • None of the users has an native linux account because they are authenticated via LDAP

What I want

I want to give each of these users a quota of 128M. I cannot use the edquota -u command because there a no native users (They are in LDAP). I can use the edquota -g command on the "Domain Users" group but that means one user would be able to use up all the disk space.

What are my options here?

Last edited by jax8; 01-12-2009 at 05:15 AM.
 
Old 01-09-2009, 06:26 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
You can give them quotas on the file server you are using for their home directories, the only problem will be that they won't see any error messages.
 
Old 01-09-2009, 09:14 AM   #3
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Original Poster
Rep: Reputation: 31
Hi

I don't really understand what you mean or how I can acheive what you are saying. I don't care if they don't get any error messages, that is secondary right now. Each user has a home directory in /home/username.

The filesystem that quotas are enabled is / (root). I only have one partition.

Thanks
 
Old 01-09-2009, 09:53 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Ok, you need the quota and quotatool packages, take a look at this page for more info:

http://computingtech.blogspot.com/20...sk-quotas.html
 
Old 01-10-2009, 12:17 AM   #5
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Original Poster
Rep: Reputation: 31
Hi

I have already completed all those instructions. The problem is not setting up Quota rather that my users authenticate via an LDAP server. My question is how am I able to apply quotas to users authenticated via LDAP. Currently my ubuntu machine is set up as a Samba domain controller, each user authenticates to the domain and their home drive is mapped in Windows XP. Currently the users do not have quotas - I want to apply quotas to all LDAP users individually (100MB for each user).
 
Old 01-10-2009, 12:17 AM   #6
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Original Poster
Rep: Reputation: 31
Hi

I have already completed all those instructions. The problem is not setting up Quota rather that my users authenticate via an LDAP server. My question is how am I able to apply quotas to users authenticated via LDAP. Currently my ubuntu machine is set up as a Samba domain controller, each user authenticates to the domain and their home drive is mapped in Windows XP. Currently the users do not have quotas - I want to apply quotas to all LDAP users individually (100MB for each user).
 
Old 12-29-2009, 03:33 AM   #7
sixpence_anaconda
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
etting up Quota rather that my users authenticate via an LDAP

Hi

How does you solve this problem? I try to find solution on the Internet I didn't found, can you help me please?

You solution is just apply quota to ldap users, how can I do that?

Kind regards

Quote:
Originally Posted by jax8 View Post
Hi

I have already completed all those instructions. The problem is not setting up Quota rather that my users authenticate via an LDAP server. My question is how am I able to apply quotas to users authenticated via LDAP. Currently my ubuntu machine is set up as a Samba domain controller, each user authenticates to the domain and their home drive is mapped in Windows XP. Currently the users do not have quotas - I want to apply quotas to all LDAP users individually (100MB for each user).

Last edited by sixpence_anaconda; 12-29-2009 at 03:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Vpopmail ldap to samba ldap users luquee Linux - Software 1 07-23-2008 11:38 AM
script for adding users information in ldap database aravind1024004 Linux - Server 1 07-16-2008 06:39 AM
Samba Server w/ LDAP Users haydenyoung Linux - Server 0 09-25-2007 05:39 AM
Samba, LDAP, do I need smbpasswd to create users? yuri_d Linux - Server 2 07-25-2007 07:46 AM
Disk Quota -- restricrting users as well as stopping Denial of Service Attacks tataiermail LinuxAnswers Discussion 0 07-10-2007 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:21 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