Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba w/ Linux quota does not work

Status
Not open for further replies.

mvvilleza

MIS
Nov 23, 2000
114
PH
Hi everyone, got a problem here. Here's the scenario:
* We're using an NT domain and we're using numbers as our login ID such as 163, 181 etc.
* I've configured a samba 2.06 using RedHat 6.2 for use as a file server because we're having problems with disk storage. I want to use Linux's quota capability to our present problem.
* Since Linux uses numbers as IDs for usernames I cannot use our user account on Linux. What I did was create another user account on Linux such as mvv163.
* Then on smb.conf, I used username map parameter to map mvv163 to user 163. This way I can access shares on samba dedicated to mvv163.
* I configured quota on blocks for user mvv163 to 10 KB for Soft Limits and 20 KB for Hard Limits.
* When I tested the configuration, the quotas doesn't seem to work. It continues to store files even if I've exceeded the quota limit. Until I've copied over 124 files w/c are not using almost 1 MB of disk space, it's only then that I receive disk full messages.
* I tested linux quota via ftp'ing to linux w/ mvv163 as login and tried transferring files. Quota works if I use mvv163 as login.
* Even if I create a mvv163 username on windows, quota still doesn't work.

I think it has something to do with the username map parameter in samba, linux is not treating the login 163 from windows as mvv163 in relation to the quota software. Does anyone have a solution to this? A fix maybe? Thanks in advance to anyone who can provide info on this.
 
Very simply, Samba releases 2.07 and previous had bugs in them that made them fail with respect to Linux disk quotas.

Also, if you did not specifically compile Samba with the "with-quotas" argument, it will not work in ANY version.
 
Are you saying that I upgrade my samba or I re-compile my version of Samba and specify "with-quotas"? Then again, thanks for the info.
 
Hey bwilliam13,

Followed your advice and it's not working. Any other hints?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top