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?
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?
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.
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