Http://www.uplook.cn/index-Index-show-view15192.html The default accounts for most Linux distributions are regular users, and changing system files or executing certain commands requires root, which requires switching from the current user to the root user. The commands for switching users in Linux are Su or Su-. The day before yesterday when I used the useradd command, I realized the essential difference b
The su command is used to switch to another user identity. If "user" is ignored when su is used to switch identities, the system switches to the "root" identity by default and requires a password. When switching from the root user to another user, you do not need to enter the password. Otherwise, you need to enter the password of the corresponding user. If the-or-l or -- login parameter is added to a new us
Linux command SU performs the following errorSu:cannot set Groups:operation not permitted
This error was said on the Internet because the/bin/su file was canceled, so the solution was chmod a+s/bin/suI still can't use the SU command after I execute the command,View details of the/bin/su file[Root@gc03vm12 ~]# Ll/bin/
Under normal circumstances, if I want to switch to root can be directly with sudo-i and then enter the password login root, but today read the textbook said Linux is used su-root switch, so the hand cheap try, and then appeared su:authentication failure error hint , and then online search to find solutions, as follows:
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd:password updated successfullyAfter the success of th
The biggest essential difference between the su command and the su-command is that su only switches the root identity, but the Shell environment is still the Shell of ordinary users; the su-connected user and the Shell environment are switched to the root identity. The PATH environment variable error does not occur onl
The following error occurs when executing the su command in Linux:Su: cannot set groups: operation not permitted
This error is reported on the internet because the S bit of the/bin/su file is canceled, so the solution is chmod A + S/bin/Su.After executing the command, I found that the su command is still unavailable,View Details of the/bin/
Http://www.ha97.com/4001.htmlThe most essential difference between the SU command and the Su-command is that the former simply switches the root identity, but the shell environment is still the shell of the normal user, and the user and the shell environment are switched to root. The PATH environment variable error does not occur unless you switch the shell environment. After the
The commands for switching users in Linux are Su or Su-.The most essential difference between the SU command and the Su-command is that the former simply switches the root identity, but the shell environment is still the shell of the normal user, and the user and the shell environment are switched to root.After switchi
In the shell, if you need to switch users, and then run some commands as a specified user,
For example, you need to write a line of "Oracle_base=/oracle/app" to a. bash_profile file with an ORACLE user.
You can use the following statement
Su-oracle
echo "Oracle_base=/oracle/app" >> bash_profile
Exit
!
About Su and Su-the difference between
Switching user
Tags: logo home super div user run pos switch promptsudo: temporarily switch to Superuser mode to perform superuser privileges, prompting for a password that is the current user's password, not the password for the super account. However there is a time limit, Ubuntu defaults to 15 minutes for one time.SU: Switch to a certain user mode, prompted to enter the password when the password is Switched account password, the use of "SU account name." If the
Simply use 'su 'to switch to the root identity,The read variable is set to non-login shell. Many original variables will not be changed.To completely switch to the new user's environment, you must use 'Su-username' or 'Su-l username' to use the login-shell method. Will be converted into the environment of new users together with the path/user/mail variables; ther
Tags: nbsp non-interactive login intro pre bre interface style colthe difference between Su-and Su--Interactive logon and non-interactive login
First, Brief introductionInteractive : Enter the account password directly through the terminal login, etc.variables, aliases, etc. won't inherits from the previous shell, it will be re-read non-interactive : Open terminal under graphical interface, execute
Source: http://bbs.csdn.net/topics/390938651sudo: temporarily switch to Superuser mode to perform superuser privileges, prompting for a password that is the current user's password, not the password for the super account. However there is a time limit, Ubuntu defaults to 15 minutes for one time.SU: Switch to a certain user mode, prompted to enter the password when the password is Switched account password, the use of "SU account name." If the system d
1.su and sudo do not switch working directory and environment variables, just give user permissions,And Su-is really switch to root login, working directory switch to/root, environment variable also change.[[email protected] home]# su carlton[[email protected] home]$ pwd/-~]# pwd/rootThe password used by 2.sudo originates from the user3.sudo Execution ProcessChec
Su Can only switch to administrator user permissions, without the Administrator's login script and search pathSu-not only can switch to administrator permissions, but also use the administrator login script and search path
Instance:
$ PWD/home/Deron (current user directory) $ su # PWD (view path again)/home/Deron (or current user directory)
However, if you change to S
Replace with command:#!/bin/bashpvar= ' subvar= "Hello Shell"; Echo $subvar ' echo $pvar
Run Output:::
$./subandp.shhello Shell
The command that executes the command substitution (two anti-single quotes) is also done in the child shell.
Using Named pipes:#!/bin/bashmkfifo-m 777 Npipe ( subsend= "Hello World" echo "$subsend" > Npipe ) Read Pread
Run output:[Email protected]:~/shell$./var.shhello WorldAbout the famous pipe creation c
After Su to root was used just now, an error occurred when running the command gedit:
(Gedit: 7932): eggsmclient-warning **: failed to connect to the Session Manager: none of the authentication protocols specified are supported
**Glib-gio: Error: gdbusconnection. C: 2270: initable_init: assertion failed: (connection-> initialization_error = NULL)
Abandoned (core dumped)
The reason is:
Su Can only switc
Tags: command su sudo3.7 su command :su Command is used to switch users, for example I want to switch from root user to user2 User: 650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/A7/18/wKioL1ngeKGz1MzHAAEc5cC8kHA232.png "style=" float : none; "title=" linux su command, sudo command and limit root telnet
I. Using the SU command to temporarily switch user Identities 1, SU's applicable conditions and Power SU command is to switch User's tool, how to understand it? For example, we use ordinary user Beinan login, but to add user tasks, execute useradd, Beinan the user does not have this permission, and this permission is exactly the root of the own. Solution cannot have two, one is to exit Beinan userI. Using t
Differences between linux su and sudo commands: linuxsusudo commandsI. Use the su command to temporarily switch user identities1. Conditions and power of su
The su command is a tool for switching users. How can this problem be solved? For example, if we log on as a normal user beinan, but want to add a user task and ex
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.