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.
Hi,
I'm new to Linux and the idea of 'commands'. I don't know what a registry is, or what busses or bridges are. Just so you understand quite how much of a newbie I am.
I need to use Sudo infront of some commands, if not, it comes up with a warning saying that I should do. Though it still does what I expect it to so if someone could explain the risks, that'd be helpful but that's not my main queriy.
When I enter [sudo] infront of the command it asks for my password. If I put my password in it just asks me to try again.
Also, should I need to press enter before typing the password, because it won't let me do anything untill I've pressed enter at the moment.
Also it only gives me two tries then tells me it's given me three.
Any ideas?
Last edited by Kimoki; 12-06-2009 at 09:29 PM.
Reason: to change title
what follows is what you should be typing, the italics are things you define, and each new line indicates that an [enter] was pressed:
sudo command password
And the password is the system administrator, or root, password. Usually it's not the password you used to login. However, if you are using ubuntu, sometimes it's your password that'll work.
When typing your password will will not see * for every character you type, that is useful to prevent anybody sitting next to you to know the number of characters of your password. So he will have to guess everything.
3 strikes and you are out, sounds like ubuntu. The reason why you only get 2 is that you hit 'enter' first. Think of 'enter' as enter what I have put in and RETURN me to the begining of the next line, so if there's nowt there it counts it as one strike.
Sudo, is a temporary root privilege SU is more lasting but why do you need 'root'? Avoid if possible, otherwise you risk bug*****g the system if your not sure what you are doing.
To my mind the command line, on a single user system, is used for speed and convenience, when it ceases to be that just use the GUI.
you could just edit the /etc/sudoers file. add your user ex: steve ALL(ALL)=ALL or something of that sort.
I tried this out but my laptop won't display the 'Sudoers'
file claiming it's an uknown type.
Quote:
Originally Posted by AGazzaz
When typing your password will will not see * for every character you type, that is useful to prevent anybody sitting next to you to know the number of characters of your password. So he will have to guess everything.
It turns out that is exactly what ubuntu was doing but not entering *. Not even moving the cursor. But the password was going in.
Quote:
Originally Posted by Fred Caro
Sudo, is a temporary root privilege SU is more lasting but why do you need 'root'? Avoid if possible, otherwise you risk bug*****g the system if your not sure what you are doing.
Fred.
I'm attempting to connect to the internet using a wireless connection. I'm following these - https://help.ubuntu.com/community/Wi...ingGuide#check - instructions.
I typed in the 'lshw' command and I got a warning telling me I should always use sudo for such commands. So I did and started getting the problem with the password.
Thanks for time and help everyone.
The password I was given with the laptop (there is no login password) works fine but the Terminal doesn't let you know you're typing anything.
I just wonder why the 'Sudoers' file is of an uknown type. I'm worried I'm going to need to access it at some point.
What's telling you that it's an unknown type? Unlike Windows, Linux does not have the concept of "file extensions".
Linux does not have a "registry".
file ending - program associations are only provided by an optional program called the desktop environment, which is basically like a framework in which programs written for the DE (desktop environment) use. The most common ones are GNOME, KDE, and XFCE.
sudo is only used if you want to do something as administrator (aka "root user" or "super user"). Most files outside your home directory belong to the root user, and their permissions are set so that only the owner can modify them. So you must use sudo if you modify files outside your home directory of run programs that will attempt to do so.
As said above, for security reeasons, when typing in a passwd at the cmd line, Linux does not show any activity. This is to stop shoulder-surfing guys guessing the length.
However, the passwd will go in.
Remember Linux is case sensitive for everything at the cmd line eg there is no such file as Sudoers, its sudoers.
Please open a terminal and run the cmd
id
then try
sudo bash
and use the passwd you've been given, then run the 'id' cmd again.
Post the results.
Also try
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.