Strict Standards: Declaration of RSS::DoAction() should be compatible with CMSModule::DoAction($name, $id, $params, $returnid = '') in /home/xandaorg/public_html/modules/RSS/RSS.module.php on line 114

Strict Standards: Non-static method PageInfoOperations::LoadPageInfoByContentAlias() should not be called statically in /home/xandaorg/public_html/index.php on line 154

Warning: Cannot modify header information - headers already sent by (output started at /home/xandaorg/public_html/modules/RSS/RSS.module.php:114) in /home/xandaorg/public_html/index.php on line 299
Xanda - /dev/project - Integrating Your Linux Host into a Windows Environment

This solution allows one to very easily navigate any number of windows/samba servers and shares with any file management application (and from the shell).

  • Add a line to /etc/auto.master to base your network mounts on, and point to its configuration file - such as:
/mydomain /etc/auto.mydomain
  • Create the host-level configuration for that mount point (place in /etc/auto.mydomain for this example, all on one line):
* -fstype=autofs,-Dhost=& file:/etc/auto.mydomain.sub
  • Create the share-level configuration (on two lines in /etc/auto.mydomain.sub in this example):
* $:/&
*     -fstype=smbfs,workgroup=mydomain,uid=myuser,credentials=/home/myuser/.smb/mydomain ://$/&
  • Create your credentials file:
touch /home/myuser/.smb/mydomain
chmod /home/myuser/.smb/mydomain
echo  > /home/myuser/.smb/mydomain 'username = myuser'
echo >> /home/myuser/.smb/mydomain 'password = mypassword'
  • Restart autofs:
/etc/init.d/autofs restart
  • Test/use the new configuration:
ls /mydomain/somewindowshost/somesharename
ls /mydomain/smbhost2/othershare/directory

A very cool aspect of this configuration is that root access is no longer needed after the configuration has been made. The end-user has ownership of the credentials file, and that file is referenced every time a mount is made. That means the user can simply edit the credentials file after changing the windows/samba password, and new mounts will utilize the new password.

[The content of this page is taken from Cyberciti. Feel free to visit the original site because who knows the original author might update the content from time to time]