PDA

View Full Version : fileserver with samba enabled


bmayock
20th May 2006, 04:39
hello,

i am configuring this fileserver with samba with quotas enabled on the users. there are like 50 users with a 1gb quota each.

i created a user, myself brian with yast. then i modified my etc/fstab which is listed below. hda3 which i partioned as / is like 110gb. and thats where i want the users to be with the quotas.

dev/hda3 / ext3 acl,user_xattr,usrquota,grpquota 1 1
/dev/hda2 /data1 auto noauto,user 0 0
/dev/hda1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0


following the "perfect setup doc" for suse 9.2 http://www.howtoforge.com/perfect_setup_suse_9.2_p4

i did

touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon -avug

and it worked. i'm getting kind of lost. i want the users to be able to work on that hda3 partition but for some reason when i do a quota check repquota i show that brian doesn't display the files i am saving to the fileserver being deducted from the alloted quota of 1gb.

Thank you,
Brian

bmayock
20th May 2006, 04:47
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2006/05/19 15:50:05

# Global parameters
[global]
workgroup = KYD
netbios name = ORION
security = DOMAIN
map to guest = Bad User
username map = /etc/samba/smbusers
printcap cache time = 750
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
ldap suffix = dc=example,dc=com
printer admin = @ntadmin, root, administrator
cups options = raw
include = /etc/samba/dhcp.conf

[homes]
comment = Home Directories
valid users = %S
read only = No
inherit acls = Yes
browseable = No

[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[pdf]
comment = PDF creator
path = /var/tmp
create mask = 0600
printable = Yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775

[/]
path = /
read only = No

falko
21st May 2006, 22:23
and it worked. i'm getting kind of lost. i want the users to be able to work on that hda3 partition but for some reason when i do a quota check repquota i show that brian doesn't display the files i am saving to the fileserver being deducted from the alloted quota of 1gb.

Make sure those files are owned by the user brian.