Search

Foivos.Zakkak.Net
Foivos.Zakkak.Net
  • Home
  • Courses
  • Tutorials
  • Experience
  • Publications
  • CV
  • Light Dark Automatic
  • Tutorials
  • Changing user id in linux
  • Changing user id in linux

    As a different user execute

    usermod -u  username
    find / -user ; -exec chown -h ; {} \;
    

    example:

    usermod -u 2179 user1
    find / -user 1000 -exec chown -h 2179 {} \;
    
    tutorial
    Previous
    How to create local git repositories
    Next
    Mounting remote folders with sshfs

    Last updated on 2021-11-24

    Except as otherwise noted, this work is licensed under CC BY 4.0, and code samples are licensed under the MIT License.

    Published with Wowchemy — the free, open source website builder that empowers creators.

    Cite
    Copy Download