[07:49] <lordievader> Good morning
[15:37] <jak2000> hi all
[15:39] <quantic> sup
[15:39] <jak2000> i have a clean installation of ubuntu server 14.04, how to do, create 1 user:JAK and do FULL root Privileges? (visudo and copy root ? 2) how to add user and add privileges but, i want, this user cant see the JAK home directory and root directory?
[15:40] <quantic> jak2000: that's something easily found via google.
[15:40] <jak2000> i try
[15:40] <quantic> Try harder.
[15:41] <jak2000> and found: type visudo then look the line: root    ALL=(ALL:ALL) ALL  and copy and modify...
[15:41] <jak2000> but i think i gave all privileges ot user?
[15:41] <quantic> jak2000: don't just copy things without understanding what they do.
[15:42] <quantic> jak2000: do a little more research, you'll thank yourself in the long run
[15:42] <jak2000> quentic, ok, google: "ubuntu adduser with limitations" ?
[15:43] <quantic> jak2000: what, exactly, do you want to do? in clear terms, please.
[15:44] <jak2000> i want add an admin user, but with not ALL root privileges, can update, can create directories, change permissions only the home directory of the user, change permisions to /var/www directory and ONLY
[15:45] <quantic> jak2000: try reading the "sudoers" man page.
[15:46] <jak2000> ok, thanks
[21:57] <Kalimero> my server still fails to restart by cronjob. can someone tell me where in the logs i have to look and maybe help me to fix it?
[21:58] <ikonia> you should see cron logs in the syslog, or you should write error trapping in to the script
[22:06] <Kalimero> i looked in it. thats the last thing before i hard restart it.Sep 13 06:03:24 mom kernel: init: tty4 main process (980) killed by TERM signal
[22:06] <Kalimero> Sep 13 06:03:24 mom kernel: init: tty5 main process (983) killed by TERM signal
[22:06] <Kalimero> Sep 13 06:03:24 mom kernel: init: tty2 main process (990) killed by TERM signal
[22:06] <Kalimero> Sep 13 06:03:24 mom kernel: init: tty3 main process (991) killed by TERM signal
[22:06] <Kalimero> Sep 13 06:03:24 mom kernel: init: tty6 main process (994) killed by TERM signal
[22:06] <Kalimero> Sep 13 06:03:24 mom kernel: init: cron main process (1076) killed by TERM signal
[22:06] <Kalimero> Sep 13 06:03:24 mom kernel: init: irqbalance main process (1095) killed by TERM signal
[22:06] <Kalimero> Sep 13 06:03:24 mom kernel: init: tty1 main process (1936) killed by TERM signal
[22:06] <Kalimero> Sep 13 06:03:29 mom kernel: device p1p1 left promiscuous mode
[22:06] <Kalimero> Sep 13 06:02:12 mom logger: cluster stop
[22:09] <Kalimero> sry for the flooding
[22:16] <Kalimero> it seems the server is unable to shut it down completely but i dont know how to solve this problem
[22:18] <sarnold> Kalimero: does shutdown -r  work alright?
[22:20] <Kalimero> sarnold: shutdown -r works fine like it should
[22:21] <sarnold> Kalimero: crazy. I wonder hyw it fails in your cron :(
[22:25] <Kalimero> the first thing was the playmouth-shutdown which failed to stop correctly so i added a sleep 2 after its exec command. that solved the problem for a while but now its back
[22:27] <sarnold> I don't think plymouth is there foranything important; you might try removing it entirely.
[22:32] <Kalimero> sarnold: its removed hope it solves the problem and hopefully didnt screwed a needed function ^^
[22:33] <sarnold> :)
[22:33] <Kalimero> sarnold:  if not i am here tomorrow and ask you again ;)
[22:35] <sarnold> hehe :D
[23:33] <Tangurin> Hi! I can't upload files via PHP. The upload folder have 777 rights, and it works on my localhost + it worked before?
[23:35] <sarnold> Tangurin: do you have any errors in your logs?
[23:36] <Tangurin> sarnold: no there was no error
[23:37] <Tangurin> I am 99% sure this is no code error. Should I check what permission the file has which is executing the upload?
[23:37] <sarnold> is it being executed from apache or nginx or php-fpm or something similar?
[23:37] <sarnold> or are you running it as a stand-alone executable?
[23:39] <Tangurin> I am using Laravel (PHP framework), so it is Apache PHP via the web browser
[23:39] <Tangurin> sarnold: the controller file has this permission: -rwxrwxr-x
[23:40] <sarnold> Tangurin: does it perhaps give you better error messages if you run the browser onthe same computer as the web server?
[23:40] <sarnold> or perhaps you can run it in a development mode or something similar
[23:41] <Tangurin> sarnold: The application is running in dev mode, and I just tried on the localhost without any problem which declares that the code works, right?
[23:42] <sarnold> "worked once" isn't what I'd call "known to work", eheh
[23:44] <sarnold> you'll have to put in some time to change variables until you find out what fixes it -- try it from mutliple hosts, try uploading multiple types or sizes of files, collect the error messages from browsers and servers and the application, figure out what works and what doesn't, and try to determine the variable upon which the whole thing pivots
[23:44] <Tangurin> sarnold: Now I see that the image is uploaded but it is when the PHP is trying to create a thumbnail of the image
[23:44] <Tangurin> sarnold: Okey,but now I got: WriteBlob Failed
[23:46] <Tangurin> sarnold: Thank you for trying to help me, I appreciate your time! I found out that the upload worked but it was when PHP tried to create a thumbnail to another folder which did not have www-data as owner
[23:47] <sarnold> Tangurin: aha! :)
[23:48] <Tangurin> sarnold: Do you know how I can force the files to be www-data even if I upload via SFTP? Because when I use SFTP all my files gets wrong owner and all gets... broken haha
[23:50] <sarnold> Tangurin: nothing easy; unix provides for ways to ensure e.g. a specific group is set on files created in a directory, but nothing for user.
[23:51] <Tangurin> sarnold: Aha I understand. But how do I solve the problem with the files getting wrong permissions. Like this which happened now, the folder had wrong owner that's why I couldn't "upload" the file
[23:53] <sarnold> Tangurin: mostly you just have to know which user ids are used by which programs, know which directories they need to use to do their job, and set the ownerships appropriately when you install and configure them.
[23:54] <Tangurin> But if I am logged in via SFTP and create a folder, then I create a new "object" which has no configuration
[23:54] <sarnold> allowing uploads via a web server is unfortunate, I really like to configure web servers so they only have write access to e.g. their logs and a database socket, if they need to use a database to get their work done. but that's not always possible.
[23:54] <sarnold> it does have configuration, it is created with whatever owner and group you used to log in as ..
[23:55] <sarnold> if it needs to be owned by someone else, you can ssh in and use chown to change the owner as approrpriate..
[23:57] <Tangurin> sarnold: I understand why it is like this and that is a problem yes. But how do webhosting companies solve it? When user logs in and upload files, it still works.
[23:59] <sarnold> Tangurin: there's a lot of range in webhosting companies... some more or less create entire new virtual machines for each user, and those users are given root to those machines, and are expected to manage it all themselves