Use /etc/fstab
add a line for the share, have a look at this http://ubuntuforums.org/showthread.php?t=283131
This is the interesting part:
Code:
cifs still uses a credentials file to avoid the need to enter a password. If you do not use a credentials file, you will mount a samba share with sudo and enter your username and password in a terminal.
Quote://Server/share /mnt/samba cifs users,auto,credentials=/path/credentials_file,noexec 0 0
Server = Name (if in /etc/hosts) or IP Address of samba server.
share = Name of shared directory (folder).
/mnt/samba = your desired mount point.
/path/credentials_file = full path to your credentials file. A credentials file should be owned by root (permissions 400) and contain two lines :
username = samba_user
password = samba_user_password
samba_user = samba user (on server).
samba_user_password = samba user password (on server).
noexec for security (it can be bypassed ...).
smbfs : depreciated, but similar.
Quote://win_box/shared_folder /mnt/samba smbfs rw,credentials=/home/user_name/winbox-credentials.txt 0 0
the option 'auto' makes it mount at boot (at least it works for me)
Bookmarks