Attribute copying problem with "useradd"

Sam Sharpe lists.redhat at samsharpe.net
Wed Oct 6 21:06:58 UTC 2010


On 6 October 2010 21:46, Chris Tyler <chris at tylers.info> wrote:
> One of my students showed up with an intriguing issue yesterday. They
> added a /home filesystem to their F13 installation, and now "useradd"
> fails to completely copy /etc/skel for new users -- it stops copying
> with an error on setting attributes on ~/.gnome2
>
> I've looked under the normal rocks and haven't found anything unusual
> yet:
> * strace shows that the error occurs when attempting to set extended
> attributes (presumably facls and selinux context) on the copied file(s)
> * it's not SELinux -- switching to permissive mode has no effect
> * the /home filesystem is ext4 and mounted with no unusual options
> ("defaults" in 4th column of /etc/fstab -- mount shows the options as
> "(rw)" only).
> * reformatting the filesystem does not clear the problem - whether ext3
> or ext4, a freshly-created filesystem shows the same issue
> * umounting /home clears the problem - useradd can copy the /etc/skel
> files to the / filesystem just fine (/ is also an ext4 filesystem)
>
> I'm missing something -- what else should they check out?
>

Try mounting it with defaults,acl and see if that allows you to set
the extended attributes?

--
Sam


More information about the users mailing list