Sudo is a program which can be used by normal users to execute programs as super user or any other user. Sudo access is controlled by /etc/sudoers. The users listed in /etc/sudoers file can execute commands with an effective user id of 0 and a group id of root's group.

The file '/etc/sudoers' should be edited with the editor "visudo".

01. First, create a user called "vihost"
#useradd vihost
#passwd vihost

02. To give a specific group of users limited root privileges, edit the file with visudo as follows:
# visudo

03. Go down to the line ‘# User privilege specification‘and add the following line.

uddika ALL=(ALL) ALL

Bài viết số 365 đã được: 0.0/10 (0 Đánh giá)

Chia Sẻ
Linux | Nhận xét(0) | Trích dẫn(0) | Đọc(332)
Viết nhận xét
Hình vui
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
Mở HTML
Mở UBB
Mở hình vui
Ẩn giấu
Tên gọi   Mật khẩu   Khách không cần mật khẩu
Địa chỉ web   Email   [Đăng ký]