/srv/irclogs.ubuntu.com/2015/09/13/#ubuntu-server.txt

=== Metacity|znc is now known as Metacity
=== athairus is now known as athairuzzz
=== Lcawte|Away is now known as Lcawte
lordievaderGood morning07:49
=== 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
jak2000hi all15:37
quanticsup15:39
jak2000i 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:39
quanticjak2000: that's something easily found via google.15:40
jak2000i try15:40
quanticTry harder.15:40
jak2000and found: type visudo then look the line: root    ALL=(ALL:ALL) ALL  and copy and modify...15:41
jak2000but i think i gave all privileges ot user?15:41
quanticjak2000: don't just copy things without understanding what they do.15:41
quanticjak2000: do a little more research, you'll thank yourself in the long run15:42
jak2000quentic, ok, google: "ubuntu adduser with limitations" ?15:42
quanticjak2000: what, exactly, do you want to do? in clear terms, please.15:43
jak2000i 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 ONLY15:44
quanticjak2000: try reading the "sudoers" man page.15:45
jak2000ok, thanks15:46
=== Lcawte is now known as Lcawte|Away
Kalimeromy 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:57
ikoniayou should see cron logs in the syslog, or you should write error trapping in to the script21:58
Kalimeroi 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 signal22:06
KalimeroSep 13 06:03:24 mom kernel: init: tty5 main process (983) killed by TERM signal22:06
KalimeroSep 13 06:03:24 mom kernel: init: tty2 main process (990) killed by TERM signal22:06
KalimeroSep 13 06:03:24 mom kernel: init: tty3 main process (991) killed by TERM signal22:06
KalimeroSep 13 06:03:24 mom kernel: init: tty6 main process (994) killed by TERM signal22:06
KalimeroSep 13 06:03:24 mom kernel: init: cron main process (1076) killed by TERM signal22:06
KalimeroSep 13 06:03:24 mom kernel: init: irqbalance main process (1095) killed by TERM signal22:06
KalimeroSep 13 06:03:24 mom kernel: init: tty1 main process (1936) killed by TERM signal22:06
KalimeroSep 13 06:03:29 mom kernel: device p1p1 left promiscuous mode22:06
KalimeroSep 13 06:02:12 mom logger: cluster stop22:06
Kalimerosry for the flooding22:09
Kalimeroit seems the server is unable to shut it down completely but i dont know how to solve this problem22:16
sarnoldKalimero: does shutdown -r  work alright?22:18
Kalimerosarnold: shutdown -r works fine like it should22:20
sarnoldKalimero: crazy. I wonder hyw it fails in your cron :(22:21
Kalimerothe 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 back22:25
sarnoldI don't think plymouth is there foranything important; you might try removing it entirely.22:27
Kalimerosarnold: its removed hope it solves the problem and hopefully didnt screwed a needed function ^^22:32
sarnold:)22:33
Kalimerosarnold:  if not i am here tomorrow and ask you again ;)22:33
=== Sprockt is now known as Sprocks
sarnoldhehe :D22:35
=== markthomas|away is now known as markthomas
=== mikal_ is now known as mikal
TangurinHi! I can't upload files via PHP. The upload folder have 777 rights, and it works on my localhost + it worked before?23:33
sarnoldTangurin: do you have any errors in your logs?23:35
Tangurinsarnold: no there was no error23:36
TangurinI am 99% sure this is no code error. Should I check what permission the file has which is executing the upload?23:37
sarnoldis it being executed from apache or nginx or php-fpm or something similar?23:37
sarnoldor are you running it as a stand-alone executable?23:37
TangurinI am using Laravel (PHP framework), so it is Apache PHP via the web browser23:39
Tangurinsarnold: the controller file has this permission: -rwxrwxr-x23:39
sarnoldTangurin: does it perhaps give you better error messages if you run the browser onthe same computer as the web server?23:40
sarnoldor perhaps you can run it in a development mode or something similar23:40
Tangurinsarnold: 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:41
sarnold"worked once" isn't what I'd call "known to work", eheh23:42
sarnoldyou'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 pivots23:44
Tangurinsarnold: Now I see that the image is uploaded but it is when the PHP is trying to create a thumbnail of the image23:44
Tangurinsarnold: Okey,but now I got: WriteBlob Failed23:44
Tangurinsarnold: 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 owner23:46
sarnoldTangurin: aha! :)23:47
Tangurinsarnold: 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 haha23:48
sarnoldTangurin: 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:50
Tangurinsarnold: 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 file23:51
sarnoldTangurin: 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:53
TangurinBut if I am logged in via SFTP and create a folder, then I create a new "object" which has no configuration23:54
sarnoldallowing 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
sarnoldit does have configuration, it is created with whatever owner and group you used to log in as ..23:54
sarnoldif it needs to be owned by someone else, you can ssh in and use chown to change the owner as approrpriate..23:55
Tangurinsarnold: 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:57
sarnoldTangurin: 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 themselves23:59

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