[TriLUG] Mounting Samba shares on a Linux server

Roy Vestal rvestal at trilug.org
Thu Jun 5 13:13:17 EDT 2003


Again, you can use the -o credentials=/path/to/credsfile that I mentioned
previously so you don't have to put this in the bash_history file.
----- Original Message ----- 
From: "Jon Carnes" <jonc at nc.rr.com>
To: "TriLUG Mailing List" <trilug at trilug.org>
Sent: Thursday, June 05, 2003 10:27 AM
Subject: [TriLUG] Mounting Samba shares on a Linux server


> Here's a nice site that covers using smbmount and making smb mounts
> persistent across reboots:
>
>
http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html
>
> Some examples:
>
>   smbmount //servername/sharename /mountdirectory -o
>      username=mywindowsusername,password=mywindowspassword
>
>   mount -t smbfs //servername/sharename2 /mountdirectory2 -o
>      username=mywindowsusername,password=mywindowspassword
>
>
> /etc/fstab entry examples:
>
>   //servername/sharename /mountdirectory smbfs
>       username=windowsusername,password=windowspassword 0 0
>
>   //servername/sharename2 /mountdirectory2 smbfs
>       username=windowsuser,password=winpassword,uid=mylinuxusername,
>       gid=mylinuxgroupname 0 0
>
>
> Note: all the examples above are split across two or more lines to
> accommodate the realities of email, but in the real world they should
> each be on one line.
>
> Creating and using a credentials file:
>   cd /etc
>   echo username=mywindowsusername > .smbpasswd
>   echo password=mywindowspassword >> .smbpasswd
>   chmod 600 .smbpasswd
>
>   //servername/sharename /mountdirectory smbfs
>       credentials=/etc/.smbpasswd 0 0
>
>   //servername/sharename2 /mountdirectory2 smbfs
>       credentials=/ect/.smbpasswd,gid=sambausersgroup 0 0
>
>
> Note: the credentials file does not have to be in /etc, it can be in any
> secure directory.
>
>
>
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>     http://www.trilug.org/faq/TriLUG-faq.html
>
>




More information about the TriLUG mailing list