Значит есть конфиг
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
load printers = No
dns proxy = No
invalid users = root
interfaces = lo eth0
hosts allow = 192.168.0.*
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[some_user]
comment = Public
path = /home/user/media/torrents/done
;path = /home/user
read only = no
valid users = some_user1
force user = some_user1
force group = user
create mask = 0777
directory mask = 0777
browsable = yes
[public]
comment = some_user
path = /home/user/media/torrents/done
available = yes
browsable = yes
public = yes
writable = no
далее:
smbpassword -a some_user1
smbpassword -e some_user1
passwd some_user1
gpasswd -a some_user1 user
/etc/init.d/samba restart
далее монтирую:
mount -t cifs -o username=some_user1,password=xoTWfs9qkYVzc31E75LV //192.168.0.101/some_user /mnt/smb
И таки монтируется. А вот в венде - нет. Говорит: у вас нет доступа к этой шаре.