Tag:sudo

  • Sudo operation HDFS deletes the file message sudo: Hadoop: command not found error solution

    Time:2022-2-16

    HDFS uses Hadoop users, but some script tasks are executed in root. At this time, sudo – U Hadoop can be used to switch users to execute Hadoop commands, but the following prompts will be prompted: [[email protected] qingfeng]# sudo -u hadoop hadoop fs -rmr /user/hive/warehouse/xxxxx.db sudo: hadoop: command not found This is because sudo is […]

  • CentOS enable sudo method

    Time:2021-9-25

    1. Add sudo user Execute the visudo command and find:     root    ALL=(ALL) ALL Add the following:     centos ALL=(ALL) ALL 2. Disable root login Edit / etc / SSH / sshd_ configtake     PermitRootLogin yes Change to     PermitRootLogin no 3. Restart sshd:     service sshd reload

  • How to use sudo command in Linux system

    Time:2020-12-9

    “Sudo” Is a very useful tool on the UNIX / Linux platform. It allows the system administrator to assign some reasonable “rights” to ordinary users, so that they can perform some tasks that only super users or other authorized users can complete, such as running some commands such as restart, reboot, passwd, or editing some […]

  • The function and difference between sudo update and upgrade in Ubuntu

    Time:2020-11-19

    At the beginning, the most urgent thing that I want to know about Linux is probably Chinese input method, and the other is how to install software. This article mainly talks about the features of Linux installation software. To install the software under windows, we only need to have the EXE file, and then double-click, […]

  • Explain the usage of Su and sudo commands in Linux system

    Time:2020-5-15

    suName (name)Su – runs a shell that replaces user and group identities Synopsis (Overview)       su [OPTION]… [-] [USER [ARG]…] DescriptionModify the valid user ID and group ID as user        -, -l, –loginMake the shell a login shell        -c, –commmand=COMMANDPass a single command to – C’s shell        -f, –fastPass – F to shell […]

  • Running sudo without password in Ubuntu and CentOS

    Time:2020-1-12

    Execute sudo command without password Is it possible to execute sudo without password under Ubuntu? The answer is yes. In this article, we provide several ways to implement it. Sudo is the basic command to run all commands with “super user rights” in Linux. To grant user sudo access, you need to add the user […]

  • BSD system allows a user to log in and shut down

    Time:2019-9-17

    cd  /usr/ports/security/sudo make install clean; visudo jxtm    ALL=(ALL)       NOPASSWD:/sbin/halt -pThis way jxtm can be added before the commandsudoTo executehalt– p, and no password is required. Add the last line to the user‘s. SHRC sudo /sbin/halt -p In this way, the jxtm account is automatically logged inShutdown了  

  • Operation method of displaying asterisk when Linux sudo password is input

    Time:2019-8-2

    Everyone knows that when we enter the Linux sudo password, the terminal does not display anything. Although this is safe, we do not know whether the password we pressed has been entered or not. If we can display the asterisk when we log in the account password on the website. operation To do this, edit […]

  • Detailed description of the Suo/su authorization command for Linux

    Time:2019-7-23

    Because Ubuntu is a Debian-based operating system, by default, there is no superuser (root), but some system operations must have superuser privileges, such as manual memory release. When encountering some file directories, the current user has no operation rights, it can be achieved through the following two schemes. Let’s go and have a look. The […]

  • Solution to the problem that environment variables cannot be read by sudo command

    Time:2019-7-12

    View sudo‘s limitations through sudo-l: $ sudo -l Matching Defaults entries for xxx on this host: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin User xxx may run the following commands on this host: (ALL : ALL) NOPASSWD: ALL Note that the option Defaults env_reset in the first line means that the environment variables will be reset by default, so […]