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/
Difference between su and su-commands I used to use root directly and seldom use su. only a few days ago I found that su and su-commands are essentially different! Most of the default accounts of www.2cto.com Linux distributions are normal users. to change system files or ex
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
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
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
Original URL: http://www.ha97.com/4001.htmlI have been accustomed to direct use of root, rarely use Su, only a few days ago found Su and Su-command is an essential difference!The default accounts for most Linux distributions are normal users, and changing the system files or executing certain commands requires root, which requires switching from the current user
The default account for most Linux distributions is ordinary users, and changing system files or executing certain commands requires root, which requires the switch from the current user to the root user, the command for switching users in Linux is Su or Su-, below the SU command and Su- Command the most essential diff
Open a Command WindowInput command: sudo passwd rootThen follow the steps in.The differences between the Su and SU commands: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 t
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/
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
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
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
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
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
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.