Hello,
I installed
Code:
sudo apt-get install samba
sudo apt-get install system-config-samba
and then add to the end of the section smb.conf Global Settings usershare owner only = false.
the Authentication info as below
Quote:
security = user
username map = /etc/samba/smbusers
sudo pico /etc/samba/smbusers
<username> = "<username>"
|
and here is my Share Definitions
Quote:
[homes]
comment = Home Directories
; writeable = No
browseable = no
valid users = %S
[Documents]
comment = Documents
path = /home/james/Documents
writeable = yes
; browseable = yes
valid users = james
|
With the above configuration I can access the Ubuntu and see the Documents directory of my /home/james/Documents plus the james directory which is my home dir on ubuntu /home/james. My questions are:
1. how to hide the home directory
2. when I add another shared directory such as Documents of mike when I login with my user james it goes to mike documents although the smb.conf appear like this
Quote:
[Documents]
comment = Documents
path = /home/james/Documents
writeable = yes
; browseable = yes
valid users = james
[Documents]
comment = Documents
path = /home/james/Documents
writeable = yes
; browseable = yes
valid users = james
|
instead of Documents section for each user (James and Mike)
Please note that when mike login he can able to see my home directory
and me also when I login I can able to see his home
Any help please?
Cheers,