Operating System - HP-UX
1832898 Members
2415 Online
110048 Solutions
New Discussion

HP-UX with SAMBA and quotas

 
SOLVED
Go to solution
Fernando Boza
Regular Advisor

HP-UX with SAMBA and quotas

In HP-UX with Samba as a file-server, how I implement QUOTAs?

5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: HP-UX with SAMBA and quotas

Shalom Fernando,

A samba user is like any other user. Quotas applies and writes will be denied after a certain point. Samba is not a factor.

http://docs.hp.com/en/B2355-90672/ch05s02.html
http://www.docs.hp.com/en/J2716-90016/ch05s03.html
http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2005-04/0062.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
eric roseme
Respected Contributor
Solution

Re: HP-UX with SAMBA and quotas

Hi Fernando,

Actually, CIFS/Samba must be configured for quotas, so that the correct message can be displayed to the Windows client when the quota is exceeded. There are actually SMB messages that get sent to the client to notify it that the quota is exceeded.

HP CIFS Server is configured by default to honor quotas. Do a "/opt/samba/bin/testparm -s -v | grep -i quota" and you will see the global smb.conf parameter (since it is a default it is not actually written in smb.conf). With "disk quotas" set to yes, all you have to do is configure quotas on the HP-UX system. If you need help with that, let me know (man quota/edquota).

I did a lot of testing with quotas in 2000 on Samba 2.0.6 to get them working with HP CIFS Server, but have not tested them in a long time. However, quota testing is part of the CIFS product testing that validates the submittal before it is shipped for every release, so it should be working fine still. If you encounter problems, let me know.

Eric Roseme
Hewlett-Packard
Fernando Boza
Regular Advisor

Re: HP-UX with SAMBA and quotas

The problem is the following one:
First, I recover the Ignite from server1 with SAMBA to server2.
Second, I gave back backups of two file systems that have quotas from server3 to server2.
Now the client indicates to me that the limits of the quotas are not working.


Steven E. Protter
Exalted Contributor

Re: HP-UX with SAMBA and quotas

Shalom,

Please provide the log files or data that is leading you to this conclusion.

Quotas do work on HP-UX and if you set up user quotas, they will apply to remote samba users. My original post was vague, which may have prompted the response.

I recommend using a 3.x version of Samba, 2.x is old and buggy and should be avoided on HP-UX.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fernando Boza
Regular Advisor

Re: HP-UX with SAMBA and quotas

what log files do you need for help me?