Bug 673241 - adduser fails with copydir() preserving permissions...Operation not supported error
Summary: adduser fails with copydir() preserving permissions...Operation not supported...
Keywords:
Status: CLOSED DUPLICATE of bug 673091
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: shadow-utils
Version: 5.6
Hardware: i686
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Peter Vrabec
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-27 19:45 UTC by David Steiner
Modified: 2011-02-09 16:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-09 16:28:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Steiner 2011-01-27 19:45:36 UTC
Description of problem:

when adding a user, adduser fails with the following error:

copydir(): preserving permissions for /home/people/my_test/public_html: Operation not supported

Version-Release number of selected component (if applicable):

2:shadow-utils-4.0.17-18.el5.i386

How reproducible:

Fully reproducible.

Steps to Reproduce:
1.# groupadd -f -g 5000 my_test
2.# useradd -c "test account" -m -d /home/people/my_test -u 5000 -g 5000 my_test
  
Actual results:

copydir(): preserving permissions for /home/people/my_test/public_html: Operation not supported

The user's home account is created but the /etc/skel/.mozilla directory is not copied to the home account.

Expected results:

no error message and all files/directories from /etc/skel should be copied to the new home dir.

Additional info:

Worked in correctly in 2:shadow-utils-4.0.17-15.el5.i386

The home directory is being created on an NFS share. The error does not occur when the home directory is on a local disk.

Contents of /etc/skel:

# ls -laZ /etc/skel
drwxr-xr-x  root root system_u:object_r:etc_t:s0       .
drwxr-xr-x  root root system_u:object_r:etc_t:s0       ..
-rw-r--r--  root root system_u:object_r:etc_t:s0       .bash_logout
-rw-r--r--  root root system_u:object_r:etc_t:s0       .bash_profile
-rw-r--r--  root root system_u:object_r:etc_t:s0       .bashrc
-rw-r--r--  root root system_u:object_r:etc_t:s0       .emacs
drwxr-xr-x  root root system_u:object_r:etc_t:s0       .mozilla
drwxr-xr-x  root root                                  public_html
-rw-r--r--  root root                                  .zshrc

Content of "failed" home dir:

# ls -laZ ~my_test/
drwx------  my_test my_test                                  .
drwxr-xr-x  root    root                                     ..
-rw-r--r--  my_test my_test                                  .bash_logout
-rw-r--r--  my_test my_test                                  .bashrc
-rw-r--r--  my_test my_test                                  .emacs
drwxr-xr-x  my_test my_test                                  public_html
-rw-r--r--  my_test my_test                                  .zshrc

Probably related to this change (from 2:shadow-utils-4.0.17-18.el5.i386 changelog)

* Fri Sep 24 2010 Peter Vrabec <pvrabec> 2:4.0.17-16
- faillog does not print entries for all users
- fix integer underflow in faillog
- maximum size of groupname and username is 32 characters
- japanese man page fix
- support extended ACL's on files and directoris under /etc/skel
 Resolves: #619713, #603692, #586861, #537011, #513055

Comment 1 wstearns 2011-01-27 21:54:21 UTC
This bug may be related to bug 673091: https://bugzilla.redhat.com/show_bug.cgi?id=673091

Comment 2 Peter Vrabec 2011-02-09 16:28:09 UTC

*** This bug has been marked as a duplicate of bug 673091 ***


Note You need to log in before you can comment on or make changes to this bug.