Giúp đỡ: Root trong ubuntu 12.04

## Làm thế nào để trở thành gốc trong Ubuntu 12.04

** 1.Sử dụng lệnh SU **

Lệnh SU cho phép bạn chuyển sang tài khoản người dùng gốc.Để thực hiện việc này, hãy mở một cửa sổ đầu cuối và nhập lệnh sau:

`` `
sudo su
`` `

Bạn sẽ được nhắc nhập mật khẩu người dùng gốc.Khi bạn đã nhập mật khẩu, bạn sẽ được chuyển sang tài khoản người dùng gốc.

** 2.Sử dụng lệnh sudo **

Lệnh SUDO cho phép bạn chạy các lệnh dưới dạng người dùng gốc mà không phải chuyển sang tài khoản người dùng gốc.Để làm điều này, tiền tố lệnh với lệnh `sudo`.Ví dụ: để chạy lệnh `ls` làm người dùng gốc, bạn sẽ nhập lệnh sau:

`` `
sudo ls
`` `

** 3.Sử dụng tiện ích GKSU **

Tiện ích GKSU cung cấp giao diện đồ họa để chạy các lệnh như người dùng gốc.Để thực hiện việc này, hãy mở menu ** Ứng dụng ** và nhập ** gksu ** trong thanh tìm kiếm.Nhấp vào ứng dụng ** GKSU ** để khởi chạy nó.

Trong cửa sổ ** gksu **, hãy nhập lệnh mà bạn muốn chạy dưới dạng người dùng gốc.Nhấp vào nút ** OK ** để chạy lệnh.

**4.Sử dụng tiện ích Gksudo **

Tiện ích GKSUDO tương tự như tiện ích GKSU, nhưng nó cung cấp giao diện thân thiện với người dùng hơn.Để thực hiện việc này, hãy mở menu ** Ứng dụng ** và gõ ** gksudo ** trong thanh tìm kiếm.Nhấp vào ứng dụng ** gksudo ** để khởi chạy nó.

Trong cửa sổ ** gksudo **, nhấp vào nút ** Duyệt ** để chọn tệp mà bạn muốn mở làm người dùng gốc.Nhấp vào nút ** Mở ** để mở tệp.

** 5.Sử dụng tiện ích sudoedit **

Tiện ích sudoedit cho phép bạn chỉnh sửa các tệp với tư cách là người dùng gốc mà không phải chuyển sang tài khoản người dùng gốc.Để thực hiện việc này, hãy mở một cửa sổ đầu cuối và nhập lệnh sau:

`` `
sudoedit <FameName>
`` `

Trong đó `<Tên tệp>` là tên của tệp mà bạn muốn chỉnh sửa.

**Lời khuyên:**

* Khi sử dụng lệnh SU, bạn có thể sử dụng tùy chọn `-L` để liệt kê các đặc quyền của người dùng hiện tại.
* Khi sử dụng lệnh sudo, bạn có thể sử dụng tùy chọn `-v` để xem các lệnh đang được chạy làm người dùng gốc.
* Khi sử dụng các tiện ích GKSU và GKSUDO, bạn có thể sử dụng tùy chọn `-H` để hiển thị thông tin trợ giúp.
* Khi sử dụng tiện ích sudoedit, bạn có thể sử dụng tùy chọn `-s` để lưu các thay đổi vào tệp làm người dùng gốc.

## hashtags

* #ubuntu
* #linux
* #ROOT Người dùng
* #Privilege leo thang
* #bảo vệ
=======================================
## How to become root in Ubuntu 12.04

**1. Using the su command**

The su command allows you to switch to the root user account. To do this, open a terminal window and type the following command:

```
sudo su
```

You will be prompted to enter the root user password. Once you have entered the password, you will be switched to the root user account.

**2. Using the sudo command**

The sudo command allows you to run commands as the root user without having to switch to the root user account. To do this, prefix the command with the `sudo` command. For example, to run the `ls` command as the root user, you would type the following command:

```
sudo ls
```

**3. Using the gksu utility**

The gksu utility provides a graphical interface for running commands as the root user. To do this, open the **Applications** menu and type **gksu** in the search bar. Click on the **gksu** application to launch it.

In the **gksu** window, type the command that you want to run as the root user. Click on the **OK** button to run the command.

**4. Using the gksudo utility**

The gksudo utility is similar to the gksu utility, but it provides a more user-friendly interface. To do this, open the **Applications** menu and type **gksudo** in the search bar. Click on the **gksudo** application to launch it.

In the **gksudo** window, click on the **Browse** button to select the file that you want to open as the root user. Click on the **Open** button to open the file.

**5. Using the sudoedit utility**

The sudoedit utility allows you to edit files as the root user without having to switch to the root user account. To do this, open a terminal window and type the following command:

```
sudoedit <filename>
```

Where `<filename>` is the name of the file that you want to edit.

**Tips:**

* When using the su command, you can use the `-l` option to list the current user's privileges.
* When using the sudo command, you can use the `-v` option to see the commands that are being run as the root user.
* When using the gksu and gksudo utilities, you can use the `-h` option to display help information.
* When using the sudoedit utility, you can use the `-s` option to save the changes to the file as the root user.

## Hashtags

* #ubuntu
* #linux
* #ROOT user
* #Privilege escalation
* #security
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock