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

The solution to the suggestion of insufficient authority in linux

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

Share

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

What this article shares to you is about the solution of insufficient permission in linux, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

When using terminal commands or installing .deb installation packages in Linux, there is always the problem of insufficient permissions. There are many solutions, which are summarized below.

For the .deb installation package, if you encounter insufficient permissions, you can right-click directly and open it as an administrator

When installing with terminal commands, if you enter apt-get install xxxxx, you will be prompted

Unable to open lock file / var/lib/dpkg/lock-open (13: insufficient permissions) unable to lock the status list directory (/ var/lib/dpkg/), please check to see if you are running as a root user?

The solution is to add sudo in front of it, which is sudo apt-get install xxxxx

When entering commands at the terminal, if you encounter permission problems, there is another solution, that is, to obtain root permissions directly. That is, execute sudo-s at the terminal, and then enter the ordinary user password of the current login to enter the root user mode.

Not only when you enter the installation command at the terminal, you can also enter other commands by adding "sudo" before the command to get the relevant command permissions. For example, when a folder such as usr copies files, you can use sudo cp source target

Related commands preceded by "sudo" are also mobile commands (mv initial address one target address two), delete commands (rm command), delete a file in the usr folder, can not be deleted directly, you can use the command with sudo.

Another example is that when the software installation is incomplete, Linux always prompts you to use the "apt-get check" command to check, but enter the "apt-get check" command in the terminal, saying that you do not have enough permissions. In fact, it needs to be preceded by sudo, that is, "sudo apt-get check".

These are the solutions that suggest insufficient authority in linux, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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