Thank you Steve and everyone for the feedback clues.
Yes I have been finding testparm useful, and my server does show its
share folder using smbclient -L , but just to itself so far. I shall
plod away at server-building until I get competent at it, but the
urgency has thankfully gone.
Really it's the conceptual network-machine language I need to brush up
on; where to use samba.server.local (etc/hostname) and can I use
ubuntu.samba.server.local as well (and not ubuntu.samba.server.com I
assume) where "ubuntu" is the etc/hosts name. It is almost making sense
by now!
But starting at point 0 on this learning curve a week ago has been
impossible for meeting deployment day, today, so happily there was good
off-line community advice for a gritty little samba (+++!) solution off
the shelf, now doing the snappy server business required as we speak:
http://www.asustor.com/product?p_id=18
Really nice gear I can recommend! Affordable too, so thanks again for
all your help :-D
On 2015-05-29 21:18, Steve Holdoway wrote:
On 27/05/15 11:49, Rik Tindall wrote:
On 2015-05-26 21:32, Eliot Blennerhassett wrote:
On 26/05/15 15:20, Rik Tindall wrote:
Samba newbie question please.
I have set up an Ubuntu 15.04 Server box with samba configured,
and am
trying to connect my Ubuntu 12.04 desktop to view the share files
set up
on the server.
Have followed the goguda55techtutorials youtube video posts to get
this
far.
Ugh. Can you summarise in text what you have done. I'd bet nobody
is
willing to go and view a video to find out...
Scratch that. Clean re-install, Ubuntu 14.04.2 Server, out of the
box..
Just samba and openssh as added packages.
The first thing goguda taught was to set static IP address etc in
/etc/network/interfaces, over the installed "dhcp" setting. But pings
ok as is now. - Must I set the static IP?
server needs a static ip address. Whether you use static or associate
an ip address with a mac address via dhcp is up to you.
Have you enabled any shares on the server?
If so, how?
I had written some [UserFiles] sections under global in smb.conf but
they are wiped now.
I see there are various approaches, like a /files directory from
root dir that the above would link to, or under /home/user/User/files.
- What is recommended please?
Are you familiar with the testparm command?
I think it is safe for you to share your /etc/samba/smb.conf
I.e. it shouldn't contain any things that should be kept secret
(like
passwords). Read it yourself and be satisfied about this before
posting.
static shares are defined in this file.
Will follow advice to: mv /etc/samba/smb.conf
/etc/samba/smb.conf.bak
Then write new smb.conf as per:
https://www.liberiangeek.net/2014/07/ubuntu-tips-create-samba-file-server-ubuntu-14-04/
user level shares are usually created from the Files application,
and
info about them is stored in
/var/lib/samba/usershares
Ah. From the client end. Thanks.
Progress thus: the boxes can ping each other and their gateway; "#
service smbd restart" on server works ok.
May need also 'service nmbd restart'
On my machine 'service samba status' returns
* nmbd is running
* smbd is running
New server does return this.
this is really important.
To make sure the server can be found: First on the server, then on
the
client:
'nmblookup my.server.name' should return an IP address
rik@rik-Core-duo-1860:~$ nmblookup my.server.name
querying my.server.name on 10.255.255.255
name_query failed to find name my.server.name
- Both boxes return this.
-- Eliot
Cheers, Rik
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users