Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the skills of linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what are the skills of linux". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what are the skills of linux"?

Modify MAC address under Linux

The MAC address is the physical address of the network card. In the Windows system, we can deceive the system and modify the MAC address by modifying the registry. In fact, the MAC address can also be changed under Linux:

1. Turn off the network card device

/ sbin/ifconfig eth0 down

two。 Modify MAC address

/ sbin/ifconfig eth0 hw ether MAC address

3. Restart the network card

/ sbin/ifconfig eth0 up or # service network restart

Or

Let ordinary users execute the administrator program safely

When multiple people share a computer or an administrative network, it is often encountered that the average user must execute a command, such as shutting down. But ordinary users don't have enough permissions, and we don't want to tell others our root password for privacy and security reasons.

There are two ways to solve this problem.

The first method is to set the suid of the command file, which allows ordinary users to run the program as the owner of the file. The specific command is chmod Utility file, and file is the file you want others to execute. You can also set guid to allow the user to run the program as the group to which the file belongs, with the command chmod Groups file.

The second method is to use the sudo program, which enables a user to run the program as a specific identity or as root, which is more secure and easier to maintain than the first method. This tool is available on the CD-ROM of the RedHat distribution. To use this, type visudo in the terminal to edit the sudoers file, and add the following four lines in the blank space:

Host_Alias MYHOST=localhost

User name of User_Alias MYUSER=A, user name of B

The path of the program to be run by Cmnd_Alias MYFILE=An and B

MYUSER MYHOST=NOPASSWD:MYFILE

Pay attention to case, and when you want to add new programs or users in the future, just change the first three lines directly. If you want a user who does not know the root password to have full privileges, in addition to running some dangerous programs (such as formatting), simply add:

The path of Cmnd_Alias DANGER= dangerous procedure

C user name ALL= (ALL) NOPASSWDpurl all Magi! DANGER

After the setting is completed, save and exit like vi, the editor will automatically check whether your syntax is correct, if there is an error, press e to go back and modify it. The user can then run the specific command in the format of "sudo+ space + some command". (anonymous)

Enjoy APE in XMMS

APE is a lossless music compression format. Enjoy its high-quality music in XMMS, the media player in Linux, and you need to compile monkey audio plugin For XMMS (this article takes the Fedora Core2 distribution as an example).

First go to the download page http://supermmx.org/linux/mac/ to download the libxmms_mac-0.2.0.tar.gz mac-3.99-linux.tar.gz file, and then start decompressing and compiling (in the command terminal):

# tar xzvf libxmms_mac-0.2.0.tar.gz

# tar xzvf mac-3.99-linux.tar.gz

# cd mac-3.99

#. / configure

If prompted that nasm is missing, load FC2-i386-disc2.iso (or the second system installation disk) and install it:

# rpm-ivh nasm-0.98.38-2.i386.rpm

# make

# sudo make install

# cd plugin

#. / configure

If you find that you cannot find xmms-config, find the xmms-devel installation in FC2-i386-disc4.iso (or the fourth system installation disk) and install it:

# rpm-ivh xmms-devel-1.2.10-2.p.i386.rpm

# make

# sudo make install

At this point, I believe you have a deeper understanding of "what are the skills of linux?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report