Skip to main content

Enable root Account in Ubuntu Server

After ubuntu server has been installed, you can login with the account that you created. Then the following command can enable you create a password for root.

test@test: sudo passwd root

And then input your passwd for root.

Command "su" can let you access the root, just type:

test@test: su

Be sure that remember the passwd for root for security reasons.

Comments

Popular posts from this blog

Oracle ORA-01000 maximum open cursors exceeded

Several days ago, I wrote a piece of program in C#/.Net to import some records into oracle database. It is windows version 10g XE. When the program is running, I got a run-time error which is ORA-01000 maximum open cursors exceeded. Here is the Oracle docs about ORA-01000: ORA-01000 maximum open cursors exceeded Cause: A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user. Action: Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle. In order to solve this problem, I increased my OPEN_CURSORS by using: ALTER SYSTEM SET open_cursors = 5000 SCOPE=BOTH; You can use SQL/PL client and "connect" command to login the database system by using "system" user to change the open_cursors. If you are using .NET, DBA, and Java programming, please remember to close all the re...

Comparison == vs equals() in Java

In java, we have two operations (" == " and " equals() ") to check the equivalence of String s. It is important to understand that the difference between them.    == The == operator compares the two objects and checks to see if two objects are exactly the same object (refer to the same instance). .equals() The equals() method compares the characters in the two different objects. Two strings may be different objects , but can contains the same values (exactly the same characters). public class Main {     public static void main(String[] args) {         String s1 = "Shangshu";         String s2 = new String(s1);         System.out.println(s1 + " == " + s2 + " is " + (s1 == s2));         System.out.println(s1 + ".equals(" + s2 + ") is " + (s1.equals(s2)));     } } The output of the above code is:...

人权与主权

前些天看到一个,讲测定一个人的政治倾向。其中有一道题选择说是: “人权高于主权” 还是 “主权高于人权”。 博主说博主本人选择是“人权高于主权”,可是博主国内的的父亲却选择是“主权高于人权”。 其实这根本就是一个伪命题,茶余饭后聊聊,口水战一下还可以。可是要是仔细追究起来,恐怕事实上美国国家都采用的是“主权高于人权”的行为。打个比方说,现在很多国家的人民都想加入美国,拥有美国国籍。如果我们把人权定义为:人有追求自由,幸福的权利。那么这些想加入美国国籍的人们的意愿就是人权的范畴。那人权是不是要高于主权呢?我想大家都知道,因为美国的主权关系,美国要审查你的资格。如果能为美国所用,美国欢迎你加入;如果不是,恐怕就很难咯。 当年日本侵华打的旗号是建立大东亚共荣圈,只是没有民主那么好听而已。