Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread Udaya Kumar
On Tue, Feb 23, 2016 at 12:57 PM, sahil साहिल 
wrote:

> On Tue, Feb 23, 2016 at 12:50 PM, Mohan R  wrote:
>
> > On 23-Feb-2016 11:13 AM, "sahil साहिल" 
> > wrote:
> > > I am very sad to state that what I heard about this group tfew years
> back
> > > from someone that this group is not BEST.
> > > I think it's time to say Good Bye to ILUG-C. Leaving this group to
> > > so-called highly intellectual folks who raise eye-brows on mere
> > > "salutation" or you asked homework questions.
> >
> > That's funny. A mere request to change the salutation can make you rant
> > about this group and run away from this group is it?
> >
>
> It seems to be more funny to me at first when you raised a question on
> salutation. And, you should ask yourself who ignited the spark at first?
> Well, you showed us how you think and what matters to you.
>
>
Sahil/Mohan

You guys are better than this.

Sahil, you are an active participant which is appreciative.
Mohan, you solutions are to the point - than most other responses.

Hope both of you guys understand that it got deviated a bit and appreciate
that we are humans & such things do tend to happen. Pls let us back to
actual stuff.
-- 
Cheers
Uday.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [OT] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Tue, Feb 23, 2016 at 12:57 PM, Udaya Kumar  wrote:

> On Tue, Feb 23, 2016 at 10:57 AM, Mohan R  wrote:
>
> > On 23-Feb-2016 10:33, "Manokaran K"  wrote:
> > >
> > > Being a
> > > group dedicated to freedom (of speech among others), I don't think its
> > > right to object to anything thats not a personal attack.
> >
>
> +1
>
>
> > So what qualifies as objectionable under freedom of speech? Anyone can
> > vomit some shit an say it's my freedom of speech and GTFO. Will you
> accept
> > it?
> >
> > I felt that "Namaste" is not appropriate for ILUGC, that's why I asked OP
> > to consider replacing that salutation.
> >
> > Thanks,
> > Mohan R
> >
>
> Moderators pls excuse for posting non-technical, though context is well
> with-in how the thread has shaped up.
>
> I reckon we all know what qualifies as objectionable. It doesn't come with
> a clear border. Quoting an analogy none-the-less
>
> While walking its my freedom to swing my arms. If i want to swing them 90
> deg on either side, i have the freedom - if i can swing them 90 deg  to
> start with. While swinging if it hits people walking front & behind, then
> my freedom is encroaching theirs. That's why there is no clear border.
>

+1

>
> I see no issue in OP using Namaste in salutation. Pls do remember this
> group is called 'India Linux User Group - Chennai'. It includes
> Linux/India/Chennai. So if i am to loose sanity for moment, can i say that
> people from other districts on TN aren't allowed to participate? No, as
> long as the post is about technical & Linux anyone is welcome. Salutation
> doesn't matter in a technical post, so why make big issue on that. I hope
> you agree techies care only how well the question is posted, rather than
> salutation.
>

+1

>
> To be frank your first response in this thread, with solution, was the
> correct response until it was spoiled by you bringing 'Namaste' as note.
> All  other response are waste of resource.
>

You nailed it!

-- 

*Regards,Sahil ModGill*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines


Re: [Ilugc] [OT] [[Need help]] Few *nix questions

2016-02-22 Thread Udaya Kumar
On Tue, Feb 23, 2016 at 10:57 AM, Mohan R  wrote:

> On 23-Feb-2016 10:33, "Manokaran K"  wrote:
> >
> > Being a
> > group dedicated to freedom (of speech among others), I don't think its
> > right to object to anything thats not a personal attack.
>

+1


> So what qualifies as objectionable under freedom of speech? Anyone can
> vomit some shit an say it's my freedom of speech and GTFO. Will you accept
> it?
>
> I felt that "Namaste" is not appropriate for ILUGC, that's why I asked OP
> to consider replacing that salutation.
>
> Thanks,
> Mohan R
>

Moderators pls excuse for posting non-technical, though context is well
with-in how the thread has shaped up.

I reckon we all know what qualifies as objectionable. It doesn't come with
a clear border. Quoting an analogy none-the-less

While walking its my freedom to swing my arms. If i want to swing them 90
deg on either side, i have the freedom - if i can swing them 90 deg  to
start with. While swinging if it hits people walking front & behind, then
my freedom is encroaching theirs. That's why there is no clear border.

I see no issue in OP using Namaste in salutation. Pls do remember this
group is called 'India Linux User Group - Chennai'. It includes
Linux/India/Chennai. So if i am to loose sanity for moment, can i say that
people from other districts on TN aren't allowed to participate? No, as
long as the post is about technical & Linux anyone is welcome. Salutation
doesn't matter in a technical post, so why make big issue on that. I hope
you agree techies care only how well the question is posted, rather than
salutation.

To be frank your first response in this thread, with solution, was the
correct response until it was spoiled by you bringing 'Namaste' as note.
All  other response are waste of resource.


-- 
Cheers
Uday.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines


Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread Mohan R
On 23-Feb-2016 11:13 AM, "sahil साहिल"  wrote:
> I am very sad to state that what I heard about this group tfew years back
> from someone that this group is not BEST.
> I think it's time to say Good Bye to ILUG-C. Leaving this group to
> so-called highly intellectual folks who raise eye-brows on mere
> "salutation" or you asked homework questions.

That's funny. A mere request to change the salutation can make you rant
about this group and run away from this group is it?

I hope you read this thread when you calm down and see my mail as a request
rather then North vs South debate.

I'm stopping here. No point of arguing anymore because you are not going to
listen.

Thanks,
Mohan R

___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> ILUGC Mailing List Guidelines:
> http://ilugc.in/mailinglist-guidelines
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [OT] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Tue, Feb 23, 2016 at 10:57 AM, Mohan R  wrote:

> On 23-Feb-2016 10:33, "Manokaran K"  wrote:
> >
> > Being a
> > group dedicated to freedom (of speech among others), I don't think its
> > right to object to anything thats not a personal attack.
>
> So what qualifies as objectionable under freedom of speech? Anyone can
> vomit some shit an say it's my freedom of speech and GTFO. Will you accept
> it?
>

You sound like a some maths question, If ramu has 10 apples and shayamu has
20 oranges, how did Happy New year make 100 crores? Explain with formula
and graph.
Now you are dragging yourself into FoS debate.
Go get a life! :)


> I felt that "Namaste" is not appropriate for ILUGC, that's why I asked OP
> to consider replacing that salutation.
>

Then what is appropriate for ILUG-C. You draw and dictate the rules for us.
We will follow it, My Lord! You want to BOSS ILUG-C commiunity.
But, "Always remember, the best boss is the one who bosses the least.
Whether it's cattle, or horses, or men; the least government is the best
government." Ralph Moody

-- 

*Regards,Sahil ModGill*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines


Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Tue, Feb 23, 2016 at 10:04 AM, Sahasranaman M S  wrote:

>
> On Tuesday 23 February 2016 09:07 AM, sahil साहिल wrote:
> > What's big deal in it if I said? You seem to be offended from this. You
> > tell !e what should I use in salutation if ever I have to written you an
> > email (which is a distant dream).
> > Well, you drove the conversation in another direction.
> The big deal is not that you said Namaste,  but that you don't seem to
> get the point of the discussion.  You chose to defend yourself with an
> imposing message,  and when its implications are pointed out to you,
> you get personal and hurtle insults.   Just imagine,  if someone from
> Chennai goes to a lug in a different state and greets everyone with
> 'Vanakkam' and later says it is Indian culture,  it is unlikely that
> they will be patted on the back.  It is not Indian culture,  but a Tamil
> custom.
>

Sir, I got the point of discussion very well in his first reply. But he
might have some other plans and I don't know what is he upto his sleeves?
I don't mind to learn about new cultures and I will try to reply back to
that person in his language and may request him to teach me how to spell in
case I spell it wrongly.
And, if we put things in perspective then I must start my coversation as
Sat Sri Akal as thta's a Punjabi custom not an Indian culture.
I cleary smell that there is a fine line between North India and South
India and you guys has proved that,
Thanks.

-- 

*Regards,Sahil ModGill*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread Shakthi Kannan
Hi,

--- On Tue, Feb 23, 2016 at 11:12 AM, sahil साहिल
 wrote:
| And, so what if its homework for a job-seeker. If you would have gotten
| such questions from your interviewer to anaylze your skill-set then would
| you reject or deny to solve these because it looks like homework.
|
| Shakthi, at least I never expected such reply from you.
\--

You missed the point again (and I shall forgive you for your
inexperience). If you are seeking a job with an employer who asks such
questions, then you are seeking the wrong employer.

A good employer would see your GitHub profile, or work that you have
done with a free and open source project.

---
| If you think you are ...
\--

Please stick to technical discussions only.

Cheers!

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Tue, Feb 23, 2016 at 9:31 AM, Mohan R  wrote:

> On 23-Feb-2016 09:08, "sahil साहिल"  wrote:
> > What's big deal in it if I said?
> It is a big deal when you write mail to a group where different type of
> people listening.
>

Now do one thing... file a law-suit against me or sue me for using
"Namaste" as salutation. It may give you some peace.


>
> > tell !e what should I use in salutation if ever I have to written you an
> > email (which is a distant dream).
> You don't have to write a mail to me. I'm asking you to say "Hi" instead of
> "Namaste" when you write mail addressing a technical group like ILUGC.
>
> > whether you are or not I don't care.
>
> Great!! Yes, You should not care about whoever respond to you who's opinion
> is different from you.
>

Yes, but did you accept my view open-heartedly or not.
The truest test of democracy is in the ability of anyone to act as he
likes, so long as he does not injure the life or property of anyone else.
-- 

*Regards,Sahil ModGill*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Tue, Feb 23, 2016 at 9:27 AM, Shakthi Kannan 
wrote:

> Hi,
>
> --- On Tue, Feb 23, 2016 at 12:39 AM, sahil साहिल
>  wrote:
> | I think I did a mistake by posting questions on this group.
> \--
>
> These did look like homework questions. I did help because you made an
> effort to solve some of them.
>

Thanks for your help. And, I found these questions in from one debian job
(though that was in french and I translated it to English for my curosity)
because I wanted to know more about *nix. That's it!
And, so what if its homework for a job-seeker. If you would have gotten
such questions from your interviewer to anaylze your skill-set then would
you reject or deny to solve these because it looks like homework.

Shakthi, at least I never expected such reply from you.


> Such job, interview and quiz questions are not encouraged, because
> you, as an individual, need to make an effort to find, answer and
> analyze the solutions yourself. Yes, it is part of the learning
> process. Only when you make an effort and learn it the hard way, will
> you remember them.
>

If you think you are extremely talented then I do have some deep
algorithmic problems. Shall I share those with you? And, I think you missed
a point that why do people prefer to study case-studies because they give
us a crystal clear image how it looks like when you work in production
environment. Isn't it?
That's what I didn. I tried my level best to solve and on few ones if I
stuck on few ones and got guts to ask you guys then is that my mistake? You
guys sound like why and who did you ask such questions on this group?
I am very sad to state that what I heard about this group tfew years back
from someone that this group is not BEST.
I think it's time to say Good Bye to ILUG-C. Leaving this group to
so-called highly intellectual folks who raise eye-brows on mere
"salutation" or you asked homework questions.


> "Give a man a fish and you feed him for a day; teach a man to fish and
> you feed him for a lifetime."
>
> In F/OSS, we prefer to teach. Spoon-feeding is discouraged.
>

In the age and day of Internet anyone can learn pretty much anything. What
matters the most is whether you mentored the guy well or not. :)

-- 

*Regards,Sahil ModGill*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Tue, Feb 23, 2016 at 9:19 AM, Shakthi Kannan 
wrote:

> Hi,
>
> --- On Tue, Feb 23, 2016 at 12:02 AM, MohanR  wrote:
> | If you think reading questions like this will improve your knowledge on
> | *nix, then I'm sorry. If you think answering these kind of questions
> | can get you a job, then I'm really sorry. start contributing to a
> | opensource project, that will fetch you a good job.
> \--
>
> ACK. Very well said!
>

Yes, contributing to any opensource project will surely add a feather in
one's cap but solving such questions is not bad either at all. You guys
talk like you never solved such questions or approached one for your
doubts. You guys may be born as SUPER HUMANS. I am not. Excuse me!

-- 

*Regards,Sahil ModGill*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines


Re: [Ilugc] [OT] [[Need help]] Few *nix questions

2016-02-22 Thread Mohan R
On 23-Feb-2016 10:33, "Manokaran K"  wrote:
>
> Being a
> group dedicated to freedom (of speech among others), I don't think its
> right to object to anything thats not a personal attack.

So what qualifies as objectionable under freedom of speech? Anyone can
vomit some shit an say it's my freedom of speech and GTFO. Will you accept
it?

I felt that "Namaste" is not appropriate for ILUGC, that's why I asked OP
to consider replacing that salutation.

Thanks,
Mohan R

> On Tue, Feb 23, 2016 at 10:04 AM Sahasranaman M S  wrote:
>
> >
> >
> > On Tuesday 23 February 2016 09:07 AM, sahil साहिल wrote:
> > > What's big deal in it if I said? You seem to be offended from this.
You
> > > tell !e what should I use in salutation if ever I have to written you
an
> > > email (which is a distant dream).
> > > Well, you drove the conversation in another direction.
> > The big deal is not that you said Namaste,  but that you don't seem to
> > get the point of the discussion.  You chose to defend yourself with an
> > imposing message,  and when its implications are pointed out to you,
> > you get personal and hurtle insults.   Just imagine,  if someone from
> > Chennai goes to a lug in a different state and greets everyone with
> > 'Vanakkam' and later says it is Indian culture,  it is unlikely that
> > they will be patted on the back.  It is not Indian culture,  but a Tamil
> > custom.
> > >> >
> > >> >PS: I'm not a student of JNU:)
> > > Neither am I. And, whether you are or not I don't care. But, you seem
to
> > be
> > > interested in some other discussion. Sorry, I don't have time for such
> > > discussions. You should pay a visit to JNU for such debates whether
> > > Tamilians are Indians or not and they know about Namaste or not?
> > > Good Luck!
> > >> >
> >
> > ___
> > ILUGC Mailing List:
> > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> > ILUGC Mailing List Guidelines:
> > http://ilugc.in/mailinglist-guidelines
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> ILUGC Mailing List Guidelines:
> http://ilugc.in/mailinglist-guidelines
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

[Ilugc] Linux Mint Site hacked :-o

2016-02-22 Thread Balasubramaniam Natarajan
FYI...

http://www.welivesecurity.com/2016/02/22/linux-mint-hacked/

-- 
Regards,
Balasubramaniam Natarajan
http://blog.etutorshop.com
https://www.youracclaim.com/user/balasubramaniam-natarajan
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines


Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread Sahasranaman M S


On Tuesday 23 February 2016 09:07 AM, sahil साहिल wrote:
> What's big deal in it if I said? You seem to be offended from this. You
> tell !e what should I use in salutation if ever I have to written you an
> email (which is a distant dream).
> Well, you drove the conversation in another direction.
The big deal is not that you said Namaste,  but that you don't seem to 
get the point of the discussion.  You chose to defend yourself with an 
imposing message,  and when its implications are pointed out to you,  
you get personal and hurtle insults.   Just imagine,  if someone from 
Chennai goes to a lug in a different state and greets everyone with 
'Vanakkam' and later says it is Indian culture,  it is unlikely that 
they will be patted on the back.  It is not Indian culture,  but a Tamil 
custom.
>> >
>> >PS: I'm not a student of JNU:)
> Neither am I. And, whether you are or not I don't care. But, you seem to be
> interested in some other discussion. Sorry, I don't have time for such
> discussions. You should pay a visit to JNU for such debates whether
> Tamilians are Indians or not and they know about Namaste or not?
> Good Luck!
>> >

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread Mohan R
On 23-Feb-2016 09:08, "sahil साहिल"  wrote:
> What's big deal in it if I said?
It is a big deal when you write mail to a group where different type of
people listening.

> tell !e what should I use in salutation if ever I have to written you an
> email (which is a distant dream).
You don't have to write a mail to me. I'm asking you to say "Hi" instead of
"Namaste" when you write mail addressing a technical group like ILUGC.

> whether you are or not I don't care.

Great!! Yes, You should not care about whoever respond to you who's opinion
is different from you.

Thanks,
Mohan R ___
> > ILUGC Mailing List:
> > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> > ILUGC Mailing List Guidelines:
> > http://ilugc.in/mailinglist-guidelines
>
> Regards:
> Sahil Modgill
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> ILUGC Mailing List Guidelines:
> http://ilugc.in/mailinglist-guidelines
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread Shakthi Kannan
Hi,

--- On Tue, Feb 23, 2016 at 12:02 AM, MohanR  wrote:
| If you think reading questions like this will improve your knowledge on
| *nix, then I'm sorry. If you think answering these kind of questions
| can get you a job, then I'm really sorry. start contributing to a
| opensource project, that will fetch you a good job.
\--

ACK. Very well said!

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines


Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Feb 23, 2016 8:38 AM, "MohanR"  wrote:
>
> On Tue, 2016-02-23 at 00:27 +0530, sahil साहिल wrote:
> > "Namaste" as salutation as this is our Indian culture
> It is not. AFAIK, none of the Tamilians I know say Namaste to each
> other (as most of the Southies I believe). If you believe Tamilians (or
> Southies) are not Indians, than your saying is correct.

What's big deal in it if I said? You seem to be offended from this. You
tell !e what should I use in salutation if ever I have to written you an
email (which is a distant dream).
Well, you drove the conversation in another direction.
>
> PS: I'm not a student of JNU :)

Neither am I. And, whether you are or not I don't care. But, you seem to be
interested in some other discussion. Sorry, I don't have time for such
discussions. You should pay a visit to JNU for such debates whether
Tamilians are Indians or not and they know about Namaste or not?
Good Luck!
>
> Thanks,
> Mohan R
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> ILUGC Mailing List Guidelines:
> http://ilugc.in/mailinglist-guidelines

Regards:
Sahil Modgill
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread MohanR
On Tue, 2016-02-23 at 00:27 +0530, sahil साहिल wrote:
> "Namaste" as salutation as this is our Indian culture
It is not. AFAIK, none of the Tamilians I know say Namaste to each
other (as most of the Southies I believe). If you believe Tamilians (or
Southies) are not Indians, than your saying is correct.

PS: I'm not a student of JNU :)

Thanks,
Mohan R
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Mon, Feb 22, 2016 at 11:11 PM, Arun Khan  wrote:

> On Mon, Feb 22, 2016 at 8:25 AM, Shakthi Kannan 
> wrote:
> > Hi,
> >
> > --- On Mon, Feb 22, 2016 at 1:08 PM, sahil साहिल
> >  wrote:
> > | * Identify which IP address and port the Apache daemon listens on.
> > \--
> >
> > Check its configuration file.
> >
>
> Also, "netstat -nltup"  will list all tcp/udp ports and program name.
> You can also do "lsof" and grep for port numbers that will list the
> program using the respective port(s).
>

Point noted about .

>
> > ---
> > | Is it a valid solution? I think by scanning on port 80 using nmap we
> can
> > | find out what ip's apache daemon listens.
> > \--
> >
>
> Beware of using scanning tools like nmap.  When you use nmap make sure
> if you have the permission from the owner of the target IP.   Some
> ISPs may not like it even when you have the instance owner's
> permission.
>

Point noted.

>
> > How can you tell if it isn't another web server running on port 80?
> >
>
> netstat and lsof are pretty reliable (unless your server has been
> hacked and root kitted).
>

Thanks.

>
> > ---
> > | * Find all IP addresses between your server and www.google.com
> > \--
> >
> > What do you mean by "between"?
> >
>
> +1  but I guess OP is asking for number of connections between his
> server (client) and www.google.com (server).
>
> Again, "netstat" and "lsof" will list the connections.
>
> The rest of them are fundamental stuff i.e. *nix admin 101
>

Yes, rest are fundamentals and we can't deal practically with every concept
in one shot or in an overnight. That's why we read, try, iterate and ask
seniors in case of doubts.


> >
> > ---
> > | * Write a shell script to get the third element delimited by ":"
> > | ...
> > | Do not use 
> > \--
> >
> > Why not?
>
> +1
>

@Shakthi and Arun:
I will surely ask the guy who that why not to use .
Because there is no fun in re-inventing the wheel.
On the other side, this taught us that we can accomplish the task with
another method. That's how we come to know that a particular problem can be
solved from different dimension.


> > | I hope such questions will help others too.
> > \--
> >
>
> In what way?  IMO, they should be part of your "snap your fingers" tool
> kit.
>

@Arun:
If one is curious and eager to learn then he will get meaningful from such
questions.
Could you please explain the meaning of "snap your fingers" tool kit?
Please illuminate me on this.


>
> > Where did you find such questions?
> >
>
> +1.  To me they appear to be job interview type questions.
>

@Shakthi and Arun:

I love to find questions pretty much about every topic which I like. Topics
from wide range: Docker, Vagrant, Ansible, Puppet, Chef, Python (lamda
functions), Google Foobar, Machine Langugae, AI, AWS, OpenStack etc.
I don't have any talent. Only passionately curious.

I think I did a mistake by posting questions on this group. Anyways, lesson
learnt.
Will refrain.

Thanks folks for your time and energy.

-- 

*Regards,Sahil ModGill*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread sahil साहिल
On Tue, Feb 23, 2016 at 12:02 AM, MohanR  wrote:

> On Mon, 2016-02-22 at 13:08 +0530, sahil साहिल wrote:
> > * Identify which IP address and port the Apache daemon listens on.
> sudo ss -4tlnp | grep 'httpd' | awk '{print $4}'
>
> > * Find all IP addresses between your server and www.google.com
> (dest="www.google.com"; ip=$(host "${dest}" | head -1 | awk '{print
> $NF}'); for count in {1..30}; do hop=$(ping -t "${count}" -c 1 "${ip}"
> | sed -n 's/^.*[fF]rom \([0-9.]*\).*$/\1/gp'); echo "${hop}"; [ "${ip}"
> = "${hop}" ] && break; done)
>
> > * Create an empty directory and change the permissions so that the
> > owner
> > can execute, read and write, the group can execute and read and the
> > others
> > cannot do anything.
> > # mkdir demo && chmod 750 demo
> Nothing to say
>
> > * Print all the lines from /var/log/demon.log having the string ntp
> > and NTP
> > but not NtP.
> grep -E '\|\' /var/log/daemon.log
>
> > * Write a shell script to get the third element delimited by ":" from
> > a
> > file (passing the file name as an argument to the script) and the
> > format of
> > the file is same as of /etc/passwd file and then add up all the
> > numbers. Do
> > not use 
> (SUM=0; read_cb(){ set ${2//:/ }; SUM=$((SUM + $3)); }; readarray -c 1
> -C read_cb; echo "${SUM}") < /etc/passwd
>
> If you think reading questions like this will improve your knowledge on
> *nix, then I'm sorry. If you think answering these kind of questions
> can get you a job, then I'm really sorry. start contributing to a
> opensource project, that will fetch you a good job.
>

Well, thank you for taking time from your busy schedule and writing
answers. I really appreciate that. I never thought that reading or
answering such questions will land-up me a job. But reading something
useful and related to your interest is not bad either. Puting efforts to
any opensource project is another thing and solving/reading questions
before going to any exam is another tale. One should know the difference. :)
If my questions made one annoy then I will not ask questions from now
onwards. I thought that in this group folks are quite experienced that's
why I ask questions so we all learn from those and new folks like me may
get some real insight.


> Side-Note: I think this mailing-list operates in a specific language
> called "English", so "Nameste" is not appropriate here. By saying this,
> you are loosing responses from some real hardcore techies who may not
> like your way of salutation.
>

I know this mailing-list operates in English and I don't mind in writing
"Namaste" as salutation as this is our Indian culture and I feel proud and
prefer to say Namaste.
Those who like they will respond and those who don't they will not. I never
seek. I just asked. Rest is choice. As simple as that!

-- 

*Regards,Sahil ModGill*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread MohanR
On Mon, 2016-02-22 at 13:08 +0530, sahil साहिल wrote:
> * Identify which IP address and port the Apache daemon listens on.
sudo ss -4tlnp | grep 'httpd' | awk '{print $4}'

> * Find all IP addresses between your server and www.google.com
(dest="www.google.com"; ip=$(host "${dest}" | head -1 | awk '{print
$NF}'); for count in {1..30}; do hop=$(ping -t "${count}" -c 1 "${ip}"
| sed -n 's/^.*[fF]rom \([0-9.]*\).*$/\1/gp'); echo "${hop}"; [ "${ip}"
= "${hop}" ] && break; done)

> * Create an empty directory and change the permissions so that the
> owner
> can execute, read and write, the group can execute and read and the
> others
> cannot do anything.
> # mkdir demo && chmod 750 demo
Nothing to say

> * Print all the lines from /var/log/demon.log having the string ntp
> and NTP
> but not NtP.
grep -E '\|\' /var/log/daemon.log

> * Write a shell script to get the third element delimited by ":" from
> a
> file (passing the file name as an argument to the script) and the
> format of
> the file is same as of /etc/passwd file and then add up all the
> numbers. Do
> not use 
(SUM=0; read_cb(){ set ${2//:/ }; SUM=$((SUM + $3)); }; readarray -c 1
-C read_cb; echo "${SUM}") < /etc/passwd

If you think reading questions like this will improve your knowledge on
*nix, then I'm sorry. If you think answering these kind of questions
can get you a job, then I'm really sorry. start contributing to a
opensource project, that will fetch you a good job.

Side-Note: I think this mailing-list operates in a specific language
called "English", so "Nameste" is not appropriate here. By saying this,
you are loosing responses from some real hardcore techies who may not
like your way of salutation.

Thanks,
Mohan R
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread Arun Khan
On Mon, Feb 22, 2016 at 8:25 AM, Shakthi Kannan  wrote:
> Hi,
>
> --- On Mon, Feb 22, 2016 at 1:08 PM, sahil साहिल
>  wrote:
> | * Identify which IP address and port the Apache daemon listens on.
> \--
>
> Check its configuration file.
>

Also, "netstat -nltup"  will list all tcp/udp ports and program name.
You can also do "lsof" and grep for port numbers that will list the
program using the respective port(s).

> ---
> | Is it a valid solution? I think by scanning on port 80 using nmap we can
> | find out what ip's apache daemon listens.
> \--
>

Beware of using scanning tools like nmap.  When you use nmap make sure
if you have the permission from the owner of the target IP.   Some
ISPs may not like it even when you have the instance owner's
permission.

> How can you tell if it isn't another web server running on port 80?
>

netstat and lsof are pretty reliable (unless your server has been
hacked and root kitted).

> ---
> | * Find all IP addresses between your server and www.google.com
> \--
>
> What do you mean by "between"?
>

+1  but I guess OP is asking for number of connections between his
server (client) and www.google.com (server).

Again, "netstat" and "lsof" will list the connections.

The rest of them are fundamental stuff i.e. *nix admin 101

>
> ---
> | * Write a shell script to get the third element delimited by ":"
> | ...
> | Do not use 
> \--
>
> Why not?

+1

> | I hope such questions will help others too.
> \--
>

In what way?  IMO, they should be part of your "snap your fingers" tool kit.

> Where did you find such questions?
>

+1.  To me they appear to be job interview type questions.

-- Arun Khan
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Re: [Ilugc] [[Need help]] Few *nix questions

2016-02-22 Thread Shakthi Kannan
Hi,

--- On Mon, Feb 22, 2016 at 1:08 PM, sahil साहिल
 wrote:
| * Identify which IP address and port the Apache daemon listens on.
\--

Check its configuration file.

---
| Is it a valid solution? I think by scanning on port 80 using nmap we can
| find out what ip's apache daemon listens.
\--

How can you tell if it isn't another web server running on port 80?

---
| * Find all IP addresses between your server and www.google.com
\--

What do you mean by "between"?

---
| * Create an empty directory and change the permissions so that the owner
| can execute, read and write, the group can execute and read and the others
| cannot do anything.
| # mkdir demo && chmod 750 demo
\--

You are creating the directory as a root user. So, you will also need
to specify the owner using chown, chgrp commands.

---
| * Print all the lines from /var/log/demon.log having the string ntp and NTP
| but not NtP.
\--

What does demon.log contain?

  $ sed -n '/ntp\|NTP/p' /var/log/demon.log

---
| * Write a shell script to get the third element delimited by ":"
| ...
| Do not use 
\--

Why not?

---
| I hope such questions will help others too.
\--

Where did you find such questions?

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines