/srv/irclogs.ubuntu.com/2015/08/13/#ubuntu-us-pa.txt

JonathanDMorning!07:27
rmg51Morning09:20
teddy-dbearMorning peoples, critters and everything else12:29
WorkingTurkeymornin13:33
=== r00t^2 is now known as soandso
=== soandso is now known as r00t^2
ChinnoDogAnyone know a way to intentionally make NFS report less free space than it would otherwise?19:01
ChinnoDoghmm. I can use quotas but that looks complicated for such a simple problem.19:08
jthanChinnoDog: What filesystem is the actual data on?19:10
ChinnoDogbtrfs but that is only because it is my system. I can't assume it is any particular file system because it is part of a vagrant project.19:11
jthanWell... nfs does not actually "report" the available space19:11
r00t^2i think the base problem is you have these edge cases that you expect to be covered- why on earth would you want an NFS share to seem smaller than it is?19:13
r00t^2if it's because you don't want people to use more than X amount, then yes- that's exactly what quotas are for19:14
ChinnoDogNo, it is a band-aid for a script that selects a directory to store its data.19:15
ChinnoDogIt selects the volume with the largest free space by default but that volume is the NFS mount and causes the software to break because it can't put its data there.19:15
r00t^2bandaids aren't good. add exclusion/priority support in the script19:16
ChinnoDogI can't. It isn't my script.19:16
ChinnoDogAlso, it is subject to updates so I can't modify it.19:16
jthanpin it at the current version? Or don't allow the script / program calling it to even know your nfs share exists19:17
ChinnoDogIt is definitely a script shortcoming but nothing I can do anything about.19:17
r00t^2then file a bug with the maintainer of the script19:17
ChinnoDogIs there an easy way to deny permission to it to only one user?19:17
r00t^2oh, sure19:17
ChinnoDogYes, that is a long term solution but not one that I can use right now.19:18
r00t^2https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-acls.html19:18
r00t^2or you can do it via standard octals and ownerships19:19
ChinnoDogI can see how I can use additive permissions for it but not deny permissions19:21
jthanmake sure user:user is not a match to that using script19:23
jthanand then set appropriate octals19:23
ChinnoDogI need other users to be able to access it though. I'm not sure which ones. I will check and see if I can use additive permissions for just those users.19:24
jthanthen make sure they are in :group19:24
jthanFolder "ubuntu" has ownership chinno:pa19:25
jthanjthan and Chinno are in group pa19:25
jthanbts is not19:25
ChinnoDogI think you are missing what I am trying to say but it doesn't matter. I should be able to identify which users need access.19:26
jthanYou lost me, Chinno.19:28
ChinnoDogI wanted to deny permission to a single user which linux/unix doesn't support. It only supports an additive permissions model.19:32
r00t^2jthan: i was wrong, more than 5 seconds. btw.19:35
jthanChinnoDog: I think you can do it with acls19:36
ChinnoDogI have never seen a subtractive linux ACL.19:37
r00t^2setfacl -m user:USERNAME:---19:39
r00t^2setfacl -m user:USERNAME:--- <file/directory/whatever>19:39
r00t^2~*ta-da*~19:39
r00t^2https://wiki.archlinux.org/index.php/Access_Control_Lists19:40
r00t^2while you're at it, you should probably grab a copy of http://www.amazon.com/UNIX-Linux-System-Administration-Handbook/dp/0131480057/ref=sr_1_1?ie=UTF8&qid=1439494862&sr=8-1&keywords=unix+and+linux+system+administration+handbook19:41
ChinnoDogoh. The ACL is on top of the unix permissions. I didn't realize they weren't the same thing.19:47
ChinnoDogThat is more complexity than I need. I think I can solve it without it.19:47
jthanOh yeah - has to be installed but.. no real configuration and REALLY easy to use thereafter.19:47
r00t^2jthan: it's actually usually installed by default19:49
r00t^2but the fs needs to be *remounted* with support for them19:49
r00t^2or enabled via tune2fs19:49
r00t^2but yeah i mean.. you aren't really going to find something more simple than that.19:50
ChinnoDogNo umask on nfs :-(20:26

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