Samba's random behavior is driving me crazy.
Here is my setup:
Today I have created seven user accounts, via http://hda:
sam
andrew
michael
reece
emma
lisa
wii
I have setup the following visible shares using the web GUI:
Books
-michael (Access, Write)
-lisa (Access)
Docs
-michael (Access, Write)
-sam (Access)
-emma (Access)
Movies
-michael (Access, Write)
-sam (Access)
-andrew (Access)
-reece (Access)
-lisa (Access)
-wii (Access)
Music
-michael (Access, Write)
-lisa (Access)
-reece (Access)
-emma (Access)
Pictures
-michael (Access, Write)
-lisa (Access)
-reece (Access)
Software
-michael (Access, Write)
-lisa (Access)
-reece (Access)
-sam (Access)
Torrents
-michael (Access, Write)
-lisa (Access)
-reece (Access)
Printer Canon iP3000
-everyone (Access)
Code: Select all
Using username "michael".
michael@192.168.1.1's password:
Last login: Fri Jul 10 21:33:33 2009 from 192.168.1.104
[michael@localhost ~]$ cd /etc/samba/
[michael@localhost samba]$ nano smb.conf
GNU nano 2.0.6 File: smb.conf
# This file is automatically generated any manual changes WILL BE OVERWRITTEN
# Amahi configuration, generated on Sat Jul 11 00:08:34 +0930 2009
[global]
workgroup = shadow.com
server string = shadow.com
netbios name = hda
printing = cups
printcap name = cups
load printers = yes
cups options = raw
log file = /var/log/samba/%m.log
max log size = 150
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = yes
os level = 60
time server = yes
unix extensions = yes
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
security = user
username map script = /usr/share/hda-platform/hda-usermap
large readwrite = yes
encrypt passwords = yes
dos charset = CP850
unix charset = UTF8
display charset = LOCALE
guest account = nobody
map to guest = Bad User
wins support = yes
printer admin = root, @ntadmin, administrator
[homes]
comment = Home Directories
valid users = %S
browseable = no
writable = yes
create mask = 0644
directory mask = 0755
[print$]
path = /var/lib/samba/drivers
read only = yes
force group = root
write list = @ntadmin root
force group = root
create mask = 0664
directory mask = 0775
guest ok = yes
[printers]
path = /var/spool/samba
writeable = yes
browseable = yes
printable = yes
public = yes
[Books]
comment = Books
path = /var/hda/files/books
writeable = yes
browseable = yes
valid users = michael, lisa
write list = michael
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
[Pictures]
comment = Pictures
path = /var/hda/files/pictures
writeable = yes
browseable = yes
valid users = michael, lisa, reece
write list = michael
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
[Movies]
comment = Movies
path = /var/hda/files/movies
writeable = yes
browseable = yes
valid users = michael, wii, sam, andrew, reece, lisa
write list = michael
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
[Music]
comment = Music
path = /var/hda/files/music
writeable = yes
browseable = yes
valid users = michael, lisa, reece, emma
write list = michael
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
[Docs]
comment = Docs
path = /var/hda/files/docs
writeable = yes
browseable = yes
valid users = michael, sam, emma
write list = michael
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
[Software]
comment = Software
path = /var/hda/files/Software
writeable = yes
browseable = yes
valid users = michael, lisa, reece, sam
write list = michael
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
[Torrents]
comment = Torrents
path = /var/hda/files/Torrents
writeable = yes
browseable = yes
valid users = michael, lisa, reece
write list = michael
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
Sam tries to access the Movies share, but gets "\\hda\Movies is not accessible."
Andrew tries to access the Movies share, but gets "\\hda\Movies is not accessible."
Michael tries to access the Movies share, but gets "\\hda\Movies is not accessible."
Reece tries to access the Movies share, but gets "\\hda\Movies is not accessible."
Wii tries to access the Movies share, but gets "\\hda\Movies is not accessible."
Lisa tries to access the Movies share, but gets "\\hda\Movies is not accessible."
Same for all shares at this moment.
The strange thing is shortly before the test Lisa did have access to the Music folder and for some reason had write access. Today I also tried changing Michaels password to "password" and then logging in and that worked, but as soon as I changed it back it stopped working. I have tried changing it again to "password," but that no longer gives me access.
What can I do? I have tried restarting the service with no success, am I able to reinstall Samba without breaking HDA?