You are not logged in.

#76 2009-09-09 13:58:05

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: An experiment in Linux administration

Yay GNU screen! Terminal multiplexing rocks!
But I still have web server problems. It still says access denied even when my public html and files in it are set to permissions 777.


How's my programming? Call 1-800-DEV-NULL

Offline

#77 2009-09-09 14:17:48

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

That's weird, frankly I've no idea what's wrong.

Offline

#78 2009-09-09 14:32:47

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: An experiment in Linux administration

zowki wrote:

Yay GNU screen! Terminal multiplexing rocks!
But I still have web server problems. It still says access denied even when my public html and files in it are set to permissions 777.

Is your home dir at least +x for world? 701 would suffice.  Remember, the user running the server needs to be able to execute all directories down to the files you want to serve.

Edit: I did some looking, permissions on your home dir are in fact the problem.

Last edited by rson451 (2009-09-09 14:35:41)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#79 2009-09-09 14:42:52

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

Fixed permissions for both of you, public_html works now.

Last edited by ZankerH (2009-09-09 14:43:39)

Offline

#80 2009-09-09 14:50:54

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: An experiment in Linux administration

Thanks for fixing permissions for me! Now seriously check out my site, it has llama legs. wink
http://sshbox.ath.cx/~zowki
High resolution recommended.

Last edited by zowki (2009-09-09 14:53:04)


How's my programming? Call 1-800-DEV-NULL

Offline

#81 2009-09-09 14:58:41

kanim
Member
Registered: 2007-05-14
Posts: 104

Re: An experiment in Linux administration

i guess i have permission issues too....

eh would it be possible to install http://www.eggheads.org so i could use it for an irc-bot

Offline

#82 2009-09-09 15:01:14

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

Well that's weird...but should be fixed now, I gave everyone's home 701.

Offline

#83 2009-09-09 15:17:04

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: An experiment in Linux administration

kanim wrote:

i guess i have permission issues too....

eh would it be possible to install http://www.eggheads.org so i could use it for an irc-bot

Is your public_html folder recursively set to permissions 777? Is your home folder permissions 701?


How's my programming? Call 1-800-DEV-NULL

Offline

#84 2009-09-09 15:21:43

kanim
Member
Registered: 2007-05-14
Posts: 104

Re: An experiment in Linux administration

public_html was 775 that was the problem thx

Offline

#85 2009-09-09 16:06:06

t4k1t
Member
Registered: 2009-07-19
Posts: 123

Re: An experiment in Linux administration

Would you mind telling where your server is located?


Who we are is but a stepping stone to what we can become.

Offline

#86 2009-09-09 16:32:50

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: An experiment in Linux administration

t4k1t wrote:

Would you mind telling where your server is located?

Eastern Europe. Some post communist state starting with the letter s. Don't remember which one.


How's my programming? Call 1-800-DEV-NULL

Offline

#87 2009-09-09 17:09:40

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

zowki wrote:
t4k1t wrote:

Would you mind telling where your server is located?

Eastern Europe. Some post communist state starting with the letter s. Don't remember which one.

Slovenia, Central Europe.

Offline

#88 2009-09-09 17:17:17

clg
Member
Registered: 2009-06-14
Posts: 7

Re: An experiment in Linux administration

Just curious, can anyone give me an example of what it can be used for, and any tips about system admin, like practices or such.

Thanks ( sorry if I am derailing the thread, simple pm would dp )

P.S kinda of a nub myself

Last edited by clg (2009-09-09 17:17:49)

Offline

#89 2009-09-09 18:30:47

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

clg wrote:

Just curious, can anyone give me an example of what it can be used for, and any tips about system admin, like practices or such.

Thanks ( sorry if I am derailing the thread, simple pm would dp )

P.S kinda of a nub myself

-Remote storage
-Web proxy
-http server
-A place to try stuff out

For anything else, ask more specifically.

Offline

#90 2009-09-09 20:18:13

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

kanim wrote:

i guess i have permission issues too....

eh would it be possible to install http://www.eggheads.org so i could use it for an irc-bot

I installed whatever that is in your /home, I'll leave configuring it to you.

Offline

#91 2009-09-09 20:40:53

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: An experiment in Linux administration

ZankerH: Are there, or are there not, any more accounts? You haven't said anything to indicate an answer, nor have you responded to any of the askers...

[see rson451's comment]

Last edited by Peasantoid (2009-09-09 20:41:23)

Offline

#92 2009-09-09 21:04:46

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

There's plenty of disk space, since people aren't uploading much, but the net connection is more or less clogged. At this point, the server can't handle many more accounts, but I'll consider making one for people who have experience with servers/administration and are willing to help with advice. I'll delete some of the accounts who have never logged in by tomorrow, and we'll see then.

Offline

#93 2009-09-09 23:01:51

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

Looks like we have a problem - something's eating my ram!

I checked top, and it looked like there were ten httpd forks taking up about 150MB each - which amounted to three quarters of my 2GB. So I restarted httpd, then tried killing it (which worked)

The ram usage is the same, but the ps aux input doesn't add up. Ideas?

[root@ARTEMIS rc.d]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   3796   264 ?        Ss   Sep09   0:00 ini 
root         2  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   Sep09   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   Sep09   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Sep09   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   Sep09   0:00 [migration/1]
root         7  0.0  0.0      0     0 ?        S<   Sep09   0:00 [ksoftirqd/1]
root         8  0.0  0.0      0     0 ?        S<   Sep09   0:00 [watchdog/1]
root         9  0.0  0.0      0     0 ?        S<   Sep09   0:00 [events/0]
root        10  0.0  0.0      0     0 ?        S<   Sep09   0:00 [events/1]
root        11  0.0  0.0      0     0 ?        S<   Sep09   0:00 [khelper]
root        12  0.0  0.0      0     0 ?        S<   Sep09   0:00 [async/mgr]
root        13  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kblockd/0]
root        14  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kblockd/1]
root        15  0.0  0.0      0     0 ?        S<   Sep09   0:02 [kacpid]
root        16  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kacpi_notify]
root        17  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kseriod]
root        18  0.0  0.0      0     0 ?        S    Sep09   0:00 [khungtaskd]
root        19  0.0  0.0      0     0 ?        S    Sep09   0:00 [pdflush]
root        20  0.0  0.0      0     0 ?        S    Sep09   0:00 [pdflush]
root        21  0.0  0.0      0     0 ?        S<   Sep09   0:06 [kswapd0]
root        22  0.0  0.0      0     0 ?        S<   Sep09   0:00 [aio/0]
root        23  0.0  0.0      0     0 ?        S<   Sep09   0:00 [aio/1]
root        24  0.0  0.0      0     0 ?        S<   Sep09   0:00 [crypto/0]
root        25  0.0  0.0      0     0 ?        S<   Sep09   0:00 [crypto/1]
root       454  0.0  0.0      0     0 ?        S<   Sep09   0:00 [ata/0]
root       456  0.0  0.0      0     0 ?        S<   Sep09   0:00 [ata/1]
root       457  0.0  0.0      0     0 ?        S<   Sep09   0:00 [ata_aux]
root       463  0.0  0.0      0     0 ?        S<   Sep09   0:00 [scsi_eh_0]
root       464  0.0  0.0      0     0 ?        S<   Sep09   0:00 [scsi_eh_1]
root       467  0.0  0.0      0     0 ?        S<   Sep09   0:00 [scsi_eh_2]
root       468  0.0  0.0      0     0 ?        S<   Sep09   0:00 [scsi_eh_3]
root       543  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kjournald2]
root       568  0.0  0.0   6200   428 ?        S<s  Sep09   0:00 /sbin/udevd --daemon
root       793  0.0  0.0      0     0 ?        S<   Sep09   0:00 [ksuspend_usbd]
root       800  0.0  0.0      0     0 ?        S<   Sep09   0:00 [khubd]
root       821  0.0  0.0      0     0 ?        S<   Sep09   0:00 [khpsbpkt]
root       841  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kpsmoused]
root       842  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kmmcd]
root       857  0.0  0.0      0     0 ?        S<   Sep09   0:00 [knodemgrd_0]
root       905  0.0  0.0      0     0 ?        S<   Sep09   0:00 [iwlagn]
root       906  0.0  0.0      0     0 ?        S<   Sep09   0:00 [phy0]
root       925  0.0  0.0      0     0 ?        S<   Sep09   0:00 [hd-audio0]
root      1072  0.0  0.0      0     0 ?        S<   Sep09   0:00 [kjournald2]
root      1316  0.0  0.0  25604    76 ?        S    Sep09   0:00 supervising syslog-ng
root      1317  0.0  0.0  27964   800 ?        Ss   Sep09   0:00 /usr/sbin/syslog-ng
root      1355  0.0  0.0   8092   328 ?        Ss   Sep09   0:00 /sbin/dhcpcd -q eth0
root      1376  0.0  0.0   5876   460 ?        S    Sep09   0:00 /usr/sbin/crond
root      1390  0.0  0.0   5840   420 ?        Ss   Sep09   0:00 /usr/sbin/uptimed
root      1401  0.0  0.0  51912   424 ?        Ss   Sep09   0:00 /usr/sbin/sshd
root      1404  0.0  0.0  43416   244 tty1     Ss   Sep09   0:00 /bin/login --        
root      1405  0.0  0.0   3792   212 tty2     Ss+  Sep09   0:00 /sbin/agetty -8 38400 tty2 linux
root      1406  0.0  0.0   3792   212 tty3     Ss+  Sep09   0:00 /sbin/agetty -8 38400 tty3 linux
root      1407  0.0  0.0   3792   212 tty4     Ss+  Sep09   0:00 /sbin/agetty -8 38400 tty4 linux
root      1408  0.0  0.0   3792   212 tty5     Ss+  Sep09   0:00 /sbin/agetty -8 38400 tty5 linux
root      1409  0.0  0.0   3792   212 tty6     Ss+  Sep09   0:00 /sbin/agetty -8 38400 tty6 linux
zero0ne   1410  0.0  0.0  17520  1132 tty1     S+   Sep09   0:00 -bash
root     10356  0.0  0.0   6196   604 ?        S<   Sep09   0:00 /sbin/udevd --daemon
root     10379  0.0  0.0   6196   532 ?        S<   Sep09   0:00 /sbin/udevd --daemon
root     14526  0.0  0.0  10068  1148 pts/1    R+   00:56   0:00 ps aux
mudkipz  15758  0.0  0.0  21928   676 ?        Ss   Sep09   0:00 ./sbnc
mudkipz  15759  0.0  0.3  47436  7280 ?        Sl   Sep09   0:00 ./sbnc --rpc-child
root     22508  0.0  0.1  66920  3104 ?        Ss   Sep09   0:00 sshd: zero0ne [priv]
zero0ne  22510  0.0  0.0  66920  1596 ?        S    Sep09   0:01 sshd: zero0ne@pts/0
zero0ne  22511  0.0  0.1  17520  2124 pts/0    Ss   Sep09   0:00 -bash
zero0ne  22514  2.4  0.4  55148  8564 pts/0    S+   Sep09   2:18 /usr/bin/python /usr/bin/speedometer -rx eth0 -tx eth0
root     23185  0.0  0.1  66920  3100 ?        Ss   Sep09   0:00 sshd: zero0ne [priv]
zero0ne  23187  0.0  0.0  67052  1612 ?        S    Sep09   0:00 sshd: zero0ne@pts/1
zero0ne  23188  0.0  0.1  17520  2124 pts/1    Ss   Sep09   0:00 -bash
root     23191  0.0  0.0  22252   992 pts/1    S    Sep09   0:00 su
root     23192  0.0  0.1  17256  2080 pts/1    S    Sep09   0:00 bash
root     24214  0.0  0.1  67212  3344 ?        Ss   Sep09   0:00 sshd: root@notty 
root     24216  0.0  0.1  47520  2224 ?        Ss   Sep09   0:00 /usr/lib/ssh/sftp-server
[root@ARTEMIS rc.d]# free
             total       used       free     shared    buffers     cached
Mem:       2057564    1504264     553300          0      90172    1265144
-/+ buffers/cache:     148948    1908616
Swap:       248968       2728     246240

EDIT: Dropping memory caches solved the problem. I'm getting good at this!

Last edited by ZankerH (2009-09-09 23:26:24)

Offline

#94 2009-09-10 00:24:18

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: An experiment in Linux administration

That is the way Linux works. It allocates all memory but dont use it until needed.

-/+ buffers/cache:     148948    1908616
if cache becomes zero then you have a RAM problem.

By the way could you add a mail server?

Last edited by zowki (2009-09-10 00:27:30)


How's my programming? Call 1-800-DEV-NULL

Offline

#95 2009-09-10 00:51:39

my0pic
Member
From: Melbourne, Australia
Registered: 2008-05-23
Posts: 206

Re: An experiment in Linux administration

ZankerH wrote:

There's plenty of disk space, since people aren't uploading much, but the net connection is more or less clogged. At this point, the server can't handle many more accounts, but I'll consider making one for people who have experience with servers/administration and are willing to help with advice. I'll delete some of the accounts who have never logged in by tomorrow, and we'll see then.

Hey ZankerH, I was just in it for the kicks. Much rather more knowledgable Archers out there helping you out wink
Ahh, well. Would've been nice. A little itty bitty private stash located in Slovenia. Very exotic...:D

Last edited by my0pic (2009-09-10 00:52:16)

Offline

#96 2009-09-10 01:30:32

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

Oh wow, one of my users managed to crash everything somehow. Rebooting.

Edit: it was a forkbomb.
Everyone is now restricted to 200 processes.
Edit2: And, there goes another account, nice try dding zeroes over /var/tmp. chmod o-w * it is.

Last edited by ZankerH (2009-09-10 02:23:12)

Offline

#97 2009-09-10 03:06:17

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: An experiment in Linux administration

ZankerH wrote:

Oh wow, one of my users managed to crash everything somehow. Rebooting.

Edit: it was a forkbomb.
Everyone is now restricted to 200 processes.
Edit2: And, there goes another account, nice try dding zeroes over /var/tmp. chmod o-w * it is.

It appears there are several dicks in the world. hmm

Offline

#98 2009-09-10 03:16:55

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: An experiment in Linux administration

ZankerH wrote:

Edit2: And, there goes another account, nice try dding zeroes over /var/tmp. chmod o-w * it is.

tmp is *supposed* to be writeable by everyone... That's what it's there for, and this is why we should have a separate /tmp partition on servers wink

Offline

#99 2009-09-10 03:56:05

ZankerH
Member
Registered: 2009-02-06
Posts: 95

Re: An experiment in Linux administration

Wow, had to delete and restrict a ton of accounts. People are dicks.

ssh now operating on a whitelist, if I missed anyone let me know.

Looking on the bright side, I've now installed the full LAMP stack.

I'd love to put a mail server on it, but I don't even have the slightest idea on where to start, and can't find anything relevant on the wiki. Point me in the right direction?

Last edited by ZankerH (2009-09-10 04:42:42)

Offline

#100 2009-09-10 05:15:54

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: An experiment in Linux administration

ZankerH wrote:

Wow, had to delete and restrict a ton of accounts. People are dicks.

ssh now operating on a whitelist, if I missed anyone let me know.

Looking on the bright side, I've now installed the full LAMP stack.

I'd love to put a mail server on it, but I don't even have the slightest idea on where to start, and can't find anything relevant on the wiki. Point me in the right direction?

I found some info here:
http://lmgtfy.com/?q=archlinux+mail+server


How's my programming? Call 1-800-DEV-NULL

Offline

Board footer

Powered by FluxBB