RHEL5.6useradd bug Solution

Source: Internet
Author: User
System: RHEL5.6x64 specific scenario: Oracle was installed on a new machine yesterday, new partition/dev/sda7, mounted to/u01, and found when useradd, the following error occurs when useradd-d/u01/app/oracleoracle: copydir (): preservingpermissionsfor/u01/app/oracle /. mozilla: Operationno

System: RHEL5.6 x64

Specific scenarios:

Yesterday, Oracle was installed on a new machine, and the new partition/dev/sda7 was mounted to/u01. Then, when useradd was found, the following error is reported when useradd-d/u01/app/oracle is used.

Copydir (): preserving permissions for/u01/app/oracle/. mozilla: Operation not supported

At first, I thought it was an ISO problem. Today I changed an ISO problem, but there was no such problem on RHEL5.5. A problem occurs. It must be a new mount area. This problem will not occur if/home is located in.

After Google found that there was a solution on the bugzilla of RedHat. The method is as follows:

1) According to the error message, it is caused by the ACL mechanism. There are two feedbacks on bugzilla, which provide a temporary solution.

Https://bugzilla.redhat.com/show_bug.cgi? Id = 673241
Https://bugzilla.redhat.com/show_bug.cgi? Id = 673091
 
Use remount: mount/u01-o remount, user_xattr, acl
 
Change the default mount options of/home:
Ext2/3: tune2fs -O user_xattr, acl
Ext4: tune4fs -O user_xattr, acl

2) Update Patches
If you are a business user of RHEL, you can update it through RHN.
If CentOS is used, it can also be updated through the official source of CentOS.
Or go to ftp.redhat.com:/pub/redhat/linux/enterprise/5 Server/en/OS/SRPMS to find the src. rpm package of shadow-utils and compile it into an rpm package. The src package of shadow-utils-4.0.17-18.el5_6.1.src.rpm should be used.

Select the compilation parameters based on your system architecture.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.