| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Comments:
<0> eval: 10 / 8 * 3600 * 24 * 30 / 1024 <1> buu: Return: 3164.0625 <2> integral: well i am not sure about that and i can't offend them. i need to simply (and gracefully) "protect" them from doing it by "mistake" <2> integral: there must be a way, ff <2> s <3> toany: and yeah, of course if someone is trying to smash the system you remove their access bits right away <4> bluebeard: in that situation it would be VERY hard to tell the difference between crashed and not crashed :) <5> toany: remove their access to openoffice. <6> toany: eliminate users (method of your choosing) until the remaing ones do not want to crash it <7> and aside from that, if you're running a multiheaded X server, you should have a huge swap partition anyways. <2> hobbs: i can't really prove that, they say they did nothing <5> process accounting! <2> tilrman: it is not an option for me <3> toany: improve your evidence collection then :) <2> hobbs: until then..? <6> you only have to eliminate one if you use the proper means :-)
<2> integral: what do you mean by process accounting? <3> toany: no until then. Get started now ;) <5> it's a means of accounting for processes. <7> Khisanth, he want's to allow his users to run multiple open office instances on 512 ram. <5> Alternatively, I'd tell your users to find a better sysadmin. <7> lol <3> toany: and replace the openoffice binary with a shell script that prints "The system is currently too low on memory to run OpenOffice; please try again in a few minutes" <7> LOL <2> hobbs: *what do i do* until then? <3> toany: you don't do anything "until then" because you make then now :) <7> toany, nothing. <2> integral: i am the better sysadmin :D <7> that's unbeleivably sad. <7> and I can't even spell. <2> bluebeard: do i look that bad? <5> uhuh, no. You do not know what Berkeley process accounting is. A better sysadmin would actually know about UNIX. <7> yes <0> hobbs: Hrm. I can get an unmetered 1gbs port for $1000 a month <0> It's so worth it <3> integral: I know what it is! It's "that option that I never know whether to enable". But then again I don't admin anyone's machines but mine ;) <2> integral: i am quite new to gnu/nix, at least as an admin <5> hobbs: lastcomm is quite handy to figure out what your users did to break stuff :) <5> buu: !?! <3> buu: If you do want to get something a bit beefier than what you've got, you might consider splitting it with me <3> buu: but, uh, not that ;) <0> hobbs: Ok, we'll split the $800 one, <7> couldn't open file '/var/log/pacct': No such file or directory <2> hobbs: however, do you admit gnu/nix would be more simple to administer if it featured per user limitation? <5> /etc/init.d/acct on <3> toany: marginally. <5> toany: hard partitioning is not a Unix feature. Try something like VMS, z/VM, etc <0> Why on earth would you charge $129 for a amd1400/512 and $199 for an amd3000.. <0> On 100mbs <0> I bet that's really over sold. <7> hmm... <7> I think I've hit my limit of productivity today <7> cheers! <3> toany: it would also take accounting code that doesn't exist. Get writing :) <2> hobbs: they say bsd features per user limitation <7> GAH <7> do you know what BSD stands for? <5> actually I'd guess that something like solaris has better support <8> i wonder if rename can rename just a part of a file name, leaving the rest as it is <5> moz_: rename "foo123", "foo456"! <2> bluebeard: bsd stands for "bondage-slave-discipline" or something like that, right? <5> it's a misspelling of "LSD" <8> integral, well, no, because foo can be different in a group of files <3> haha <0> hahaha <5> moz_: well one would write _code_. that's what programmers do. <0> I think that might deserve a bash quote <8> i'd like something like this <2> bluebeard: oops, that had an extra "m" (bsdm) <3> Actually that's BDSM <2> bluebeard: then i guess it's some recursive acronym <8> perl -e 'rename ' "(.*?)foo", "$1bee" ' <0> No we were just joking <0> It doesn't exist <8> is that possible? <0> moz_: HEY MAYBE TRY IT <5> moz_: perldoc -f glob. and use a loop.
<1> glob. To access this perldoc please type, at a command line, 'perldoc -f glob'. You may also find it at http://perldoc.perl.org/functions/glob.html <8> buu, i tried but it doesn't work <3> moz_: yes. If you want to rename a file named "(.*?)foo" to "bee" <0> moz_: Excellent. Now you've learned something. <5> for (glob "*foo") { /(.*)foo/ and rename $_, "${1}bee" } <8> buu, pls ... <6> moz_: there is a perl script called 'rename' which is a convenient wrapper around the rename syscall and s/// <0> moz_: Whatis "pls" ? <3> tilrman: yes, I explained that earlier. He said "yeah, that's what I want" and then ignored it <0> tilrman: Not quite.. it's actually a wrapper around eval and rename <8> integral, why do i need a for cycle? <3> moz_: because you want to rename more than one file? <5> moz_: umm, because for is how we take a list of things, and do something for each one... <8> hobbs, let's suppose i want to rename just one file but i want to use this syntax: <6> hobbs: ah, didnt check the scroll back <5> moz_: My code works. Just use it. <8> integral, ok, but i'd like to learn too <5> Well try learning perl... <4> the figure out what his code is doing <4> s/the// <6> buu: true . . . but using much besides s/// in that eval usually isnt very interesting :-) <5> I'm amazed that someone who knows perl doesn't know what a for loop does. <3> moz_: you don't want to use anything like the syntax you have unless YOU WANT CODE THAT DOESN'T WORK. <2> hobbs: anyway, let me make sure i understand your solution well enough: if i allow them to have a maximum of three logins, in order for me to make them incapable of crashing my machine, and if i want them to use a maximum memory of 150 mb, then i should limit <processes and their children> to AT MOST <150 (maximum memory) / 3 (maximum number of sessions)>, which is 50 mb. am i right? <7> toany, berkleysoftwaredistrobution <3> toany: right. Which probably isn't enough, which is why the solution is to buy more RAM :) <7> my space key doesn't seem to wanna work <2> bluebeard: well, it should stand for BsdSoftwareDistribution. i like recursive acronyms <8> integral, is your command supposed to stay into a perl file? <8> integral, i asked for a linux command-line command which uses rename perl function <5> moz_: just wrap the perl -e stuff around it... <9> why the **** would someone log in thrice anyway? be a real admin and install screen <7> lol <7> jpeg, I like your crude artifacts <3> jpeg: I was thinking that myself :) <2> hobbs: and what is the name of that ulimit flag that refers to <max memory of any <process and all its children>>? <2> jpeg: what about su? <9> what about it? <3> toany: -v. But you actually want to deal with limits.conf, not ulimit directly <2> hobbs: i mean, how does the ulimit manual refer to <max memory of any <process and all its children>>? (because it has some very techie names) <2> hobbs: i mean, i want both the flag (which you already gave me) and the way they call it :) <2> hobbs: and, btw, thank you <2> :) <3> toany: "memory" :) <5> ugh, too tedchnical! <2> jpeg: does it imply login, or is it like screen? <4> "stuff" <3> toany: the "of a process and its children" is ***umed in the definition of resource limits <2> hobbs: oh, that was quite plain <2> hobbs: the word, i mean <2> ;) <9> toany: sense no make start <7> toany, su? why would an ordinary user SU? <2> hobbs: oh, so i need to setup the definitions of resource limits? <7> holy **** <2> bluebeard: su another user <3> toany: you make less and less sense as time goes on <7> can I just say, completely wrong channel <2> bluebeard: i mean su their own user from another user <3> toany: I mean THAT IS WHAT RESOURCE LIMITS ARE. THAT'S WHAT THEY DO. THAT IS HOW THEY ARE DEFINED. <7> toany, that's not a good thing. <7> why would you want to let them do that? <6> bluebeard: they will be using 'su' to remove the draconian ulimits their admin has placed on the system ;-) <7> it doesn't infer any menefits. <2> bluebeard: do you think i am too permissive? <3> bluebeard: because he's an amazingly goot sysadmin :) <3> good, too <2> bluebeard: i thought that was.. nice <0> infi: English football fans in Germany for the World Cup likely to sing all the old favourites: "Stand Up If You Won the War," and "Two World Wars and One World Cup, Doodah, Doodah." <2> bluebeard: i mean i like to allow them many right, except to.. crash my box <0> Hrm. I was aiming at integarl <2> *many a right <10> well, you missed. <7> toany, it's typically better to work from 0 permisssions upwards, than from fullaccess downwards.
Return to
#perl or Go to some related
logs:
denshuu The source seems encrypted, and can't be read. Are you trying to play an encrypt #php #gcc #math #math fc5 xorgconfigure gentoo is not unix Unknown symbol ieee80211_register_crypto_ops EPSON STYLUS SCANNER CX35OO
|
|