/etc/nsmb.conf:# First, define a workgroup. [default] workgroup=GROUP # The 'FSERVER' is an NT server. [NAME_MACHINE] charsets=koi8-r:cp866 addr=192.168.1. [NAME_MACHINE:USER] # use persistent password cache for user 'joe' password=1234567
./nsmbrc [default] workgroup=GROUP [NAME_MACHINE] charset=koi8-r:cp866 addr=192.168.110.22 [NAME_MACHINE:USER] password=1234567
/usr/local/etc/smb.conf[global] # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH workgroup = GROUP # server string is the equivalent of the NT Description field server string = SERVER . . . #============================ Share Definitions ============================== [homes] comment = Home Directories read only = no browseable = yes writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon] ; comment = Network Logon Service ; path = /usr/local/samba/lib/netlogon ; guest ok = yes ; writable = no ; share modes = no # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory ;[Profiles] ; path = /usr/local/samba/profiles ; browseable = yes ; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = yes # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes
. . .
Монтировать командой: mount_smbfs -E koi8-R:cp866 -W GROUP //USER@$NAME_MACHINE/folder_path /mnt/mount_point NAME_MACHINE должно быть NETBIOS именем машины, но не IP адресом. пароль в /etc/nsmb.conf рекомендую закриптовать командой smbutil crypt 1234567 и вставить полученное значение вместо 1234567
|