Many users encounter problems with normal user permissions when performing Linux system operations, resulting in some system commands not being able to be used, such as reboot, shutdown, etc., it is not difficult to solve this problem, the following small series I will introduce you to the solution that Linux ordinary users do not have permission to use system commands.
Solution:
Here is necessary to use the special permissions linux command: Fu plus suid privileges.
For example, if you log in to the normal user user1 and want to use the reboot command, you will be prompted to run this command.
But if you modify the permissions of the configuration file of this command, you can log in to the normal user to use this command.
First use the root user to log in to the system;
Then type "&"quo reboot”, you will get the absolute path of the reboot configuration file /sbin/reboot
and then add it to /sbin/reboot file permissions S,
chmod 4744 /sbin/reboot
Then switch to user1:su - user1
After you type reboot again, you can execute this command. .
The above is a description of the way Linux common users use system commands. When you encounter such problems, you need to use the permission command suid to modify the permissions of ordinary users.
Today Xiaobian introduces you to the Linux system shutdown and restart commands, the commands involv
Linux is very troublesome to build SVN repository every time. If you implement these through shell s
Eclipse is a Java-based extension development platform. Recently, there have been n
When doing Linux system operations, sometimes you need to back up the web files on
Linux finds the way to replace text content by command.
Linux system iptables error iptables: Protocol wrong how to do?
Introduction to the -path -prune parameter in the Linux find command
Linux use pass to manage passwords
Ubuntu configuration and use of MPI method
How to connect wifi through the command line under Linux?
Linux uses /etc/group file to manage user methods
Linux VirtualBox installation Win8.1 error 0x000000C4 how to do?
What should I do if the Linux system SSH timeout is disconnected?
How does the Linux system distinguish between gmtime and localtime
Win7 64-bit system under the start menu all the program list disappeared how to solve
User version of some Windows 8 shutdown method big summary
Win10 sets the method to turn off the hard disk during standby to save electricity.
What is the Win10 TH2 update card at 44%?
Why can't I read the computer in my 8g memory card?
Need to activate after upgrading win10 for free? Is there a charge for win10 activation?
The black screen processing method after WinXP genuine verification fails
What should I do if the Win10 system disk drive letter is lost?