Не надо расшаривать каталоги в /home, т.к. стандартная политика каталогов пользователя не пускает никого в домашний каталог пользователя, кроме хозяина. Обратите внимание, что кроме прав, которые прописываются/ в smb.conf существуют права, установленные в файловой системе, и которые задаются в самих свойствах файлов и каталогов (см права доступа в *nix - те, что видны через ls -l).
Характерны примеры из пакета samba-doc (это только часть примера):
file:///usr/share/doc/samba-doc-3.5.6/htmldocs/Samba3-HOWTO/FastStart.html#anon-rw
Anonymous Read-Only Server Configuration
# Global parameters
[global]
workgroup = MIDEARTH
netbios name = HOBBIT
security = share
[data]
comment = Data
path = /export
read only = Yes
guest ok = Yes
1.
Add user to system (with creation of the user's home directory):
root# useradd -c "Jack Baumbach" -m -g users -p m0r3pa1n jackb
2.
Create directory, and set permissions and ownership:
root# mkdir /export
root# chmod u+rwx,g+rx,o+rx /export
root# chown jackb.users /export
....
7. ....
.....
The information above (following # Global parameters) provides the complete contents of the /etc/samba/smb.conf file.
Anonymous Read-Write Document Server
We should view this configuration as a progression from the previous example. The difference is that shared access is now forced to the user identity of jackb and to the primary group jackb belongs to. One other refinement we can make is to add the user jackb to the smbpasswd file. To do this, execute:
root# smbpasswd -a jackb
New SMB password: m0r3pa1n
Retype new SMB password: m0r3pa1n
Added user jackb.
Addition of this user to the smbpasswd file allows all files to be displayed in the Explorer Properties boxes as belonging to jackb instead of to User Unknown.
The complete, modified smb.conf file is as shown in “Modified Anonymous Read-Write smb.conf”.
Example 2.2. Modified Anonymous Read-Write smb.conf
# Global parameters
[global]
workgroup = MIDEARTH
netbios name = HOBBIT
security = SHARE
[data]
comment = Data
path = /export
force user = jackb
force group = users
read only = No
guest ok = Yes