Home arrow Site Administration arrow Page 2 - Dancing The Samba (part 2)

What's In A Name? - Administration

In addition to its core component, Samba comes with a bunch ofpretty powerful ancillary utilities: an SMB client, an SMB filesystemmounter, a backup tool, and a Web-based administration utility. Find outhow you can use them, inside.

TABLE OF CONTENTS:
  1. Dancing The Samba (part 2)
  2. What's In A Name?
  3. Making Conversation
  4. Mounting Up
  5. Backing Up
  6. Keeping It Simple
  7. Working The Web
By: icarus, (c) Melonfire
Rating: starstarstarstarstar / 8
October 22, 2002

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
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 accountsDisk quotas for group accounts (gid 506):  Filesystem blocks quota limit grace files quota limitgrace/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.0added interface ip=192.168.0.77 bcast=192.168.0.255 nmask=255.255.255.0Password: Domain=[MEDUSA] OS=[Unix] Server=[Samba 2.2.5]smb: \> cd accountssmb: \accounts\> mput samba-latest.tar.gzputting file samba-latest.tar.gz as \accounts\samba-latest.tar.gz Errorwriting 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 Site Administration Articles          >>> More By icarus, (c) Melonfire
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

SITE ADMINISTRATION ARTICLES

- Coding: Not Just for Developers
- To Support or Not Support IE?
- Administration: Networking OSX and Win 7
- DotNetNuke Gets Social
- Integrating MailChimp with Joomla: Creating ...
- Integrating MailChimp with Joomla: List Mana...
- Integrating MailChimp with Joomla: Building ...
- Integrating MailChimp with Joomla
- More Top WordPress Plugins for Social Media
- Optimizing Security: SSH Public Key Authenti...
- Patches and Rejects in Software Configuratio...
- Configuring a CVS Server
- Managing Code and Teams for Cross-Platform S...
- Software Configuration Management
- Back Up a Joomla Site with Akeeba Backup

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: