Results 1 to 5 of 5

Thread: Getting back file permisssions

  1. #1
    Join Date
    Mar 2011
    Location
    India
    Posts
    303

    Default Getting back file permisssions

    I recently tried CentOS & used my existing Home directory. Since then file permissions have changed. Now the owner of the folders are "500 - user #500". No matter what cant change back to my username, its not selectable.

    Please reply.
    openSUSE Leap 15
    You aren't rich until you have something that money can't buy.

  2. #2
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Getting back file permisssions

    have you tried
    Code:
    su -c "chown -R yourname:users  /home/yourname"
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  3. #3
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Getting back file permisssions

    Of course, make a backup first
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,890

    Default Re: Getting back file permisssions

    Quote Originally Posted by suse_kid View Post
    I recently tried CentOS & used my existing Home directory. Since then file permissions have changed. Now the owner of the folders are "500 - user #500". No matter what cant change back to my username, its not selectable.

    Please reply.
    And apart from swerdna'a advice, you do not seem to understand what happened. The permission of those files did not change at all. After all you simply mounted that existing file system with all that is in there and nothing in the contents is changed.

    What changed is that you now use a different user. The userid on your CenOS system was 500. When you create a new user on openSUSE, they start by default with 1000. And I gues this user you are talking about now has userid 1000. This userid is regardless of the username you have geiven to it (and that most probably was the same on both systems). The usernames (and the same is for group names) are only easy to remember names that in reality are numbers. And the numbers count.

    Thus your user 1000 is not the owner of all the files in /home under user <username>, because they are owned by user 500. Which has no name attached in your openSUSE, thus the number is shown in all sorts of lists you look at.

    I also guess that by "No matter what cant change back to my username, its not selectable.", you mean that you tried to change as the user. Of course you can not do this as the user. User A can not change things that are owned by userB. You must be root. And swerdna gave you the command to do this.
    Henk van Velden

  5. #5
    Join Date
    Mar 2011
    Location
    India
    Posts
    303

    Default Re: Getting back file permisssions

    Done !!! Thanks
    openSUSE Leap 15
    You aren't rich until you have something that money can't buy.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •