Start Apache service unexpectedly prompt permission is not enough, with SU switch, enter password hint authentication failed, this is done, and then once the original Ubuntu installed, root user is locked, not allowed to log in, and do not allow Su to root, For desktop users this may be to enhance security, but the server version of this is not true, and quickly set it down.Under Terminal[email protected]:
When working with such problems, the server needs to switch from root to PostgreSQL to install the user to start the PostgreSQL service.The switch user and start PostgreSQL commands are as follows:# Switch to Pgsql user su postgres# starting Pg_ctl start -bash:pg_ctl:command not foundHint that the PG_CTL command does not exist, but it is certain that the previous installation of PostgreSQL is so started, how can not this time.Later learned that the or
#su [OPTION] USERNAME switch users[OPTION]-Change the current working environment PWDNull default switch to root userBy default, SU only switches paht and users to username and does not change pwd. Use-and landing in username is essentially the same.#sudo [OPTION] COMMANDA user executes a command from a host with the permission of another user without switching users.[OPTION]-L lists all sudo class commands
ubuntu with Su switch, enter the password prompt authentication failed, after review originally installed in Ubuntu, the root user is locked by default, do not allow login, and do not allow Su to root, for desktop users this may be to enhance security. Under Terminalsudo passwdPassword: Enter New UNIX Password: Retype new UNIX Password: passwd: Password has been successfully updatedUbuntu with
Some of the problem-solving approach is not very troublesome, but if you can't find a way, will always drag there waste time, so if there is just one article to solve this problem, you can save a lot of time.Under the newly installed Ubuntu system, I am 14.0.4 do not know whether other systems will be the same problem. When you enter the SU command to get root permissions, there is aThe problem with authentication failure is that authentication fails.
Article Title: Linux limits users to switch from SU to other users. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. If you do not want some people to use the "su" command to become root or switch to another user, in the "/etc/pam. d/
Troubleshooting of Logon failures when su switches to sqlplus in Oracle, oraclesqlplusProblem description:The oracle database in the production environment suddenly fails to log on, and the oracle database in the rlwrap production environment suddenly fails to log on. rlwrap sqlplus "/as sysdba" reports the following error: rlwrap[Oracle @ localhost root] $ rlwrap sqlplus "/as sysdba"Rlwrap: warning: your $ TERM is 'xtermin' but rlwrap couldn't find i
Linux login non-login shell and su, sudo related concepts, linuxlogin1. login non-login shell
In Linux, the kernel will create the init process to perform a series of system initialization operations. When a user logs on to the shell, the related logon configuration files are read from both the pseudo-terminal Logon: ssh, the X11 console, and the tty console. Linux has two types of Logon shells: login and nologin:
Login shell: Required for shell l
Because the root user has full operation permissions on the system, in order to avoid some mistakes, we recommend that you log on to the system as a general user. if necessary, you need root operation permissions, then, run the "su-" command to log on as the root user. Generally, you can log on as the root user to configure the system as administrator by executing the "su-" command and entering the correct
The difference between Su and sudo is not clear, and it is often compiled recently.ProgramAnd now I want to write down the differences between them and learn from them.
Difference between Su and sudo:1. Commonalities: root user permissions;2. Differences: su only obtains the root permission, and the work environment remains unchanged. The user's work environment
For Linux users, you can use the su and sudo commands. The Use Cases of these two commands are different.Su if your current identity is root, you can use the su command to switch to any other user (without a password), as shown below:
[root@lx200 ~]# su - oracle[oracle@lx200 ~ ]$ If your current identity is not root (a common user) and you want to switch to root
#id/whoami View Current userSU Switch User#su-username"-" function, plus after initializing the various environment variables of the current userSwitch environment variables. No-change the past, the directory will not change, the path will not changeComparisons are as follows:Su aming123[Email protected] root]$ pwd/root[Email protected] root]$ echo $PATH/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin[[email protected] root]$ lsL
Tags: ROC service Relationship General hints Complex add ADO workRoot users have the supremacy of the right, then our OPS personnel is not directly under the root user to deal with all problems? The answer is no, the greater the power, the greater the responsibility, the person will be wrong, so we have to do without prejudice to our work, as far as possible to limit our power, so as to avoid accidental operation caused disasterOne-su command---switch
Linux study notes -- usage and differences of su and sudo commands
Abstract: This article mainly introduces the functions of the su and sudo commands and the differences between them. And usage
I. Differences between the two
Su is used for switching between users.
Sudo is used by common users to execute specified commands with the root permission.
II. Introduct
Typically, the average user enters the correct rootpassword by running the "Su-" command. Ability to log on as the root user for administrator-level configuration of the system.But. In order to further enhance the security of the system, it is necessary to establish a group of administrators, simply agree to this group of users to run the "Su-" command to log on as the root user. Users of other groups canno
sudo :Su:switch UserUser Switching in two ways:(1) su-user, su-l user(2) SU usersu-c ' COMMAND ' do not switch the user's identity, execute the commandsudo : (as if running as Administrator on window) executea command as another user , executing the specified one as another user ;CommandAuthorization mechanism implementation:Authorization file,/etc/sudoersUse of
360 one-click root su analysis and 360rootsu Analysis
Today, a colleague asked me why 360 of the su permission is 755.
I did not pay attention to this detail before. I checked my mobile phone and used the 360root su.
Since there is no SUID or SGID permission, how does one access things under the root user.
So I spent some time studying it. 360 was mainl
In general, the average user can log on as the root user to configure the system at the administrator level by executing the "Su-" command and entering the correct root password.However, in order to further enhance the security of the system, it is necessary to establish a group of administrators, only allow users of this group to execute the "Su-" command to log on as the root user, and let other groups of
In the previous two sections, we introduced the basic knowledge of users and user groups and how to manage users and user groups. Next let's take a look at other user-related commands.Finger tool for viewing user informationChfn tool for changing user informationId: view the UID, GID, and user group of the user.Su User Switching ToolSudo uses another user to execute commands (execute a command as another user), su is used to switch users, and then the
sudo: 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 defaults to the root account when no account
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.