LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Adding a disk quota to all samba users on LDAP (https://www.linuxquestions.org/questions/linux-server-73/adding-a-disk-quota-to-all-samba-users-on-ldap-695989/)

jax8 01-08-2009 08:35 PM

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?

irishbitte 01-09-2009 06:26 AM

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.

jax8 01-09-2009 09:14 AM

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

irishbitte 01-09-2009 09:53 PM

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

jax8 01-10-2009 12:17 AM

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).

jax8 01-10-2009 12:17 AM

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).

sixpence_anaconda 12-29-2009 03:33 AM

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 (Post 3403229)
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).



All times are GMT -5. The time now is 06:50 PM.