=== enleeten_ is now known as enleeten [01:26] gents, having an issue I can't seem to solve.... I have some NFS shares that are accessed by 3 different machines on my network. It's worked in the past with 770 permissions (all three machines can access fine. Same username and password, different UID's obviously). I had to reload the OS on a windows box (one of the 3 machines) and now I have to have the permissions @ 777 to access the folders. I'm wondering what changed an [01:26] d how do I get it back? === Lcawte is now known as Lcawte|Away === zz_DenBeiren is now known as DenBeiren [02:51] lickalott, there is a lot of questions there [02:51] are you using nfs3 or nfs4 [02:51] what are these guests? you said something about windows? [02:51] nfs3 depends on the uid for permissions [02:52] i want to say nfs4. whatever the latest nfs-kernel-server is for 14.04. [02:52] nfs4 depends on what security model your running, but it generally also still needs uid and usernames to match between systems [02:52] what does, latest nfs-kernel-server have to do with version? [02:52] the latest nfs-kernel-server supports nfs2 nfs3 and nfs4 [02:52] 1 "guest" is a WDTV media streamer (can do samba and NFS, but have it set up for NFS), 1 is a windows box, and the other is a fedora laptop. The windows box is having the trouble right now. [02:52] oviously you configured nfs, so what did you use? [02:53] wait 1. let me check. [02:53] I doubt the wdtv can do nfs4 [02:53] and dunno if the windows one will default to nfs3 or nfs4 [02:54] but sounds like, making it work the way you want, is going be near impossible with nfs [02:54] how can I tell which version? [02:54] normally? on the mount option [02:54] type nfs (rw,noatime,bg,noacl,nfsvers=3 [02:55] as far as server, running nfs4 is a lot of work, and config [02:55] it did work like that (for a long time) before I had to reload the OS on the windows box. It doesn't really make much sense to me which is why i can't even attempt to recreate it to work again. Nothing has changed on the NFS side. the only thing that changed was the UID that is being used/seen on from the windows machine. [02:55] atleast if you planned to do it correctly [02:55] as I said, it's normally luck if it works [02:56] I have no idea how windows does nfs [02:56] but nfs DEPENDS on uid's to match [02:56] do you mean version on the windows side or the ubuntu server side? [02:56] so you need windows to match the uid when using nfs [02:56] I mean both sides [02:56] UID must match over ALL systems [02:56] or you loose all security over nfs [02:56] when using non-kerberos based nfs [02:57] that means, unless you use kerberos based nfs4, fully configured, you depend on uid matching over all clients and server, for security [02:57] i'm going to say nfs3. I don't think the built in windows NFS client module can handle nfs4. [02:58] and even with kerberos based nfs4, you still need uid and usernames to match, or it won't work right, but it will still be *secure* [02:58] I know nothing about windows nfs [02:58] and on the server....i used this https://help.ubuntu.com/community/SettingUpNFSHowTo [02:58] but somehow you need the uid's to match [03:00] that's what I was thinking. I even went as far as to make a user based on the UID from the windows box (something like 429128847). he now shows up with an actual username. Then added that user to a group that has "group" priviledges on the folders in question. [03:00] but still can't access unless the permissions are wide open. [03:00] I'll look into the UID match thing and report back if I get anywhere (just incase someone else ever asks.) [03:01] I don't know about the group thing [03:01] if it's verified on the server or the client [03:01] your assuming server side though [03:01] true [03:06] lickalott: is this Windows 7? [03:06] yes [03:07] ill install NFS Client on my VM and see if it supports NFS4 [03:08] looks like it does, just not natively - http://www.citi.umich.edu/projects/nfsv4/windows/readme.html [03:12] I connected to my NFS4 share just fine via the client in WIndows 7 [03:13] Here are some of the command line switches for it http://technet.microsoft.com/en-us/library/cc754350.aspx [03:14] cryptodan, that document lists a lot of nfs3 stuff [03:14] you SURE it's using nfs4? [03:15] oh there it is [03:15] I would imagine that my client would have gotten a protocol mismatch [03:15] -o sec=.... [03:15] looks like windows 8 does [03:20] mount -o mtype=soft 192.168.1.108:/media/cyclops Z: [03:20] mount -o mtype=soft 192.168.1.108:/media/iceman Y: [03:20] mount -o mtype=soft 192.168.1.108:/media/wolverine X: [03:20] mount -o mtype=soft 192.168.1.108:/home/weed/ipcam1 W: [03:20] mount -o mtype=soft 192.168.1.108:/home/weed/ipcam2 V: [03:21] that's what mine looks like now. [03:21] wrong slashes I think [03:22] it works. its just the permissions thing. [03:22] C:\Users\cryptodan>mount \\192.168.1.8\home\cryptodan\public_html U: [03:22] U: is now successfully connected to \\192.168.1.8\home\cryptodan\public_html [03:22] cryptodan, that is nfs? that looks like smb/cifs [03:23] its nfs [03:23] dont have SMB on my server at all [03:24] i can't get it to work with the slashes that way. [03:25] C:\Users\weed>mount -o \\192.168.1.108\CYCLOPS U: [03:25] Network Error - 53 [03:25] Type 'NET HELPMSG 53' for more information. [03:25] you need the full path [03:25] and I didnt use the -o [03:26] lickalott: and are you sure that the nfs admin and client are installed on the client machine? [03:27] got it to mount. [03:28] pretty sure.... i went into programs and features and enabled everything NFS. Even went as far as to install "services for NFS" [03:29] thats all I did and followed one of the examples in that post on that site from MS to mount it [03:30] what are you permissions on the server side for the folders/files? I've made the main folders 777 but the subdirs and files that i haven't touched yet I can't access from the windows side. [03:30] * teward coughs at 777 [03:30] serious [03:31] default for the mount [03:31] are you saying default for the mount as in "whatever the default is" or 777 is default for the mount? [03:32] 755 [03:33] so its mounting via nfs3 [03:33] yep, that's how I had it. and it worked fine before. For some reason I can't get to them now unless I changed the permissions (which I don't really want to do) This server has an internet facing interface and I'd rather not have my stuff wide open. [03:34] as does my server but my firewall disallows nfs from the outside [03:34] but you're running nfsv4 on the server side? [03:34] yes [03:35] i have to be missing something.... [03:35] I'm even sharing out NFS mounts from the windows box fine. (Hanewin NFS server) [03:36] let me create a new user in my VM and see if I can mount it [03:39] new user mounts fine and the user doesnt exist on the server can access files but cant create them [03:40] will you do me a favor? can you pastebin your /etc/exports file? [03:41] /home/cryptodan/public_html 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync) [03:42] /media/CYCLOPS *(rw,sync,no_subtree_check) [03:42] what does the insecure switch do for you? [03:42] unauthed access I believe [03:52] thanks cryptodan. It seems to be working now with 755 [03:52] you are welcome === markthomas|away is now known as markthomas === bilde2910|away is now known as bilde2910 === markthomas is now known as markthomas|away === not_phunyguy is now known as phunyguy [08:01] hello everyone. I'm looking for some help converting a server with a single hdd over to bootable RAID 1. It's currently hdd > LUKS > LVM [08:51] Good morning. [09:16] hi all [09:18] o/ === Lcawte|Away is now known as Lcawte === bilde2910 is now known as bilde2910|away === bilde2910|away is now known as bilde2910 [14:25] hi.. today I got this email http://pastie.org/9812344 from my VPS [14:25] does this mean something bad? [14:26] I'm checking mail.err log and noticing a lot of invalid email address errors. is this spam? [15:17] FrEaKmAn_, it would be helpful if you told us something [15:17] we can't tell you anything so far [15:19] Patrickdk, neither do I :) [15:19] I don't know in which direction to go.. [15:20] where are the logs? what is the name of your server? [15:40] in var/log.. name? === bilde2910 is now known as bilde2910|away === bilde2910|away is now known as bilde2910 === rcj is now known as Guest48642 === chmurifree is now known as chmuri [19:22] hello everyone. I'm trying to install Ubuntu Server 14.04 LTS using RAID/LVM/LUKS. I correctly configure all the petitions and mount points, and everything in the install goes smooth, until it gets to the bootloader install. It runs "grub-install /dev/sda /dev/sdb" and crashes with the unhelpfully vague message that grub-install failed [19:22] anyone know what the problem is? [19:23] it should only be trying to install on one drive [19:25] in order for it to be bootable from either disk in RAID 1 it has to be on both drives [19:25] otherwise you have one drive with a bootloader and the other without. defeats the point of RAID 1 if you have to manually install a bootloader when one of the drives fails [19:25] I have a RAD 1 for my system partition, and when I Installed it it selected only one drive [19:25] RAID 1* [19:26] if you pull that drive out (to simulate a drive failure), you won't be able to boot [19:26] if only one of the drives in the array has a bootloader, if it fails, the system can't boot [19:27] it should mirror it during install and as such the data should be mirrored [19:28] here's the steps I followed. [19:29] 1. Create 2 identical partition tables on /dev/sda and /dev/sdb -- /dev/sda/b1 are 250MB type FD (RAID), /dev/sda/b2 are 100% (all remaining space) type FD [19:29] 2. Create md0 from sda/b1 and md1 from sda/b2 [19:30] so this is software raid? [19:30] yes. configured using the Ubuntu Server installer [19:31] ah mine is hardware raid via controller so your setup is different [19:31] yeah :-\ [19:32] and mdraid is gone and as such dmraid is inplay I believe in Ubuntu 14.04 LTS [19:32] the issue seems to be with ubiquity, not with grub [19:33] then again, I could be wrong [19:34] anyway, here's the rest, maybe someone else can see and give some insight [19:37] 3. md0 is configured as ext3 mounted at /boot (intended to be used for the boot files with /dev/sda and /dev/sdb as the bootloader disks) [19:37] 4. md1 is configured as physical volume for LUKS [19:37] try not using encryption and see if you succeed [19:41] brb [20:01] had to restart the laptop i'm on === bilde2910 is now known as bilde2910|away [21:20] cryptodan, trying the raid 1 install without any encryption or LVM. just 4 partitions on each hdd (/boot, /, swap, and home), arrayed into /dev/md0, md1, md2, and md3 respectively [21:21] kk === bilde2910|away is now known as bilde2910 === bilde2910 is now known as bilde2910|away [21:38] cryptodan, okay it installed without the same error as before (I think) [21:39] Aside from pulling one or the other hdd out, how can I chec that it actually booted from /md0 and not from /sda or /sdb [21:39] ? [21:43] thats the only way [21:45] using grep /dev/md /etc/fstab I verified at least that the filesystems actually are on the RAID devices [21:46] confirmed that / is on md1, /boot on md0, etc. all where they should be [21:46] so it sounds like the issue was in your luks setup [21:46] so far anyway [22:07] LoL cryptodan for future reference, make sure /proc/sys/dev/raid/speed_limit_min and _max are set high [22:07] was trying to figure out why it was so slow (1000KB/sec resync, really?!?!), speed limit was set to 1k [22:07] lol [22:09] I'm gonna try redoing the install with crypto on and see if it works [22:11] the only annoying thing is that if you use crypto for all of the partitions, you have to type in the passphrase that many times at least once. once the system is up and running you can create keyfiles for all the partitions, but holy f**k it's annoying thta the installer doesn't just work right [22:44] lol [22:52] Hello [22:53] Is there any magic that I changed one file and my site is totally broken? [22:53] I returned everything to previous situation. [22:53] And site stil does not work. [22:54] No error. [22:54] How come? [22:55] Depends on the file you changed :) [22:56] bekks: It was a template. [22:56] And? [22:56] And nothing more. [22:56] Whats the filename? [22:56] template.html.php [22:57] As I said I returned original one. [22:57] But it's still blank page. [22:57] Could you provide a bit more information please? Like which Ubuntu do you have, which webserver, where did you get that file from, where is it stored, erc.? [22:57] *etc [22:57] bekks: surely. [22:58] It's Ubuntu 14.04 LTS [22:58] apache2 [22:58] You dont have to press enter after every three words ;) [22:58] File was sent by my client - he said it's original one to the framework (PHPFox) [22:59] Okay. [22:59] So, I changed them. [22:59] And next I got blank page. (wtf?!) [23:00] Okay, I thought file is broken or something, so I changed files one more time (to the file that was eariler). [23:00] And despite I reloaded everything (apache, mysql) I get blank page. [23:00] No error. [23:01] And yes, I have set php to display errors. [23:01] In index.php as well as in php.ini. [23:01] bekks: I don't really know what is the problem. [23:01] No error given, no warning. I checked every log that is related to this site. [23:01] Literally nothing. [23:01] Do you need something more? [23:02] Any idea? [23:02] I configured everything on this server, so I believe it's well done. [23:02] Permissions are okay. [23:08] I reloaded cache. It works again.