Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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.
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.
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.
(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
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.
(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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.