Havenstance | anyone in here able to take a look at a samba config I'm running on 18.04 lts? I can view the share on my windows box, however I cannot actually write anything to it | 13:51 |
---|---|---|
Havenstance | I swear I've looked at permissions a million times but I'm missing something in there | 13:51 |
Havenstance | https://pastebin.com/BuCnWf5L | 13:55 |
Havenstance | I've asked in #samba too so just incase someone here knew I thought I'd bounce it off the bunch of sysadmins I know are in here lol | 13:56 |
Havenstance | have to reboot this machine.... I forgot the sudo password xD | 14:13 |
Havenstance | welp that's embarassing, I broke this box lol | 14:27 |
cmaloney | Havenstance: Lovely. :) | 14:49 |
cmaloney | Re: samba: I've had as little experience with it as possible, so sadly I'm of no help there. | 14:49 |
Havenstance | eh, it's okay it's majaro anyway, I thought I read ubuntu had a 20.04 lts out now? | 15:00 |
Havenstance | im gonna look in a bit and if that's true it's going on top of this manjaro lol | 15:00 |
Havenstance | as far as samba goes, im thinking it just doesn't like to share with windows | 15:01 |
cmaloney | It depends on the Windows | 15:01 |
cmaloney | it's crabby if AD is there anywhere in the system | 15:01 |
Havenstance | so I may just use a small windows xp vm to share those volumes if I can find the iso | 15:01 |
Havenstance | I don't have AD that I know of, but it's Windows 10 I can see the shares but I can't read them... | 15:02 |
Havenstance | and tbh im sure 10 is only being so tempermental because it heard me say I was gonna replace it with Ubuntu Studio lol | 15:05 |
Havenstance | but im gonna wait for 20.04 as I now see that's coming in April :) | 15:05 |
jrwren | Havenstance: unix file permissions still apply, so what is the ownership and permissions for /media/share1 and /media/share2 ? | 15:10 |
jrwren | samba shares with windows just fine, it has for 20+yrs now, and crazily, I've been using it for longer than that. | 15:11 |
cmaloney | Yeah, $lastjob had Samba for the longest time | 15:12 |
cmaloney | when they moved to AD is when things started falling apart | 15:12 |
cmaloney | My evidence is anecdotal though | 15:13 |
jrwren | how long ago was that? | 15:15 |
cmaloney | 2015-2016ish? | 15:16 |
cmaloney | Before Windows 10, for sure | 15:17 |
Havenstance | jrwren, I've used it in the past with absolutely zero issues | 15:17 |
Havenstance | just seems with Windows 10 things are far more quirky than they ever used to be with xp or even 98se lol | 15:17 |
cmaloney | Might have been 2017 | 15:17 |
cmaloney | XP to Windows 10 is quite a long jump. ;) | 15:18 |
cmaloney | I'm sure there are still places though that are planning their Windows 7 migrations. ;) | 15:18 |
Havenstance | well I hated 7, and 8 and 8.1 were uh to put it mildly not friendly | 15:18 |
Havenstance | dude my work still has XP boxes | 15:18 |
Havenstance | and I work for a mortgage company | 15:18 |
cmaloney | This does not surprise me | 15:19 |
Havenstance | granted those boxes do not do anything except handle file automation and their blocked from internet | 15:19 |
Havenstance | but someone internal who knows what their doing could cause some serious issues lol | 15:19 |
Havenstance | hang on, forgot this is linux I don't have to open anything special to get that info | 15:19 |
jrwren | i'm definitely using it with a win10 client. | 15:20 |
jrwren | works fine. | 15:20 |
cmaloney | jrwren: Are you using AD at all? | 15:21 |
jrwren | no. | 15:21 |
Havenstance | okay so I am seeing something strange in this terminal man | 15:21 |
Havenstance | havenstance@dockerpriv:~$ ls -l /media/files | 15:21 |
Havenstance | total 0 | 15:21 |
jrwren | I think the thing that you are missing is `encrypt passwords = true` in your smb.conf, but that may be default these days. | 15:22 |
jrwren | yeah, it is default true on my samba. | 15:22 |
Havenstance | see yesterday it was stuck as root/root | 15:22 |
Havenstance | so at least I see a change means im getting somewhere lol | 15:23 |
jrwren | isn't is /media/share1 and /media/share2? | 15:23 |
jrwren | what does ls -al /media/share1 /media/share2 say? | 15:24 |
Havenstance | ls -al /media/share1 | 15:24 |
Havenstance | sec | 15:24 |
Havenstance | havenstance@dockerpriv:~$ ls -al /media/share1 | 15:24 |
Havenstance | ls: cannot access '/media/share1': No such file or directory | 15:24 |
Havenstance | I'll pull that section that defines shares from SMB.conf | 15:25 |
jrwren | did you set the password with smbpasswd? | 15:27 |
Havenstance | those are spoofed share names man | 15:28 |
jrwren | oh, so it wasn't actually your smb.conf? | 15:28 |
Havenstance | forgot I changed those, the originals are actually /media/plex and /media/files | 15:28 |
Havenstance | nah I spoofed just the ending, figured if when you said share1 share2 I'd know to substitute those directories in the commands based on what you said | 15:29 |
Havenstance | hang on I'll give you the actual config, and yes I did set password with smbpass, even set up the .conf to allow for passwordless access, I can see those directories when I run sudo mount -a and come to them from windows | 15:29 |
Havenstance | just trying to put anything in it says you need permission | 15:30 |
Havenstance | despite me saying chown 1000:1000 /both/sharenames | 15:30 |
jrwren | what user is 1000? | 15:30 |
Havenstance | havenstance | 15:30 |
Havenstance | group is haventsance on 1000 too | 15:30 |
jrwren | but you have forceuser=openmyfiles? | 15:31 |
jrwren | I'd remove the forceuser,forcegroup from the smb.conf | 15:31 |
jrwren | i'd also remove the valid users. | 15:31 |
Havenstance | putting it in was an attempt to resolve too lol I'll remove that if it's not needed, the openmyfiles was another account i created and did a chown too as well | 15:31 |
Havenstance | but it didn't work either | 15:32 |
Havenstance | making the edits now | 15:32 |
Havenstance | im trying to get these so that docker can use them cuz I wanna put a bunch of containers on this thing for plex & related stuff | 15:33 |
jrwren | you are going to run docker with storage over SMB? | 15:34 |
Havenstance | so to be clear before I save this man, I'm removing forceuser, forcegroup, and validusers? | 15:34 |
Havenstance | no | 15:34 |
Havenstance | smb is to share that stuff to my windows machine | 15:34 |
Havenstance | docker is going on this machine when I get the shares working | 15:34 |
jrwren | k | 15:34 |
jrwren | yes, remove those, they aren't needed | 15:34 |
Havenstance | all the smb is for so I can drop new files in when the wife makes me buy her stuff lol | 15:35 |
jrwren | have you tried connecting with smbclient to localhsot? | 15:35 |
Havenstance | oooo | 15:36 |
Havenstance | something happened it let me write a file to it that time | 15:36 |
Havenstance | gonna check terminal and see if it shows up | 15:36 |
Havenstance | dude you just fixed it | 15:37 |
jrwren | \m/ | 15:37 |
* Havenstance sends jrwren an e-beer | 15:38 | |
jrwren | thanks. | 15:38 |
Havenstance | no thank you man | 15:38 |
jrwren | now run a speed test, how fast can you copy a large file to it? | 15:38 |
Havenstance | that was the most frustrating thing | 15:38 |
jrwren | I want to be filled with envy at the speed. | 15:38 |
Havenstance | it's gonna be slow af I haven't disabled the offloading on the xcp-ng vm adapters yet | 15:38 |
jrwren | oh, its a VM? then I will feel no envy. :) | 15:39 |
Havenstance | nvm | 15:43 |
Havenstance | it is in fact transferring at gigabit | 15:43 |
Havenstance | and even more | 15:43 |
jrwren | noice! | 15:43 |
Havenstance | I don't have to enter a password to view my files | 15:43 |
Havenstance | ITS A MIRACLE, not only did you help me get this going but you stopped the wife nagging me about the nag box lol | 15:44 |
jrwren | well, i do love me some samba. | 15:44 |
Havenstance | now that I have a working config file it'll make it so much easier to setup in the future should I need to | 16:01 |
Havenstance | ok so now I mapped the shares to my windows pc, and windows is saying it has just shy of a tb | 17:12 |
Havenstance | that movies drive is a 4tb raid 0 and the storage is 1.5tb | 17:13 |
Havenstance | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | 17:13 |
Havenstance | sr0 11:0 1 1024M 0 rom | 17:13 |
Havenstance | xvda 202:0 0 1000G 0 disk | 17:13 |
Havenstance | └─xvda1 202:1 0 1000G 0 part / | 17:13 |
Havenstance | xvdb 202:16 0 2T 0 disk | 17:13 |
Havenstance | └─md0 9:0 0 3.9T 0 raid0 /media/plex | 17:13 |
Havenstance | xvdc 202:32 0 2T 0 disk | 17:13 |
Havenstance | └─md0 9:0 0 3.9T 0 raid0 /media/plex | 17:13 |
Havenstance | xvde 202:64 0 1.5T 0 disk /media/files | 17:13 |
Havenstance | whatever the hell I did just fixed it lol | 17:22 |
jrwren | oh man. i love this. http://librarybox.us/ | 17:58 |
_stink_ | nice! | 20:10 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!