Administration
  Home arrow Administration arrow Page 2 - Dancing The Samba (part 2)
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ADMINISTRATION

Dancing The Samba (part 2)
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 8
    2002-10-22


    Table of Contents:
  • Dancing The Samba (part 2)
  • What's In A Name?
  • Making Conversation
  • Mounting Up
  • Backing Up
  • Keeping It Simple
  • Working The Web

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Dancing The Samba (part 2) - What's In A Name?
    ( Page 2 of 7 )

    In case you're working in an environment that is sensitive to file names, you can use Samba's "name mangling" capabilities to impose a particular set of rules on the filenames it creates. Consider the following addition to the "smb.conf" file, which ensures that the name of every file created on the Samba server is upper-cased.
    [global]
            default case = upper
            preserve case = no
    Over here, the "default case" attribute sets the default case for new filenames, while the "preserve case" attribute controls whether filenames are preserved as is, or if they are forcefully changed to a different case.

    If your server implements disk quotas for users or groups, you can have Samba respect these quotas as well; simply recompile it and, this time, add the "with-quotas" argument to the "configure" script. Once you've got a new Samba binary built and installed, you should find that the system automatically restricts you from using more than your allotted disk space.

    Consider the following example, which demonstrates by first setting the quota for the "accounts" group (506) to 2 MB,
    $ quotatool -g 506 -b -q 2048 -l 2048  /dev/hda2
    
    $ quota -g accounts
    Disk quotas for group accounts (gid 506): 
         Filesystem  blocks   quota   limit   grace   files   quota   limit
    grace
          /dev/hda2    1928    2048    2048              0       0       0
    and then attempting to use more than the allotted disk space via the "smbclient" utility:
    $ smbclient //olympus/groups
    added interface ip=192.168.3.1 bcast=192.168.3.255 nmask=255.255.255.0
    added interface ip=192.168.0.77 bcast=192.168.0.255 nmask=255.255.255.0
    Password: 
    Domain=[MEDUSA] OS=[Unix] Server=[Samba 2.2.5]
    smb: \> cd accounts
    smb: \accounts\> mput samba-latest.tar.gz
    putting file samba-latest.tar.gz as \accounts\samba-latest.tar.gz Error
    writing file: NT_STATUS_DISK_FULL (326.4 kb/s) (average 326.4 kb/s)
    smb: \accounts\>
    As you can see, Samba returns a "disk full" error as soon as the group exceeds its allotted quota.

     
     
    >>> More Administration Articles          >>> More By icarus, (c) Melonfire
     

       

    ADMINISTRATION ARTICLES

    - Network Booting via PXE: the Basics
    - Scalix: Linux Administrator`s Guide
    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek