Samba Shares Not Allowing Certain Users To Connect

pagemaster
Posts: 17
Joined: Thu Jul 02, 2009 5:04 am

Samba Shares Not Allowing Certain Users To Connect

Postby pagemaster » Fri Jul 10, 2009 8:06 am

Hello,
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
Here are my Access tests:
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?
Last edited by pagemaster on Fri Jul 10, 2009 8:19 am, edited 1 time in total.
My HDA:
OS: Fedora release 12 (Constantine)
CPU: Intel(R) Pentium(R) 4 CPU 2.26GHz
GPU: nVidia Corporation NV34 [GeForce FX 5200]
RAM: 1GB
HDD: ATA WD 320GB + ATA WD 500GB

bsk
Posts: 280
Joined: Sun May 03, 2009 7:18 pm
Location: Tennessee
Contact:

Re: Samba Shares Not Allowing Certian Users To Connect

Postby bsk » Fri Jul 10, 2009 8:16 am

Have you renewed you IP's on the clients as well?

Also, restart hdactl and monit:

Code: Select all

service hdactl restart

Code: Select all

service monit restart
Having problems with connecting to the internet? Try the Network Troubleshooter.

Not sure what your Gateway IP? Head on over to the Find Your Gateway IP page to find out easily.

Image

Who is online

Users browsing this forum: No registered users and 6 guests