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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Single user mode or any maintenance mode similar to that, and generally doing maintenance... you can do "sudo passwd root" to set the root password, in Ubuntu the root password is made of an unusable password by default what means root can not be logged in as. The only real advantage of sudo in my opinion is that it's usually a time limited idle before it dis-activates and thus needs the password. it's harder for people to break in while you have left the computer... but why would you be leaving the computer unlocked anyway if you were leaving it where other people could get to it? else wise putting sudo infront of something can become so common a lot of people would do the same mistakes with or without sudo anyway... as generally logging in as root as a main user is just ill-advised anyways... and why I prefer "su -".
Last edited by r3sistance; 08-17-2010 at 04:49 PM.
Unless you have a folder called "root" in your turf-ubuntu folder, try:
It is not a permissions problem as a couple of other posters above seem to think (the 'cd' command does not require root privileges!) but rather bad command line syntax (the / character is in the wrong place).
Please take a minute to read through the document I linked to in post #2, it should answer many of your questions. You might also want to brush up on some command line basics before you go issuing commands with sudo, here is a good tutorial: http://www.tuxfiles.org/linuxhelp/cli.html
This is "cheating" I guess, because it's just too easy! But I installed an awesome, ultralight file manager using Synaptic, called PCManFM (one of the jewels of the LXDE project). I use that to navigate to the folder that has the stuff I want to change, and then click on Tools > Open Current Folder as Root. Enter your computer's root password when prompted. Bingo! A new window opens up with a little caption that says, "Warning! You are now in Super User Mode!"
Click on whatever file you want to edit, modify, delete, move, whatever. When you close that Super User window, you're back to "ordinary user" but all your changes are saved. Sweet, huh?
Simple enough for even a silly little dixiedancer to do, lol.
menu.lst is from grub 1, grub 2 uses grub.cfg and I know Ubuntu (since 9.10) uses grub 2, however I am not certain of the changes you should be making with the grub 2 boot loader so if you could say what you are trying to do, perhaps other users could help you out with that?
finally got in by providing a root password this time. i'd like it that way where users need to give the root password.
but after getting into the grub,i seem can't see my menu.lst.
where the hell are they hiding these things, it seems complicated unlike most distros.where its easy to spot the lilo.conf or the menu.lst
Turf, you seem very confused. Please read the Ubuntu documentation I linked to in post #2, it will explain why you don't need to enable a root password. You can of course do so if you choose (it's your computer) but it means you won't be able to follow the official Ubuntu documentation or use their support forums, both of which assume the use of 'sudo'.
Speaking of the Ubuntu documentation, it is excellent, and they have an entire chapter on GRUB (hint: there is no "menu.lst"): https://wiki.ubuntu.com/Grub2
I know it is tricky when a lot of different people on the internet are shouting conflicting advice at you. When in doubt, I encourage you to look for answers from sites with ubuntu.com in the URL. This will ensure you are getting accurate and up-to-date information. I hope I'm not coming off as a know-it-all... I certainly don't know all the answers! I just know where to look.
If the sudo command annoys you you could emulate the root login in one of two ways... I can't remember the second but I use the following all the time because 1) I like and use bash to it's easy to remember and 2) when I switch to root user with this method it uses my users .bash_aliases and .vimrc file so I have all of my aliases and settings I want.