LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2008, 04:27 PM   #1
Bakalka
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
help me


hello guys , thank you so much for been with you in this kind of web site
actully i have three questions and i need it pleaseee help me out with
because i have a finakl project in Linux and im not that good in this language but good idea also to learn from you guys and give me and help me for some questions to answer
my questions are :



my first question (1) Create a new " Message Of The Day' ( motd) file ???



my second question (2) add all of your friends to your /etc/hosts file ????



my third questions (3) Modify the " passwd" file entries for one username by entering a comment entry consisting of the person 's full name, office, buliding name for example

ED Leblanc , b-220,b-block, our instructor ??????



thanx alot

regards

bakalka
 
Old 11-24-2008, 04:32 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
In the future, please choose a more descriptive subject -- it'll help your topic get the attention it deserves.

For your questions, have you done any research into what the MOTD, /etc/hosts, and passwd files are?

I'm not trying to sound mean, but these are very basic linux concepts and a very simple google search on any of them would provide all the answers and more.
 
Old 11-24-2008, 04:34 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
It is against the forum rules (and actually not helping you) to tell you the answers to your homework/project. Google is your friend. See what you can find and if you are stuck with something, we'll be more than happy to help you.
 
Old 11-24-2008, 04:39 PM   #4
aenright
Member
 
Registered: May 2005
Location: San Antonio, TX
Distribution: CentOS/Fedora/RHEL/FreeBSD/HPUX/Solaris
Posts: 46

Rep: Reputation: 16
Cool To try to answer some of your questions.

As other members have pointed out, your subject line is very non-descript. As far as your technical questions, here are some things that will put you on the right path.

From the command line of the server run this command:

Code:
# man motd
read the man page and it will explain how to change your message of the day.

Adding entries to your /etc/hosts file is as simple as using your favorite editor (vi, emacs, pico) to edit /etc/hosts as the root user and add entries. The format should be something similar to:

Code:
ip.add.re.s  fuly.qualified.domain.name hostname
and as far as modifying user information read the man page for usermod:

Code:
# man usermod
Hopefully this will put you on the right path. Fee free to update this thread once you have tried these things if you are still having trouble.

Thanks,
~Art
 
Old 11-24-2008, 05:05 PM   #5
kr4ey
Member
 
Registered: May 2007
Location: Florida
Distribution: Slackware64 14.1
Posts: 58

Rep: Reputation: 17
Quote:
Originally Posted by sycamorex View Post
It is against the forum rules (and actually not helping you) to tell you the answers to your homework/project. Google is your friend. See what you can find and if you are stuck with something, we'll be more than happy to help you.
It is NOT against forum rules to help someone on an answer. This is real world not school.

http://www.linuxquestions.org/linux/rules.html

There are no rules here that say you can't ask or get help on your so called homework.
 
Old 11-24-2008, 05:08 PM   #6
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
http://www.linuxquestions.org/questi...osting-356388/

When creating a new thread, this is clearly shown next to the SUBJECT line you create.........FFS

Subject:

Bad: "Help Me!!" or "URGENT"
Good: "Why is my mouse pointer wrong?"
Best: "Mouse pointer distorted on XFree86 4.3 with Geforce FX 5200"
 
Old 11-24-2008, 05:09 PM   #7
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by kr4ey View Post
It is NOT against forum rules to help someone on an answer. This is real world not school.

http://www.linuxquestions.org/linux/rules.html

There are no rules here that say you can't ask or get help on your so called homework.
Eleventh rule.
Quote:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.

Last edited by phantom_cyph; 11-24-2008 at 05:10 PM.
 
Old 11-24-2008, 05:58 PM   #8
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by kr4ey View Post
It is NOT against forum rules to help someone on an answer. This is real world not school.

http://www.linuxquestions.org/linux/rules.html

There are no rules here that say you can't ask or get help on your so called homework.
As it was mentioned, there is rule number eleven and its whole purpose is to help people learn things. It's a completely different story when someone has got a school project and turns for help here BUT they show they have made some effort and did at least some research to solve the problem but are stuck at some particular points.
 
Old 11-24-2008, 08:34 PM   #9
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
The 11th rule says "Do not expect...". It does not say "Members are forbidden to...".

Bakalka, please follow the suggestions in aenright's post. If this does not seem to give enough help, post here again explaining what you were able to figure out and do, and what you need help with now.

Also look here:

http://www.cyberciti.biz/faq/how-can...-linux-server/

http://www.lockergnome.com/linux/200...etchosts-file/

http://www.linfo.org/useradd.html

http://en.kioskea.net/contents/unix/unix-users.php3

http://www.cyberciti.biz/faq/underst...d-file-format/

(as others have said, you can change the files with whatever text editor you like, but you will need to be root or su/sudo to root to do the saving of the edited file)

As the link for useradd says, you can also create users by directly editing /etc/passwd (which you will do to alter the entry for an already existing user), but this is dangerous because of the possibility of making a mistake, so if you do it this way, make sure to first make a copy of the file that is working correctly before you change it.


Also, as others have said, you can find this information using google. I found the above web sites in about five minutes by searching for

linux edit "message of the day" file

linux add edit /etc/hosts file

linux add edit comment passwd username /etc/passwd

Last edited by ehawk; 11-24-2008 at 08:59 PM.
 
Old 11-24-2008, 08:45 PM   #10
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by ehawk View Post
The 11th rule says "Do not expect...". It does not say "Members are forbidden to...".

Bakalka, please follow the suggestions in aenright's post. If this does not seem to give enough help, post here again explaining what you were able to figure out and do, and what you need help with now.

Also look here:

http://www.cyberciti.biz/faq/how-can...-linux-server/

http://www.lockergnome.com/linux/200...etchosts-file/

http://en.kioskea.net/contents/unix/unix-users.php3

(as others have said, you can change the files with whatever text editor you like)
I understand you're wanting to help someone, but I think before you stretch the rules to fit your understanding of them, you should consult a moderator first. Because the law says "do not kill" instead of "do not force someone to shoot themselves" does not make the latter action right. The phrase "Do not expect..." means: as a member of this forum, this action is not encouraged.
 
Old 11-24-2008, 09:07 PM   #11
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
You and I obviously have a different interpretation of basic English. No stretching of rules is required. "Do not expect" means akin to "You should not be surprised if (said people) do not...". The example you provide is just silly, as the first case clearly refers to the (presumed freely chosen) actions of separate individuals. By denying the second individual choice in your example, you completely botch any sense of analogy, it is a "horse of a different color"....

In no way should "Do not expect others to" be construed as "Others are discouraged from..." They mean completely different things. Even the "spirit" of both statements is different.

It is also obvious that it took the OP more than five minutes to create an account and start the thread, so his problem is not laziness, but ignorance. We gave him a fish, and by listing the searches that produced those results, gave him some fishing tips. English is obviously not his first language (nor perhaps yours), nor is "linux" (see first post =) )...cut the guy a break.

Last edited by ehawk; 11-24-2008 at 09:22 PM.
 
Old 11-24-2008, 09:26 PM   #12
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
ehawk and others arguing over homework posts, see this thread and note at least post #4:

http://www.linuxquestions.org/questi...sponse-681753/

There is also a caution somewhere (perhaps another thread) that we not get wrapped up in slapping the "Help Me" posters en masse.

Last edited by Quakeboy02; 11-24-2008 at 09:28 PM.
 
Old 11-24-2008, 09:41 PM   #13
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
The claims in that thread are bogus. Bandwith? People wasting their time on them? The proposed solution was disproportionate, and counter-productive to fostering a welcoming linux community. If you interact with said individual you can teach them how to fish for themselves. People see the thread subject, then choose to view the content, and can quickly surmise if a homework problem is being asked, and the state of the poster (lazy vs. ignorant) and react accordingly. So many assume the worst, without thinking that this could be a rather clueless person who is making a genuine plea for assistance. Some just post to yell at them, not calmly instruct on how to rephrase or search for themselves, seemingly enjoying the chance to belittle another human being. Cynicism is a sure sign of spiritual atrophy. This world could use more empathy.
 
Old 11-24-2008, 09:52 PM   #14
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Nevermind. It is apparent that the opinion of ehawk will not be changed as it is 100% correct. I know when I can't get anywhere. This is a waste of posts. My apology to the OP for filling his/her thread with posts that are being ignored anyway.
 
Old 11-24-2008, 09:57 PM   #15
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by ehawk View Post
The claims in that thread are bogus.
Could I ask you to read it again, but this time pay attention to who posts what in the thread? (Hint: look for moderator tag) And, this is my last post here, as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration