Thanks all for help and advice. I got it working, but it was not really
easy. I try to describe what I did here, maybe it helps other
beginners. (At least the steps I think that were relevant....)

Step 1: make sure to in stall Samba:
sudo get-apt install smbfs
Step 2: install winbind:
sudo aptitude install winbind

Step 3: edit /etc/nssswitch.conf
sudo gedit /etc/nasswitch.conf

change the line hosts: files dns (or something that looks like this)

into

hosts: files wins dns

Step 4:
Create a directory where to mount the NAS and set permissions:

sudo mkdir /mnt/nas
sudo chmod 777 /mnt/nas (warning for home networking this may be OK,
but not for more open networks)

Step 5:
Create a password file (not sureif this is really necessary)

sudo gedit /root/.smbcreds

Should contain two lines:

username=username
password=mypassword

Step 5: edit /etc/fstab

sudo gedit /etc/fstab

Add single line:
//nas/public /mnt/nas cifs
credentials=/root/.smbcreds,rw,iocharset=utf8,setuids,file_mode=0666,dir_mode=0777
0 0

Step 6:
sudo -a mount

Step 7:
In the squeezecenter you can access the nas now on the mount point:
/mnt/nas

Hope this helps for the beginning Linux server experts. I know this is
just a recipe. I did not care to much about understanding all details.

Rudolf


-- 
RudolfJan
------------------------------------------------------------------------
RudolfJan's Profile: http://forums.slimdevices.com/member.php?userid=20874
View this thread: http://forums.slimdevices.com/showthread.php?t=54521

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to