shakes808 | Good evening all. I want to know what I should use for a network share between Ubuntu Server and Windows? It looks like Samba is the defacto, is this correct? | 01:03 |
---|---|---|
jrwren | shakes808: yes. | 01:05 |
shakes808 | Thank you :) | 01:06 |
shakes808 | I will install it. | 01:09 |
jrwren | its pretty great. | 01:14 |
cmaloney | Samba is pretty much the protocol for anything Windows | 01:30 |
shakes808 | When setting up the samba, I am trying to get it so that I can access the user's home directory for the specified user logging into the folder. | 02:48 |
shakes808 | either my google-foo isn't the greatest or searching the wrong things | 02:49 |
jrwren | shakes808: yes, use the smbpasswd command to set the smb password for that user | 02:49 |
shakes808 | jrwren: thank you, will search for that. That hasn't come up in my google searches or youtube results | 02:49 |
jrwren | shakes808: and [homes] is a special share in samba, just have it in samba | 02:50 |
jrwren | it will automatically share a homedir with same name as user. | 02:50 |
jrwren | so \\server\jrwren in jrwren's homedir samba will ask for auth, windows will show a prompt, and I'll type in teh password set for jrwren with smbpasswd | 02:50 |
shakes808 | gotcha, let me try this out :) thank you | 02:51 |
shakes808 | jrwren: I added me and it won't let me because it is mapped to a different user. I am SSH'd into my server and it should be name@server: correct? and when I go to log into the share it should be \\IPADDRESS\user\home and log in with name@server | 02:59 |
jrwren | no \user there. | 03:01 |
jrwren | just \\ipaddress\username | 03:01 |
jrwren | and login with name & password, no @server | 03:01 |
shakes808 | when i try to do that it puts my COMPUTER_NAME\user and gives me access denied | 03:06 |
jrwren | you sure you set the password for that user using smbpasswd ? | 03:07 |
shakes808 | My Ubuntu Server doesn't have a domainname, that could be it | 03:07 |
shakes808 | yes | 03:07 |
jrwren | do you have `security = user` and `encrypt passwords = true` in your smb.conf ? | 03:08 |
shakes808 | let me check | 03:08 |
jrwren | those should be ubuntu default, but honestly, my smb.conf is 10yrs old (or more) | 03:08 |
shakes808 | I do not have | 03:09 |
shakes808 | 'security = user' any where in the conf file | 03:09 |
jrwren | add those to the [global] section | 03:09 |
shakes808 | and as for encrypt | 03:09 |
shakes808 | i have the following | 03:09 |
jrwren | then again, they might be defaults and I just have explicit, but this is what has always worked for me. | 03:10 |
shakes808 | unix password sync = yes | 03:10 |
shakes808 | I can add them | 03:10 |
jrwren | you can ignore that for now. | 03:10 |
jrwren | security=user is default, so probably save to skip that. | 03:10 |
jrwren | bah, default is encrypt passwords = yes | 03:11 |
jrwren | so honestly, it should work. | 03:11 |
jrwren | you can test with smbclient on linux cmdline | 03:11 |
shakes808 | how can i test that from my windows machine? | 03:12 |
jrwren | you don't, test the username and password over samba from the linux machine itself | 03:13 |
jrwren | smbclient //servername/user -U user | 03:13 |
jrwren | and type password when prompted | 03:13 |
jrwren | it will test that the smbpasswd is set correctly | 03:13 |
jrwren | user is not root, right? | 03:13 |
shakes808 | correct | 03:14 |
shakes808 | i got into it that way | 03:15 |
shakes808 | i am in the smb: \> | 03:15 |
shakes808 | just can't map the drive out on my windows machine ;( | 03:20 |
jrwren | ok, then its something windows side. | 03:23 |
jrwren | what windows version is it? | 03:23 |
shakes808 | 8.1 | 03:23 |
jrwren | and what samba version ? | 03:23 |
shakes808 | samba --version says: Version 4.1.6-Ubuntu | 03:24 |
jrwren | what is that? trusty version? 14.04? | 03:25 |
shakes808 | Correct, LTS | 03:25 |
shakes808 | Just set up the server last weekend, and Samba in the last few hours | 03:26 |
jrwren | hrm, so I used to use samba3 and so my windows clients all had digital signing off | 03:27 |
jrwren | but apparently samba 4 supports that now, so now I really don't know. | 03:27 |
jrwren | ah, but default is disabled. | 03:28 |
jrwren | you could try setting `server signing = auto` in the global section | 03:28 |
shakes808 | does it matter where or should it go in a specific spot? | 03:29 |
jrwren | no anywhere in the [global] section. i guess you may not be familiar with ini format files? | 03:30 |
jrwren | so, after [global] but before any other line that starts with [ | 03:30 |
shakes808 | getting used to them. I need / want to get back into OSS things | 03:32 |
shakes808 | that is why the attempt to set up the dev box as a UBUNTU and try to admin it ;) | 03:32 |
shakes808 | Nope :( | 03:34 |
shakes808 | Do I need to do anything to my host file on my WINDOWS machine? | 03:39 |
shakes808 | jrwren: Thank you for you assistance tonight. I am going to bed. I'll ask some of my buddy's at work to see if they have run across anything like this. | 03:50 |
shakes808 | good night | 03:52 |
=== _stink__ is now known as _stink_ |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!