Bug 13806 - Kontingent-Tab wird nicht angezeigt
Kontingent-Tab wird nicht angezeigt
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: Samba
UCS 2.1
All Linux
: P4 normal (vote)
: UCS 3.x
Assigned To: Samba maintainers
:
: 8532 (view as bug list)
Depends on: 8532
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-19 11:49 CET by Stefan Gohmann
Modified: 2013-04-29 20:40 CEST (History)
10 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2009-03-19 11:49:05 CET
Ich bekomme das Problem mittlerweile auch auf einem DC Slave, UCS 2.2 Samba 3.2.8.

Sowohl auf ext3, als auch auf einer xfs-Partition:

[2009/03/16 22:24:34,  3] lib/sysquotas.c:sys_get_quota(453)
  sys_get_vfs_quota() failed for mntpath[/mnt/ext3] bdev[/dev/sda4] qtype[4] id[5000]: Invalid argument


+++ This bug was initially created as a clone of Bug #8532 +++

UCS 1.3-2: Bei einer Samba-Freigabe auf einem Memberserver, für die Quotas konfiguriert sind, wird unter Windows (hier: W2k) nicht die Registerkarte 'Kontingent' angezeigt. Bei einem Versuch wurde sie doch angezeigt, jedoch ohne Einträge.

Auf der Kommandozeile:

root@ucs-member159:~# smbcquotas -L //ucs-member159/export -U Administrator%univention
WARNING: The "printer admin" option is deprecated
Quotas are not enabled on this share.
Failed to open \$Extend\$Quota:$Q:$INDEX_ALLOCATION  NT_STATUS_ACCESS_DENIED.

root@ucs-member159:~# smbclient -U Administrator%univention -L //ucs-member159#
WARNING: The "printer admin" option is deprecated
Domain=[HOSTS3] OS=[Unix] Server=[Samba 3.0.23d]
        [....]

der aufruf von smbcquota ohne benutzername, jedoch mit administratorpasswort, funktioniert jedoch:

root@ucs-member159:/# smbcquotas -L //ucs-member159/export 
WARNING: The "printer admin" option is deprecated
Password: 
S-1-5-21-1095496637-3117011617-4075606778-5010:               0/       NO LIMIT/       NO LIMIT
HOSTS3+Administrator          :               0/         999424/        2002944
HOSTS3+wolf                   :           12288/         999424/        2002944
Comment 1 Stefan Gohmann univentionstaff 2009-03-19 20:16:12 CET
Das gleiche Fehlverhalten auf einer Neuinstallation UCS 2.2 i386 DC Master.
Comment 2 Stefan Gohmann univentionstaff 2009-03-19 22:02:38 CET
root@master-30-1:~# grep quota /etc/fstab
/dev/sda3  /mnt/data1   ext3    defaults,grpquota,usrquota,acl  0       0
/dev/sda4  /mnt/data2   xfs     defaults,grpquota,usrquota      0       0
root@master-30-1:~#    

Das sollte in der Doku beschrieben werden und auch im UMC-Quota-Modul
umgesetzt werden.

Leider löst es noch nicht das eigentliche Problem. Die Quota-Einstellungen werden für einen normalen Benutzer richtig angezeigt. Das verbundene Laufwerk ist entsprechen nur so groß wie die Quota. Das funktioniert sowohl für xfs, als auch für ext3.
Comment 3 Stefan Gohmann univentionstaff 2009-03-20 11:36:29 CET
Ich habe heute morgen nochmal auf Samba-technical nachgefragt. Falls von dort auch kein Lösungsvorschlag kommt, werden wir das in den Release Notes bzw. im Changelog dokumentieren und auf die Administration via UMC verweisen.
Comment 4 Stefan Gohmann univentionstaff 2009-03-27 10:58:44 CET
Das Problem schieben wir erstmal.

Hinweis in die Release Notes nehme ich auf.
Comment 5 Janek Walkenhorst univentionstaff 2009-07-28 12:21:16 CEST
Geht auch nicht mit Samba 3.2.13-1.378.200906251416

Quotas funktionieren jedoch erscheint der Kontingent-Tab nicht.

# smbcquotas -L //qaslave/groups -U Administrator
Password: 
Quotas are not enabled on this share.
Failed to open \$Extend\$Quota:$Q:$INDEX_ALLOCATION  NT_STATUS_INVALID_PARAMETER.

Ohne Nutzer ist keine Authentifizierung möglich:
# smbcquotas -L //qaslave/groups
Password: 
cli_full_connection failed! (NT_STATUS_ACCESS_DENIED)
Comment 6 Andreas Büsching univentionstaff 2009-12-08 16:30:15 CET
Mit Samba 3.3.9 gibt es hier keine Verbesserung. Unter Windows 2000 sowie XP SP3 ist der Kontingent-Tab nicht verfügbar.
Comment 7 Janek Walkenhorst univentionstaff 2010-01-29 09:42:43 CET
Auch mit UCS 2.3-1
samba   2:3.3.10-1.407.201001151439
univention-samba   4.0.11-1.212.201001131446
Comment 8 Stefan Gohmann univentionstaff 2010-05-18 20:48:44 CEST
*** Bug 8532 has been marked as a duplicate of this bug. ***
Comment 9 Murat Odabas univentionstaff 2010-06-07 17:37:06 CEST
Geht auch nicht mit:
UCS 2.4
Samba 2:3.5.3~dfsg-1.426.20100526200
univention-samba 5.0.2-1.243.201005271325  

/etc/fstab
/dev/sda1       /boot   ext3    defaults,acl,usrquota   0       0

root@qamaster:~# smbcquotas -L //qamaster/boot_test -U Administrator
Enter Administrator's password:
Quotas are not enabled on this share.
Failed to open \$Extend\$Quota:$Q:$INDEX_ALLOCATION  NT_STATUS_ACCESS_DENIED.


Im UMC, Quota für die Boot Partition aktiviert, anschließend auf die aktivierte Partition geklickt:

Die Ausführung des Kommandos 'quota/partition/show' ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/univention/management/console/handlers/__init__.py", line 158, in execute
    func( object )
  File "/usr/lib/python2.4/site-packages/univention/management/console/handlers/quota/partition.py", line 64, in quota_partition_show
    tools.repquota( object.options[ 'partition' ], cb )
  File "/usr/lib/python2.4/site-packages/univention/management/console/handlers/quota/tools.py", line 86, in repquota
    proc = notifier.popen.Shell( cmd, stdout = True )
  File "/usr/lib/python2.4/site-packages/notifier/popen.py", line 418, in __init__
    RunIt.__init__( self, cmd, stdout = stdout, stderr = stderr, shell = True )
NameError: global name 'cmd' is not defined
Comment 10 Stefan Gohmann univentionstaff 2012-12-06 20:54:09 CET
@Tobias, bitte den aktuellen Status einmal mit UCS 3.1 und Samba 3 testen und hier dokumentieren.
Comment 11 Tobias Peters univentionstaff 2012-12-07 16:29:11 CET
Als Administrator funktioniert die Abfrage mit smbcquotas und ist man als Administrator am Windows XP Client eingeloggt sieht man auch den Kontingent-Tab, wo auch die Einträge angezeigt werden.
Als normaler User hingegen schlägt smbcquotas fehl und der Kontingent-Tab ist nicht zu sehen.

Als "testuser:Domain Users":

root@memborservor:/mnt/xfs# smbcquotas -L //localhost/xfsshare -Utestuser%univention
Quotas are not enabled on this share.
Failed to open \$Extend\$Quota:$Q:$INDEX_ALLOCATION  NT_STATUS_ACCESS_DENIED.

root@backup24:/boot# smbcquotas -u testuser //localhost/bootshare -Utestuser%univention
Quotas are not enabled on this share.
Failed to open \$Extend\$Quota:$Q:$INDEX_ALLOCATION  NT_STATUS_ACCESS_DENIED.

Als "Administrator:Domain Admins":

root@memborservor:/mnt/xfs# smbcquotas -L //localhost/xfsshare -UAdministrator%univention
S324+administrator            :           37888/      209715200/      419430400



> Im UMC, Quota für die Boot Partition aktiviert, anschließend auf die aktivierte
> Partition geklickt:
> 
> Die Ausführung des Kommandos 'quota/partition/show' ist fehlgeschlagen:

Dieses Problem tritt nicht mehr auf, die nächste Ansicht öffnet sich und es werden dort auch die Partitionen mit Quotas angezeigt.
Comment 12 Stefan Gohmann univentionstaff 2013-04-29 20:40:18 CEST
Mit UCS 3.1 und Samba 4 (4.0.3) auf dem DC Master wird mir der Kontingent-Tab angezeigt. Auf einem in die S4 Domäne eingebundenen Samba 3 Memberserver (3.6.8) wird mir der Tab ebenfalls angezeigt.

Beides mal als Administrator getestet.

Zu der falschen Anzeige in Verbindung mit xfs gibt es noch andere Reports: Bug #31210 and Bug #29652.