Naked Science Forum
Non Life Sciences => Geek Speak => Topic started by: Titanscape on 25/08/2008 21:10:19
-
Hi, I have installed Ubuntu on my hard drive, and I am looking to write in a terminal, Compiz-Check but even though I know the password, and tried a lot, it would not accept my password after "su".
What can I do?
-
Was it actually saying that the password you entered was incorrect? If so, then you're not supplying the correct password. If it does accept the password, but then fails to run the prog, can you run other commands as root? i.e. create a file in /root/ that only root has permissions to and then try to cat it from an ordinary user after su'ing.
-
Well it is a fresh install, there is only one password. I miss typed it at one point and saw it spelled out rightly, otherwise it is not shown. That is, I typed it in the su space, because it became a habit, I tried many times.
I will test the keyboard in a word processor.
-
Sorry Titan, but you actually failed to answer any of my questions.
There should not just be one password - you need one for 'root' and another for a normal user (they should not be the same). You obviously know the pw for your normal user, otherwise you wouldn't have been able to log in and wouldn't need to 'su' to run root commands, but then you need to know the root pw to get past 'su'.
-
Actually, with Ubuntu, you are rarely asked for a root password during installation. Something that caught me out when I first started using it, after using Debian for years, which does.
Rather than trying to type su - in Ubuntu try
sudo -s -H
You will then be asked for a password and entering your own will normally suffice. You will now be running with root priveleges.
Of course you should get into the habit of typing
sudo somecommand blah
when you need to run a command with root privs, and not using root at all when necessary.
That is the idea behind this arrangement.
Regards
Neil
-
Ubuntu has fixed this issue in Ubuntu 10.04 onwards.
-
http://en.wikipedia.org/wiki/Su_(Unix)
su -
note the space1