=== Metacity|znc is now known as Metacity === athairus is now known as athairuzzz === Lcawte|Away is now known as Lcawte [07:49] Good morning === lukasa is now known as lukasa_away === lukasa_away is now known as lukasa === lukasa is now known as lukasa_away === lukasa_away is now known as lukasa === lukasa is now known as lukasa_away === lukasa_away is now known as lukasa [15:37] hi all [15:39] sup [15:39] 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] jak2000: that's something easily found via google. [15:40] i try [15:40] Try harder. [15:41] and found: type visudo then look the line: root ALL=(ALL:ALL) ALL and copy and modify... [15:41] but i think i gave all privileges ot user? [15:41] jak2000: don't just copy things without understanding what they do. [15:42] jak2000: do a little more research, you'll thank yourself in the long run [15:42] quentic, ok, google: "ubuntu adduser with limitations" ? [15:43] jak2000: what, exactly, do you want to do? in clear terms, please. [15:44] 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] jak2000: try reading the "sudoers" man page. [15:46] ok, thanks === Lcawte is now known as Lcawte|Away [21:57] 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] you should see cron logs in the syslog, or you should write error trapping in to the script [22:06] 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] Sep 13 06:03:24 mom kernel: init: tty5 main process (983) killed by TERM signal [22:06] Sep 13 06:03:24 mom kernel: init: tty2 main process (990) killed by TERM signal [22:06] Sep 13 06:03:24 mom kernel: init: tty3 main process (991) killed by TERM signal [22:06] Sep 13 06:03:24 mom kernel: init: tty6 main process (994) killed by TERM signal [22:06] Sep 13 06:03:24 mom kernel: init: cron main process (1076) killed by TERM signal [22:06] Sep 13 06:03:24 mom kernel: init: irqbalance main process (1095) killed by TERM signal [22:06] Sep 13 06:03:24 mom kernel: init: tty1 main process (1936) killed by TERM signal [22:06] Sep 13 06:03:29 mom kernel: device p1p1 left promiscuous mode [22:06] Sep 13 06:02:12 mom logger: cluster stop [22:09] sry for the flooding [22:16] it seems the server is unable to shut it down completely but i dont know how to solve this problem [22:18] Kalimero: does shutdown -r work alright? [22:20] sarnold: shutdown -r works fine like it should [22:21] Kalimero: crazy. I wonder hyw it fails in your cron :( [22:25] 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] I don't think plymouth is there foranything important; you might try removing it entirely. [22:32] sarnold: its removed hope it solves the problem and hopefully didnt screwed a needed function ^^ [22:33] :) [22:33] sarnold: if not i am here tomorrow and ask you again ;) === Sprockt is now known as Sprocks [22:35] hehe :D === markthomas|away is now known as markthomas === mikal_ is now known as mikal [23:33] 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] Tangurin: do you have any errors in your logs? [23:36] sarnold: no there was no error [23:37] I am 99% sure this is no code error. Should I check what permission the file has which is executing the upload? [23:37] is it being executed from apache or nginx or php-fpm or something similar? [23:37] or are you running it as a stand-alone executable? [23:39] I am using Laravel (PHP framework), so it is Apache PHP via the web browser [23:39] sarnold: the controller file has this permission: -rwxrwxr-x [23:40] Tangurin: does it perhaps give you better error messages if you run the browser onthe same computer as the web server? [23:40] or perhaps you can run it in a development mode or something similar [23:41] 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] "worked once" isn't what I'd call "known to work", eheh [23:44] 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] 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] sarnold: Okey,but now I got: WriteBlob Failed [23:46] 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] Tangurin: aha! :) [23:48] 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] 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] 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] 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] But if I am logged in via SFTP and create a folder, then I create a new "object" which has no configuration [23:54] 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] it does have configuration, it is created with whatever owner and group you used to log in as .. [23:55] if it needs to be owned by someone else, you can ssh in and use chown to change the owner as approrpriate.. [23:57] 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] 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