Linux how do i access nas/samba

thank you both I am dumb I dont yet know how to make a backup
 
thank you both I am dumb I dont yet know how to make a backup

sudo cd /etc/samba
sudo cp samba.conf samba.conf.bak

Should create a backup called samba.conf.bak in the /etc/samba directory. The cp command is copy. Check it's there by doing an ls (list).
 
I found how to make a master file with testparm -s smb.conf.master >smb.conf which seems to have worked and my duo can now see the files with the new conf file supplied by him her so I really big that you for all your help
 
Hi after all the work put in to this raspberry project something went wrong and my ip address got changed for the rpi and everything stopped working I spent days trying to get it working again and even the sd card got corrupted when i tried reformatting it to get rid of all the programs on it so now i only have sickbeard and sabnzbd on it but haven't yet tested them they seam to be shutting down on their own as I cannot access either sickbeard or sabnzbd after doing so to configure them
 
I have lost the raspberry nas again I have used the config file supplied by him her this what samba thinks it is doing now

Enter root's password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]

Sharename Type Comment
--------- ---- -------
public Disk shared
IPC$ IPC IPC Service (Samba 3.6.6)
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]

Server Comment
--------- -------
RASPBERRYPI Samba 3.6.6

Workgroup Master
--------- -------
KODAKAIO EKDEF75305
VIX VUDUO
WORKGROUP RASPBERRYPI
my duo can see the raspberry server and i entered these details on the duo network mount after installing samba
fstab
active
raspberrpi
cifs
192.168.0.*
mnt/share [server share]
no [use as hdd replacement]
rw
root
no password

I cannot see where I have gone wrong
 
from smbclient -L vuduo

Domain=[VIX] OS=[Unix] Server=[Samba 3.0.37]

Sharename Type Comment
--------- ---- -------
Root Disk Everything - take care!
Harddisk Disk The harddisk
IPC$ IPC IPC Service (Dreambox vuduo network services)
Domain=[VIX] OS=[Unix] Server=[Samba 3.0.37]

Server Comment
--------- -------
VUDUO Dreambox vuduo network services

Workgroup Master
--------- -------
KODAKAIO EKDEF75305
VIX VUDUO
WORKGROUP RASPBERRYPI

so the duo knows the raspberry is there but it cannot see any files in the mount I have tried media files location on the duo but to no avail
 
Try changing the workgroup on the PI to VIX - it shouldn't make a difference but SMB is a fickle thing!

I take it the KodakAIO is a printer?
 
yes it is a printer I am not using it with the raspberry but it is wirelessly connected to the same network. I have renamed the work group to VIX but there is no change the duo network scan sees the raspberrypi but it does not find any files
 
Leave it for a while M8, the Samba daemons should have reloaded by now but the browse list may not be complete then try repeating the smbclient -L command and post the output...
 
still no luck this is the output
pi@raspberrypi ~ $ smbclient -L VUDUO
Enter pi's password:
Domain=[VIX] OS=[Unix] Server=[Samba 3.0.37]

Sharename Type Comment
--------- ---- -------
Root Disk Everything - take care!
Harddisk Disk The harddisk
IPC$ IPC IPC Service (Dreambox vuduo network services)
Domain=[VIX] OS=[Unix] Server=[Samba 3.0.37]

Server Comment
--------- -------
RASPBERRYPI Samba 3.6.6
VUDUO Dreambox vuduo network services

Workgroup Master
--------- -------
KODAKAIO EKDEF75305
VIX VUDUO
pi@raspberrypi ~ $ smbclient -L localhost
Enter pi's password:
Anonymous login successful
Domain=[VIX] OS=[Unix] Server=[Samba 3.6.6]

Sharename Type Comment
--------- ---- -------
public Disk shared
IPC$ IPC IPC Service (Samba 3.6.6)
Anonymous login successful
Domain=[VIX] OS=[Unix] Server=[Samba 3.6.6]

Server Comment
--------- -------
RASPBERRYPI Samba 3.6.6
VUDUO Dreambox vuduo network services

Workgroup Master
--------- -------
VIX VUDUO

still no files available
 
Last edited:
this is the duo smb.conf[global]
load printers = no
guest account = root
log file = /tmp/smb.log
log level = 1
security = share
server string = Dreambox %h network services
workgroup = ViX
netbios name = %h
case sensitive=yes
preserve case=yes
short preserve case=yes
socket options = TCP_NODELAY
preferred master = no ;(These stop the machine being master browser, which means that it doesn't waste time there.)
oplocks = no

[Root]
comment = Everything - take care!
path = /
read only = no
public = yes
guest ok = yes

[Harddisk]
comment = The harddisk
path = /media/hdd
read only = no
public = yes
guest ok = yes

and the smb.conf file for RPi is the same one you posted in post #20 on page 2 of this thread
 
Have you checked the Samba users exist and the permissions on the files are correct?
 
the samba user is smbaccess and the file properties are rw if i understand what you are asking for
 
If you do an 'ls -l' on the shared directory on the PI you should see some output like:

drwxr-xr-x 3 nana writers 80 2005-09-20 21:37 dir
-rw-r----- 1 nana writers 8187 2005-09-19 13:35 file
-rwxr-xr-x 1 nana writers 10348 2005-07-17 20:31 otherfile

The first block of rwx shows permissions for the owner (nana), the second block of rwx is for the group (writers) and the third block of rwx is for the World. Sorry is this is all well-known to you but the symptoms look like permissions or authentication.

What happens when you do a mount on the VUO? Example below:


mount -t cifs -o username=USERNAME,password=PASSWD //192.168.1.88/shares /mnt/share

Obviously, substitute the PI IP and share name plus your smb user and password.
 
this is from ls -l
pi@raspberrypi /mnt/share $ ls -l
total 4
drwxrwxr-x 2 root users 4096 Feb 8 12:19 tv

and this is from telnet to the vuduo

mount error: can not change directory into mount target /mnt/share
mount: mounting //192.168.*.**/RASPBERRYPI on /mnt/share failed: No such file or directory

sorry about the delay but I was watching wigan show the super league what you can do with a home grown team of youngsters
 
What's the Samba username and password, IP of the Raspberry, name of the share and location on the Duo you want it mounted to? I'll be out on a wee job for a couple of hours so no rush :)
 
this is the telnet response from the duo

mount -t cifs -o username=USERNAME,password=PASSWD //192.168.1.88/shares /mnt/share

mount error: can not change directory into mount target /mnt/share
mount: mounting //192.169.*.**/RASPBERRYPI on /mnt/share failed: No such file or directory

this is from the Pi
pi@raspberrypi /mnt/share $ ls -l
total 4
drwxrwxr-x 2 root users 4096 Feb 8 12:19 tv

sorry about the delay
 
Your mount command should be:

mount -t cifs -o username=smbaccess,password=smbaccess //?.?.?.?/public /mnt/share

Replace ?.?.?.? with the IP of the Raspberry. The share is named 'public' because the smb.conf on the PI has that in brackets like this - [public], that's the share name.

If you can post the output of that mount command when run on the Duo?
 
Back
Top