# mount -t smbfs -o user="domain/user%password" //server/sharefolder /home/user/folder/ |
или
#
mount -t cifs -o user="domain/user%password" //server/sharefolder /home/user/folder/ |
для этого нужно установить пакет
cifs-utils
Автомонтирование при старте системы:
Добавить в /etc/fstab
//server/sharefolder /home/user/folder/ smbfs username=domain/user,password=пароль 0 0 |
Автомонтирование сетевой папки в Ubuntu
Добавляем запись в fstab
//servername/sharename /media/windowsshare cifs guest,uid=1000,iocharset=utf8,codepage=unicode,unicode 0 0 |
, где
guest — доступ к шаре без пароля,
uid=1000 makes the Linux user specified by the id the owner of the mounted share, allowing them to rename files,
the combination iocharset=utf8,codepage=unicode,unicode allows access to files with names in non-English languages. This doesn’t work with shares of devices like the Buffalo Tera Station, or Windows machines that export their shares using ISO8895-15. With those you need to use codepage=cp850, otherwise characters like the German ‘Umlaute’ are displayed as garbage.
После добавления в /etc/fstab type выполняем:
# mount -a |
This will (re)mount all entries listed in /etc/fstab.