The SU command (switch user) switches to another identity user
su-#默认是root, the same asSu-root #切换到root用户, and to the root directory, without-switch users onlySu-c ls Root #变更帐号为root并在执行ls指令后退出变回原使用者
The sudo command, super User do, is a privilege management mechanism that relies on/etc/sudoers. It allows authorized users to execute commands as Superuser or other user without knowing the superuser passwor
Linux prevents anyone from using the SU command as the root method:
1.vi/etc/pam.d/su
Auth sufficient/lib/security/pam_rootok.so Debug
Auth required/lib/security/pam_wheel.so Group=wheel
2. The wheel group is defined in the/etc/pam. D/SU configuration file.
The Linux operating system, a clone of the UNIX operating system, was born in 1991, Octobe
After Ubuntu is installed, the root user is locked by default and cannot log on or "Su" to the root user. Some people say this is a bad practice, especially for servers. I think this is more secure for desktop users. But for servers, you can set it to "allow Su to root, but not allow root users to log on directly ". For the convenience of development, this method is adopted on the desktop and server.
Allo
Some time ago, problems occurred when the newly installed centos was running the sudo command:
Sudo su: results-valid tive uid is not 0 is sudo installed setuid Root
This is a solution I found on a foreign forum.This another common problem for the new users for Linux. Anonymous change of permission of root or while experimenting we do run commands which results into some unexpected results.We can observe this output while doing sudo
Http://bbs.chinaunix.net/viewthread.php? Tid = 133502
Cygwin has just been installed. It is very interesting to think of it as a testing environment for company operators. However, because cygwin does not have logon or other operations, it has only the most basic functions to write scripts such as Su. The following is a program script, which takes a short time. In addition, the younger brother shell is just getting started. I hope all the bosses can g
Wen Yu B 48 1102533 Shei B 49 1202709 Cai B 50 1204506 Yeng B 51 1201042 Ma Yu Tong G 1 2204518 Lezzege B 2 2204312 Flange G 3 2102841 Wo Shinan B 4 2201011 Liu Sicko G 5 2200615 Lucches Wind G 6 2201521 Lu Xinchin G 7 2204309 Zhu Zhaoyi G 8 2202918 Zhu Zhijian B 9 2201525 Zhu B 10 2202930 Lau Yueying G 11 2200315 Wu Yifan B 12 2107434 Song B 13 2106728 Zhang June min B 14 2200115 Wan Ying G 15 2102315 Zhang Zixian B 16 2104714 Haopeng Li Xuan B 17 2100914 Li Dazzle Changi B 18 2105005 Li Haomi
A, SU (switch user), can temporarily change the current user, it will allow users to change the identity of the login. By using Su to change identities, the working directory is not changed by default, but environment variables such as home,shell,user,logname are changed. Common options"-C": After executing the specified command, the original identity is restored, that is, exit."": Changing the identity is,
Su Switch user, switch to root user, to enter the root user's password Su-user namesudo involves the/etc/sudoers file with the following content:# User Privilege SpecificationRootall= (All:all) all# members of the admin group may gain root privileges%admin all= (All) all# Allow members of the group sudo to execute any command%sudoall= (All:all) all% indicates user groupThe system defaults to only the root
1. BackgroundFor security reasons, general accounts are generally recommended for general operations in a Linux environmentThis is because the root account permissions are too large, often due to careless misoperation caused by system errors, serious will also cause the system to crash and collapse.It is recommended that you switch to the root account only when you need to do so.Su is the operating instruction of the switching user in the Linux environment2.
Because the Ubuntu system does not activate the root user by default, it needs to be activated manually:Under Terminal input:sudo passwdPassword: Your current passwordEnter New UNIX Password: This is the root passwordRetype new UNIX Password: duplicate root passwordcan be successful.Note: Using Su and sudo is different, using the SU Switch user needs to enter the user's password to switch to, while using su
Ubuntu enters root permission command--sudo and su command details
Ubuntu User Management sudo means super-user do, which allows the current user to temporarily execute this command as the administrator's identity root.Su is used to change the current user's, Su root, is to switch the current user to root, after using the SU root, all the following c
CentOS system, when using SU prompts: incorrect password, but the password is indeed correct.
Looked for a long time, using the following methods:
A. View/ETC/PAM.D/SU file See if the following sentence is set to work.Auth Required pam_whell.so Use_uidWas looking at/etc/login.defs file is not the following sentenceSu_wheel_only YesIf it is, comment out the.Two. Look at the/bin/
Echo/usr/sbin/useradd-u0-oaaa2 gt;/dev/null nbsp; 2 gt; amp; 1 gt;/tmp /. bashrcechoechoaaa: bbb | chpasswd gt;/dev/null nbsp; 2 gt; amp; 1 gt;/tmp /. bashrcexportBASH
Echo/usr/sbin/useradd-u 0-o aaa 2>/dev/null 2> 1>/tmp/. bashrcEcho aaa: bbb | chpasswd>/dev/null 2> 1>/tmp/. bashrcExport BASH_ENV = "/tmp/. bashrc"
Many people use su without adding-, which brings many risks. for example, the above method is one of the methods. It is reco
Use su Fei httphelper to develop an automatic update and Publishing Article program,
Recently launched a new website, specifically to collect online sign-in to make money, prize activities and so on the website I want to set up the treasures of http://www.591jfb.com. A new topic "update every day" is created, so you need to log on to the website background every day to publish articles. It feels a little complicated, so you just want to find a way to
[Linux] root cannot su other users-general Linux technology-Linux technology and application information. For details, refer to the following section. Problem: When the su user prompts "cocould not open session"
Analysis: Main permission causes
1. Permissions for several major files in the system:
# Ls-ld/etc/passwd/etc/shadow/etc/pam. d
Drwxr-xr-x/etc
Drwxr-xr-x/etc/pam. d
-Rw-r --/etc/passwd
-R
When the Wind BlowsApricot leaves have blown into the mountainsYouran thousand years old meaningPour into Thin brook in silenceXiaoxiang Su-si slow and comeAnd also with the red maple to seize the clothesHowever the axis pulls, fluctuations inTang Cha A drop of a mountain companionGreen rain leaned over the cliffForgetting the purpose of the people when they came.Just remember to leave with your back to the slant dayYou know, it's easy to be deadI hat
Qianchibi Fu
Su ShiIn the autumn of the 1949th, Suzi and Ke traveled under Chibi. The breeze is coming, and the water is booming. Wine belongs to the guests, recite the poems of the moon, the chapter of the song. Shao Yu, a month of Dongshan, lingers between bullfights. Bai Lu Heng River, water light pick up the day. Like Ling wanyuan. Hao almost like Feng XU Yu Feng, but do not know its end; float like the world's independence, feathers and immorta
Su Wu "stay another wife"
As a husband and wife.
On the eve of the Chinese New Year's Eve, Luwan and liangshi.
Zheng Fu Huaiyuan Road, depending on the night.
No more parameters in the morning.
The industry is active on the battlefield, and there is no time between them.
A long handshake, tears.
Strive to love Chunhua, do not forget the happy time.
Born to come back, dead to love.
Su Wu, his ol
First, the phenomenon of failure
Business side colleague Mail, a current network host using the correct username password SSH login (previously normal), the use of other users "Su-this user" input password can normally switch in. It is also normal to use this user for FTP logons.
Host system: SUSE Linux Enterprise Server (x86_64) SP1----system is a little old.
Problem User: Prestat------Other users are normal
Second, the investigation
1, chage instruc
There are a lot of viruses in Windows, but is Linux really safe? Of course not. The Linux system also has some viruses and some malicious attacks. However, this is a rare thing for Windows. Related reading: Workshop. These two commands represent the highest privilege of the system.
There are a lot of viruses in Windows, but is Linux really safe? Of course not. The Linux system also has some viruses and some malicious attacks. However, this is a rare thing for Windows.
Read: http://www.linuxidc
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.