/srv/irclogs.ubuntu.com/2015/01/04/#ubuntu-server.txt

=== enleeten_ is now known as enleeten
lickalott 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 an01:26
lickalottd how do I get it back?01:26
=== Lcawte is now known as Lcawte|Away
=== zz_DenBeiren is now known as DenBeiren
Patrickdklickalott, there is a lot of questions there02:51
Patrickdkare you using nfs3 or nfs402:51
Patrickdkwhat are these guests? you said something about windows?02:51
Patrickdknfs3 depends on the uid for permissions02:51
lickalotti want to say nfs4.  whatever the latest nfs-kernel-server is for 14.04.02:52
Patrickdknfs4 depends on what security model your running, but it generally also still needs uid and usernames to match between systems02:52
Patrickdkwhat does, latest nfs-kernel-server have to do with version?02:52
Patrickdkthe latest nfs-kernel-server supports nfs2 nfs3 and nfs402:52
lickalott1 "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
Patrickdkoviously you configured nfs, so what did you use?02:52
lickalottwait 1.  let me check.02:53
PatrickdkI doubt the wdtv can do nfs402:53
Patrickdkand dunno if the windows one will default to nfs3 or nfs402:53
Patrickdkbut sounds like, making it work the way you want, is going be near impossible with nfs02:54
lickalotthow can I tell which version?02:54
Patrickdknormally? on the mount option02:54
Patrickdktype nfs (rw,noatime,bg,noacl,nfsvers=302:54
Patrickdkas far as server, running nfs4 is a lot of work, and config02:55
lickalottit 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
Patrickdkatleast if you planned to do it correctly02:55
Patrickdkas I said, it's normally luck if it works02:55
PatrickdkI have no idea how windows does nfs02:56
Patrickdkbut nfs DEPENDS on uid's to match02:56
lickalottdo you mean version on the windows side or the ubuntu server side?02:56
Patrickdkso you need windows to match the uid when using nfs02:56
PatrickdkI mean both sides02:56
PatrickdkUID must match over ALL systems02:56
Patrickdkor you loose all security over nfs02:56
Patrickdkwhen using non-kerberos based nfs02:56
Patrickdkthat means, unless you use kerberos based nfs4, fully configured, you depend on uid matching over all clients and server, for security02:57
lickalotti'm going to say nfs3.   I don't think the built in windows NFS client module can handle nfs4.02:57
Patrickdkand 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
PatrickdkI know nothing about windows nfs02:58
lickalottand on the server....i used this https://help.ubuntu.com/community/SettingUpNFSHowTo02:58
Patrickdkbut somehow you need the uid's to match02:58
lickalottthat'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
lickalottbut still can't access unless the permissions are wide open.03:00
lickalottI'll look into the UID match thing and report back if I get anywhere (just incase someone else ever asks.)03:00
PatrickdkI don't know about the group thing03:01
Patrickdkif it's verified on the server or the client03:01
Patrickdkyour assuming server side though03:01
lickalotttrue03:01
cryptodanlickalott: is this Windows 7?03:06
lickalottyes03:06
cryptodanill install NFS Client on my VM and see if it supports NFS403:07
lickalottlooks like it does, just not natively - http://www.citi.umich.edu/projects/nfsv4/windows/readme.html03:08
cryptodanI connected to my NFS4 share just fine via the client in WIndows 703:12
cryptodanHere are some of the command line switches for it http://technet.microsoft.com/en-us/library/cc754350.aspx03:13
Patrickdkcryptodan, that document lists a lot of nfs3 stuff03:14
Patrickdkyou SURE it's using nfs4?03:14
Patrickdkoh there it is03:15
cryptodanI would imagine that my client would have gotten a protocol mismatch03:15
Patrickdk-o sec=....03:15
Patrickdklooks like windows 8 does03:15
lickalottmount -o mtype=soft 192.168.1.108:/media/cyclops Z:03:20
lickalottmount -o mtype=soft 192.168.1.108:/media/iceman Y:03:20
lickalottmount -o mtype=soft 192.168.1.108:/media/wolverine X:03:20
lickalottmount -o mtype=soft 192.168.1.108:/home/weed/ipcam1 W:03:20
lickalottmount -o mtype=soft 192.168.1.108:/home/weed/ipcam2 V:03:20
lickalottthat's what mine looks like now.03:21
cryptodanwrong slashes I think03:21
lickalottit works.  its just the permissions thing.03:22
cryptodanC:\Users\cryptodan>mount \\192.168.1.8\home\cryptodan\public_html U:03:22
cryptodanU: is now successfully connected to \\192.168.1.8\home\cryptodan\public_html03:22
Patrickdkcryptodan,  that is nfs? that looks like smb/cifs03:22
cryptodanits nfs03:23
cryptodandont have SMB on my server at all03:23
lickalotti can't get it to work with the slashes that way.03:24
lickalottC:\Users\weed>mount -o \\192.168.1.108\CYCLOPS U:03:25
lickalottNetwork Error - 5303:25
lickalottType 'NET HELPMSG 53' for more information.03:25
cryptodanyou need the full path03:25
cryptodanand I didnt use the -o03:25
cryptodanlickalott: and are you sure that the nfs admin and client are installed on the client machine?03:26
lickalottgot it to mount.03:27
lickalottpretty sure....  i went into programs and features and enabled everything NFS.  Even went as far as to install "services for NFS"03:28
cryptodanthats all I did and followed one of the examples in that post on that site from MS to mount it03:29
lickalottwhat 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 77703:30
lickalottserious03:30
cryptodandefault for the mount03:31
lickalottare you saying default for the mount as in "whatever the default is" or 777 is default for the mount?03:31
cryptodan75503:32
cryptodanso its mounting via nfs303:33
lickalottyep, 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:33
cryptodanas does my server but my firewall disallows nfs from the outside03:34
lickalottbut you're running nfsv4 on the server side?03:34
cryptodanyes03:34
lickalotti have to be missing something....03:35
lickalottI'm even sharing out NFS mounts from the windows box fine.  (Hanewin NFS server)03:35
cryptodanlet me create a new user in my VM and see if I can mount it03:36
cryptodannew user mounts fine and the user doesnt exist on the server can access files but cant create them03:39
lickalottwill you do me a favor?  can you pastebin your /etc/exports file?03:40
cryptodan/home/cryptodan/public_html 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)03:41
lickalott/media/CYCLOPS         *(rw,sync,no_subtree_check)03:42
lickalottwhat does the insecure switch do for you?03:42
cryptodanunauthed access I believe03:42
lickalottthanks cryptodan.  It seems to be working now with 75503:52
cryptodanyou are welcome03:52
=== 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
jdzielnyhello everyone.  I'm looking for some help converting a server with a single hdd over to bootable RAID 1.  It's currently hdd > LUKS > LVM08:01
lordievaderGood morning.08:51
FullEraserhi all09:16
lordievadero/09:18
=== Lcawte|Away is now known as Lcawte
=== bilde2910 is now known as bilde2910|away
=== bilde2910|away is now known as bilde2910
FrEaKmAn_hi.. today I got this email http://pastie.org/9812344 from my VPS14:25
FrEaKmAn_does this mean something bad?14:25
FrEaKmAn_I'm checking mail.err log and noticing a lot of invalid email address errors. is this spam?14:26
PatrickdkFrEaKmAn_, it would be helpful if you told us something15:17
Patrickdkwe can't tell you anything so far15:17
FrEaKmAn_Patrickdk, neither do I :)15:19
FrEaKmAn_I don't know in which direction to go..15:19
Patrickdkwhere are the logs? what is the name of your server?15:20
FrEaKmAn_in var/log.. name?15:40
=== 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
jdzielnyhello 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 failed19:22
jdzielnyanyone know what the problem is?19:22
cryptodanit should only be trying to install on one drive19:23
jdzielnyin order for it to be bootable from either disk in RAID 1 it has to be on both drives19:25
jdzielnyotherwise 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 fails19:25
cryptodanI have a RAD 1 for my system partition, and when I Installed it it selected only one drive19:25
cryptodanRAID 1*19:25
jdzielnyif you pull that drive out (to simulate a drive failure), you won't be able to boot19:26
jdzielnyif only one of the drives in the array has a bootloader, if it fails, the system can't boot19:26
cryptodanit should mirror it during install and as such the data should be mirrored19:27
jdzielnyhere's the steps I followed.19:28
jdzielny1.  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 FD19:29
jdzielny2. Create md0 from sda/b1 and md1 from sda/b219:29
cryptodanso this is software raid?19:30
jdzielnyyes.  configured using the Ubuntu Server installer19:30
cryptodanah mine is hardware raid via controller so your setup is different19:31
jdzielnyyeah :-\19:31
cryptodanand mdraid is gone and as such dmraid is inplay I believe in Ubuntu 14.04 LTS19:32
jdzielnythe issue seems to be with ubiquity, not with grub19:32
jdzielnythen again, I could be wrong19:33
jdzielnyanyway, here's the rest, maybe someone else can see and give some insight19:34
jdzielny3. 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
jdzielny4. md1 is configured as physical volume for LUKS19:37
cryptodantry not using encryption and see if you succeed19:37
jdzielnybrb19:41
jdzielnyhad to restart the laptop i'm on20:01
=== bilde2910 is now known as bilde2910|away
jdzielnycryptodan, 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 respectively21:20
cryptodankk21:21
=== bilde2910|away is now known as bilde2910
=== bilde2910 is now known as bilde2910|away
jdzielnycryptodan, okay it installed without the same error as before (I think)21:38
jdzielnyAside from pulling one or the other hdd out, how can I chec that it actually booted from /md0 and not from /sda or /sdb21:39
jdzielny?21:39
cryptodanthats the only way21:43
jdzielnyusing grep /dev/md /etc/fstab I verified at least that the filesystems actually are on the RAID devices21:45
jdzielnyconfirmed that / is on md1, /boot on md0, etc. all where they should be21:46
cryptodanso it sounds like the issue was in your luks setup21:46
jdzielnyso far anyway21:46
jdzielnyLoL cryptodan for future reference, make sure /proc/sys/dev/raid/speed_limit_min and _max are set high22:07
jdzielnywas trying to figure out why it was so slow (1000KB/sec resync, really?!?!), speed limit was set to 1k22:07
jdzielnylol22:07
jdzielnyI'm gonna try redoing the install with crypto on and see if it works22:09
jdzielnythe 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 right22:11
cryptodanlol22:44
lnxmenHello22:52
lnxmenIs there any magic that I changed one file and my site is totally broken?22:53
lnxmenI returned everything to previous situation.22:53
lnxmenAnd site stil does not work.22:53
lnxmenNo error.22:54
lnxmenHow come?22:54
bekksDepends on the file you changed :)22:55
lnxmenbekks: It was a template.22:56
bekksAnd?22:56
lnxmenAnd nothing more.22:56
bekksWhats the filename?22:56
lnxmentemplate.html.php22:56
lnxmenAs I said I returned original one.22:57
lnxmenBut it's still blank page.22:57
bekksCould 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
bekks*etc22:57
lnxmenbekks: surely.22:57
lnxmenIt's Ubuntu 14.04 LTS22:58
lnxmenapache222:58
bekksYou dont have to press enter after every three words ;)22:58
lnxmenFile was sent by my client - he said it's original one to the framework (PHPFox)22:58
lnxmenOkay.22:59
lnxmenSo, I changed them.22:59
lnxmenAnd next I got blank page. (wtf?!)22:59
lnxmenOkay, I thought file is broken or something, so I changed files one more time (to the file that was eariler).23:00
lnxmenAnd despite I reloaded everything (apache, mysql) I get blank page.23:00
lnxmenNo error.23:00
lnxmenAnd yes, I have set php to display errors.23:01
lnxmenIn index.php as well as in php.ini.23:01
lnxmenbekks: I don't really know what is the problem.23:01
lnxmenNo error given, no warning. I checked every log that is related to this site.23:01
lnxmenLiterally nothing.23:01
lnxmenDo you need something more?23:01
lnxmenAny idea?23:02
lnxmenI configured everything on this server, so I believe it's well done.23:02
lnxmenPermissions are okay.23:02
lnxmenI reloaded cache. It works again.23:08

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!