In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the method of enabling ubuntu10.04 root account". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Methods:
$sudo gedit / etc/gdm/custom.conf
For example, mine is:
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root
TimedLoginEnable=true
TimedLogin=root
TimedLoginDelay=5
If you restart it, you will find that you have logged in to Ubuntu using root.
Note: if you don't have a file, you can create a new one. I found that you don't have this file if you use Alternate 10.04.
Also, root must be unlocked. Ubuntu turns off root by default and opens root with the sudo passwd root command.
Custom.conf is a read-only file and cannot be modified. Here is how to modify the file properties.
The first character specifies the file type. In a general sense, a directory is also a file. If the first character is a dash, it represents a file that is not a directory. If it's d, it means it's a directory. The second paragraph is the attribute of the file owner, the third paragraph is the attribute of the group to which the file belongs, and the fourth paragraph is the attribute for other users.
You can view directory information by ls-l
-rwxr-xr-x 1 xura xura 1753786 2010-05-09 09:54 Grad
The corresponding ones are:
File attribute connection number of file owner group file size file modification time file name
For example:
D rwx rmurx rmurx
The first character specifies the file type. In a general sense, a directory is also a file. If the first character is a dash, it represents a file that is not a directory. If it's d, it means it's a directory. The second paragraph is the attribute of the file owner, the third paragraph is the attribute of the group to which the file belongs, and the fourth paragraph is the attribute for other users.
Three commands:
(1) chmod- > modify file permissions
(2) chgrp- > modify the group to which the file or directory belongs
Syntax: chgrp [option] group filename?
This command changes the user group to which the specified file belongs. Where group can be the user group ID or the group name of the user group in the / etc/group file. The file name is a list of files to be changed to the group separated by spaces, and wildcards are supported. If the user is not the owner or superuser of the file, you cannot change the group of the file.
Parameters:
-R recursively changes the grouping of the specified directory and all subdirectories and files under it.
Example 1$ chgrp-R book / opt/local / book
Change the group of all files in / opt/local / book/ and its subdirectories to book.
(3) chown-> change the owner and group of a file or directory
Eg:#chown-R xura ubuntu9.04- > change the user of the ubuntu9.04 directory to xura
Syntax: chown [options] user or group files
Description: chown changes the owner of the specified file to the specified user or group. The user can be a user name or user ID. A group can be a group name or a group ID. Files are a list of files to change permissions separated by spaces, and wildcards are supported.
Parameters:
-R recursively changes the owner of the specified directory and all subdirectories and files under it.
-v shows the work done by the chown command.
Example 1: change the owner of the file shiyan.c to wang.
$chown wang shiyan.c
Example 2: change the owner of the directory / his and all the files and subdirectories under it to wang and the group to users.
$chown-R wang.users / his
This is the end of the content of "how to enable ubuntu10.04 root account". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.