Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

copying user accounts

  • 07-04-2004 12:47pm
    #1
    Closed Accounts Posts: 2,485 ✭✭✭


    Just did fresh install of Fedora. I haven't done this in a while so I can't remember what I did last time about copying the user accounts from backup.
    Can I simply cp -p from the backup all the user directories and then copy the /etc/passwd, /etc/group, and shadow passwd files over?
    Or do I have to go back and manually useradd all of them?

    Tanks


Comments

  • Registered Users, Registered Users 2 Posts: 1,186 ✭✭✭davej


    Yes this should work..

    davej


  • Registered Users, Registered Users 2 Posts: 2,763 ✭✭✭niallb


    Be careful when you're doing that.
    There will be system accounts in the passwd files.
    If they have different UIDs on the two boxes, you may run into problems.
    For example, postfix may not be able to write to mail directories because they're now owned by mysql...
    The IDs are chosen by many applications when the application is installed, so if they're done in a different order they don't have to match.

    Take the passwd shadow and group files and edit them down to just the references for your users, then paste them on to the end of the files in the fedora /etc/ directory.

    This problem might also have arisen if you had recreated the user accounts - unless you did them in exactly the same order.

    NiallB


Advertisement