<kaiyilen_> how do i vew the permissions of a file/folder?
<SubWolf> ls -alFh
<SubWolf> Is what I normally do, -a is sufficient for long format.
<kaiyilen_> aw
<SubWolf> Sorry, -l for long. :x
<SubWolf> -a for all files.
<kaiyilen_> i want to change a directory so every one can read its contents
<kaiyilen_> that would be...
<SubWolf> chmod 755 (dirname)
<kaiyilen_> chmod a r
<kaiyilen_> ?
<kaiyilen_> oh
<kaiyilen_> :(
<kaiyilen_> rm -r (dirname) asks me if i want to remove each and every last direcotry/file one after another
<kaiyilen_> rmdir wont remove a directory that has things in it
<kaiyilen_> is there a way to remove a directory without it constantly asking if i want to rm each individual file?
<kaiyilen_> -fr
<SubWolf> Yes, sorry.
<SubWolf> rm -fr
<SubWolf> But thats a possible kiss of death, use with great great care!
<SubWolf> Like the day a few years back when I did "rm -fr bin", not realising I was in /usr/
<SubWolf> On one of our production web servers. Luckily everything kept running since it was in RAM, a few hours later the boss woke up and ftp'd the missing files over from an identical box.
<SubWolf> This is why I no longer do any server admin stuff past 1am. :x
<kaiyilen_> lol
<kaiyilen_> i've got a few hours before 1am
<kaiyilen_> and i've forced my self to get into the practice of typing the long name for the file
<kaiyilen_> pwd
<kaiyilen_> rm -fr ../../var/www/cacti
<kaiyilen_> that thingy there
<kaiyilen_> "groups" lets you view the groups
<kaiyilen_> and group-add doesnt work
<kaiyilen_> how do i create a group...
<kaiyilen_> groupadd
<SubWolf> Aye.
<SubWolf> Heh, groups, new one on me. Usually just cat /etc/group :x
<kaiyilen_> its in my book
<kaiyilen_> installing cacti
<kaiyilen_> :)
<SubWolf> My dad taught me basic sh when I was 8 or 9, few more bits and pieces in the years after that, then lots more in the last 3 or 4 years.
<SubWolf> Nice.
<kaiyilen_> sh?
<SubWolf> Shell cmds.
<kaiyilen_> aw
<kaiyilen_> i never had a teacher really
<kaiyilen_> aside from ameba...but he moved to a diff. time zone
<SubWolf> Ah.
<kaiyilen_> how do you add a user to a file?
<kaiyilen_> or can you only change owners...?
<SubWolf> You can change owners and groups.
<SubWolf> chown user:group file
<kaiyilen_> cant add
<SubWolf> No, you'll want to utilize groups.
<kaiyilen_> hm
<SubWolf> I'm working on a project called 'push' with a few coworkers, made a push group & put my pals in it, but I retain file ownership.
<SubWolf> Perms 775 so they can read/write/execute.
<kaiyilen_> aw
<kaiyilen_> can they delete thosefiles?
<SubWolf> Yes.
<kaiyilen_> in mysql
<kaiyilen_> how do you view the users?
<SubWolf> SELECT Host, User FROM mysql.user;
<kaiyilen_> spiffy
<kaiyilen_> nothing as simple as "groups" though..?
<SubWolf> For MySQL?
<kaiyilen_> yeah
<SubWolf> Not really.
<kaiyilen_> okay
<SubWolf> [22:14] <MrPilot|AFK> Talk about one of those "Wanna get away?" moments... http://www.nbc10.com/news/10761790/detail.html
<kaiyilen_> he's gonna get beaten
<SubWolf> Big time.
<kaiyilen_> deserves it
<kaiyilen_> heh
<kaiyilen_> okay
<kaiyilen_> i found out how to view the list of users
<kaiyilen_> and i found out how to show the list of databases
<kaiyilen_> how do i display the list of databases and the users that can access them?
<SubWolf> Heh.
<SubWolf> SELECT Host, Db, User FROM mysql.db;
<SubWolf> ?
<SubWolf> Theres further perms in the same table, like Select_priv;
<kaiyilen_> heh
<kaiyilen_> fantastic
<kaiyilen_> still doesnt work
<kaiyilen_> :)
<SubWolf> :P
<SubWolf> What doesn't work.
<SubWolf> Changed mysql perms?
<SubWolf> Might need to issue a FLUSH PRIVILEGES;
<kaiyilen_> "please ensure that the db user has the ability to select, insert, delete, update, create, alter, drop, and index, on the cacti db.....
<kaiyilen_> mysql> grant all on db.* to root; should fix that though right?
<SubWolf> Hmmmm.
<SubWolf> Needs a host, and pass really.
<SubWolf> Ah, wrong way round.
<SubWolf> Sorry, had a glass of wine or two. :x
<kaiyilen_> i've use localhost
<kaiyilen_> uh oh :P
<SubWolf> GRANT ALL ON (dbname).* TO db@localhost IDENTIFIED BY 'password';
<SubWolf> Ah.
<kaiyilen_> i've done that bit
<kaiyilen_> it also asks me to try entering in "mysql -u cactisuer -p cacti < cacti.sql" done that and it gives me the same problem
<SubWolf> mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cacti';
<SubWolf> Query OK, 0 rows affected (0.04 sec)
<SubWolf> mysql> FLUSH PRIVILEGES;
<SubWolf> Query OK, 0 rows affected (0.00 sec)
<SubWolf> subwolf@subwolf-dapper:~$ mysql -u cactiuser -p
<SubWolf> Enter password:
<SubWolf> Welcome to the MySQL monitor. Commands end with ; or \g.
<SubWolf> Your MySQL connection id is 31 to server version: 4.1.15-Debian_1ubuntu5-log
<SubWolf> Need to change my hostname, this is edgy. :x
<kaiyilen_> i need to get a usb to seriel adabtor
<kaiyilen_> adabtor
<kaiyilen_> lol
<SubWolf> Heh. I have one, actually.
<kaiyilen_> i need my own
<SubWolf> Right, was thinking send it to you, not like I need it.
<SubWolf> Got it for free from my last job.
<kaiyilen_> keeeeeep it
<kaiyilen_> never know
<SubWolf> Ok. :)
<kaiyilen_> maybe you'll get stuck with it
<kaiyilen_> i'll pick one up next time i go pillage compusa
<SubWolf> Hee
<SubWolf> PayPal's written in C++
<SubWolf> Nice error on the developer site...
<SubWolf> Assertion Failure: "pin != NULL" File: /x/sbuilds/x/builds/live-430_int_257979_rebuild59/vobs/all/devscr/main.cpp Func: main Line: 52 Backtrace: a6b3ae9 a6b3a79 807c14e 8064ae6 40d819cb 8064921
<kaiyilen_> donno what any of that means :)
<SubWolf> Heh, the main thing is "main.cpp"
<kaiyilen_> yeah
<SubWolf> Helluva file structure though.
<SubWolf> Guess they keep all the previous builds on hand.
<kaiyilen_> thats a good thing from what i know
<SubWolf> Using SVN currently, keeps revisions internal.
<kaiyilen_> how do you know if they're using SVN?
<SubWolf> Hard to tell, they might be keeping different branches exported locally.
<kaiyilen_> you think its good or bad that they're writing it in cpp?
<SubWolf> Hmmmmmmm, not bad.
<SubWolf> More potential for buffer overflow exploits though.
<kaiyilen_> what would have been a good language to write it in?
<SubWolf> Oh, too many choices. :x
<kaiyilen_> hmm..
<kaiyilen_> i suddenly relized how select host, db, user from mysql.db; works :P
<SubWolf> Hee
<SubWolf> Listening to the eels.
<kaiyilen_> feel silly for not relizing it sooner
<kaiyilen_> eels
<SubWolf> http://blogshares.com/rob/mp3/01%20-%20Eels%20-%20Novocaine%20for%20the%20Soul.mp3
<kaiyilen_> pleasent song
<SubWolf> I find them very depressing usually, just not now 'cause of alcohol.
<kaiyilen_> alcohol is a depressent...if you're drinking it and you're not depressed you could be doing some thing wrong
<kaiyilen_> lol
<SubWolf> LOL
<SubWolf> I don't react in the usual ways to drugs. :)
<SubWolf> Well, apart from some of the harder ones anyway.
<kaiyilen_> diff. for every one
<SubWolf> Weed puts me to sleep.
<kaiyilen_> i wander how i react to drugs
<SubWolf> You don't wanna find out. ;-)
<kaiyilen_> song reminds me why i dont listen to music with lyrics in it
<SubWolf> Believe me, wish I'd never smoked cigarettes at 17, or Crystal at 25.
<SubWolf> Awww.
<SubWolf> I'd say 40% of tunes I listen to have no vocals.
<kaiyilen_> some of the songs i have have vocals but its normally one line like "this will make you freak" or some thing
<SubWolf> Hee.
<SubWolf> http://www.youtube.com/watch?v=kp5OxEzxuSg
<kaiyilen_> yup
<kaiyilen_> that just about sums it up
<kaiyilen_> that guys damn good i think
<vanny> wenas
<kaiyilen_> a winner is you?
<vanny> a big one =P
<SubWolf> Yes, he is.
<SubWolf> I love drum'n'bass.
<SubWolf> More into progressive house than anything, but like a lotta genres.
<kaiyilen_> i cant really figure out what i'm mostly into
<SubWolf> http://www.neave.tv/#spoon
<SubWolf> LMAO
<SubWolf> I like all genres mostly, http://www.neave.tv/#prefuse_biters for example
<kaiyilen_> old by classic
<SubWolf> "If you see a sucker cut 'em, don't like perpetrators."
<SubWolf> http://www.neave.tv/#ed_harcourt_dog is great
<kaiyilen_> i dont understand why i'm still here
<kaiyilen_> i'm off
<kaiyilen_> i'm going home
<SubWolf> Hee
<SubWolf> Night.
*** SubWolf is now known as Scaramanga
*** Scaramanga is now known as SubWolf

Generated by irclog2html.pl 2.1 by Jeff Waugh - find it at freshmeat.net!