DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-12-01 15:44:04

tiwas
Member
Registered: 2007-11-13
Posts: 16

Samba config problem

Hi guys,

Hope you're not too tired of seeing my posts yet :p Things are looking a whole lot better now, but...I'm having some Samba problems.

I've got my samba up and running, got it in the domain, and everything looks fine. However, when I try to enter the device from a windows computer, I get en error saying "\\Fileserver is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. The account is not authorized to log in from this station".

I've tried to remove validusers from the samba config, but still not.

The directory I'm trying to share is /mnt/HD_a2/Dokumenter, it's 777 nobody/501 (??). I've also tried with another directory which is 755 root/root.

Here's my smb.conf (without comments):
[global]
password server = fotballshopsrv.fotballshop.local
realm = FOTBALLSHOP.LOCAL
netbios name = Filserver
   workgroup = fotballshop
   server string = %h server
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d

   security = ads
   encrypt passwords = yes
   passdb backend = tdbsam
   obey pam restrictions = yes
;   guest account = nobody
   invalid users = root

   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .

;   domain logons = yes

   socket options = TCP_NODELAY

   idmap uid = 10000-20000
   idmap gid = 10000-20000
   winbind enum groups = yes
   winbind enum users = yes
   winbind use default domain = yes

[Dokumenter]
   comment = Fotballshops filserver
#   validusers = someuser
   path = /mnt/HD_a2/Dokumenter
   public = yes
   writable = yes
   printable = no
   createmask = 0765


Cheers!

Offline

 

#2 2008-01-18 15:07:14

markchicobaby
Member
Registered: 2008-01-13
Posts: 22

Re: Samba config problem

From my WinXP box, I had a similar problem.   Fix was to simply touch the config via the web admin.  Probably a bug, I think I saw somewhere its fixed in the next firmware.  Hope it works for you.

Every time I reboot the DNS323, it will ask me for a password if I try to map a drive to it.

The workaround:
- Go to the web administrator for the DNS323
- Edit the workgroup name, but don't change it. I usually just delete the last character and retype it.
- Save settings

And now it works and will allow drives to be mapped.

That's IT!!!  No other magic involved.

Also, you should make sure the workgroup fotballshop in your script is ALL UPPERCASE ie FOTBALLSHOP.  And of course ensure the windows box is in the same domain, also uppercase.  (The Samba docs recommend only using uppercase for workgroup names)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB