Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/k/h/a/khairisuleiman/html/index.php:3) in /home/content/k/h/a/khairisuleiman/html/includes/bootstrap.inc on line 899

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/k/h/a/khairisuleiman/html/index.php:3) in /home/content/k/h/a/khairisuleiman/html/includes/bootstrap.inc on line 899

Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/h/a/khairisuleiman/html/index.php:3) in /home/content/k/h/a/khairisuleiman/html/includes/bootstrap.inc on line 531

Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/h/a/khairisuleiman/html/index.php:3) in /home/content/k/h/a/khairisuleiman/html/includes/bootstrap.inc on line 532

Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/h/a/khairisuleiman/html/index.php:3) in /home/content/k/h/a/khairisuleiman/html/includes/bootstrap.inc on line 533

Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/h/a/khairisuleiman/html/index.php:3) in /home/content/k/h/a/khairisuleiman/html/includes/bootstrap.inc on line 534
SETUP AND CONFIGURE QUOTA SAMBA IN UBUNTU SERVER 8.04 | Configure Install Setup Web CMS Configuration

SETUP AND CONFIGURE QUOTA SAMBA IN UBUNTU SERVER 8.04

warning: Cannot modify header information - headers already sent by (output started at /home/content/k/h/a/khairisuleiman/html/index.php:3) in /home/content/k/h/a/khairisuleiman/html/includes/common.inc on line 141.

SETUP AND CONFIGURE QUOTA SAMBA IN UBUNTU SERVER

Needs

1. Ubuntu Server 8.04.
    * Samba
    * SSH
    * Webmin
2. Extension to internet.

This tutorial is to make share folder for every user with quota that is fixed.

Make sure you login as root. Otherwise, use directive sudo.  

UPDATE SERVER

Must update ubuntu server
# apt-get update

INSTALL QUOTA

Install service quota and quota tools
# apt-get install quota quotatool

SETUP QUOTA


Open file /etc / fstab and must be added with option usrquota and grpquota. It's doenst matter want edit using vi or winscp or gedit . I like using WinSCP.

Script original

# /dev/hda1 UUID=4ea80ca3-37b7-447e-831a-700a38627029 / ext3 defaults,errors=remount-ro 0 1

Add usrquota,grpquota

# /dev/hda1 UUID=4ea80ca3-37b7-447e-831a-700a38627029 / ext3 defaults,errors=remount-ro,usrquota,grpquota 0 1

Then type this command below. Ignore if warning msg coming up!
# touch /quota.user /quota.group
# chmod 600 /quota.*
# mount -o remount /
# quotacheck -avugm
# quotaon -avug

SETUP QUOTA

Login to server use webmin. Open System menu, Disk Quota. If Disk Quota menu nothing, restart server!

Choose Filesystem = “/ (users), Choose tab “Default quota”

Edit soft kilobyte limit and Hard Kilobyte limit follow respective wishes.

Invariably new user in build use webmin, new user that automatic will get quota that had in set will.

Example above I set 20GB for every user.  

SETUP SAMBA

Open /etc / samba / smb.conf

To enable each user can access home directory, increase script following in file smb.conf

comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0700
directory mask = 0700

Last that restart samba. Can use this command below or using webmin, little bit easy.  

# /etc / init.d / samba restart

Now we want increase user for samba.

For example I make user = test5, group = users

When I create, webmin help set user quota = 20GB

Last this we get add user unix = test5 so pounce user and increase password to access to samba.

Choose Server menu, Samba Window File Sharing.

You will find out samba already create a file share called homes. Let only setting that. Choose symbol “Convert Unix users to Samba users”. Last that button click “Convert Users”  

User test 5 has in make pounce user. Last that back again to front page setup samba. If want exchange password user, choose “Edit Samba users and passwords”

Now samba server you have been completed. Each user can access home directory and can keep data reach 20GB maximum. 


Custom Search