Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173862

Re: Permissions for an entire PARTITION

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: Permissions for an entire PARTITION
Date 2016-10-26 14:30 +0200
Message-ID <swvvc-3zX-31@gated-at.bofh.it> (permalink)
References <swbZw-7sf-27@gated-at.bofh.it> <swcVA-86H-13@gated-at.bofh.it> <swrBg-10U-7@gated-at.bofh.it> <swupr-2Sj-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Synchronizing your user account's UID across all of your own local
operating system installations is probably easier than most of the
workarounds that have been suggested.  There may not even be any
work required -- if you've always just followed the defaults, then
your primary user account is probably UID 1000 on every system, and
you're done.

If one of the systems has your UID as something else, you can logout,
login as root, change the UID in /etc/passwd, then chown every file
that you owned to the new UID.  For example, using find:

cd /each/file/system/one/at/a/time
find . -xdev -user 500 -exec chown 1000 {} +
cd /the/next/file/system
find . -xdev -user 500 -exec chown 1000 {} +
etc.

(I would not recommend trying it as one gigantic find from / because
of the file systems like /sys and /proc, which should probably be
skipped.  It's easier to do it the way I showed.)

(If the user had any long-running jobs, they should be killed and
restarted under the new UID.  Logging out *probably* gets most of them
under most circumstances, but you never know.  When in doubt, reboot.)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Permissions for an entire PARTITION Richard Owlett <rowlett@cloud85.net> - 2016-10-25 17:40 +0200
  Re: Permissions for an entire PARTITION Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-25 17:50 +0200
    Re: Permissions for an entire PARTITION <tomas@tuxteam.de> - 2016-10-25 18:10 +0200
    Re: Permissions for an entire PARTITION Richard Owlett <rowlett@cloud85.net> - 2016-10-25 18:40 +0200
      Re: Permissions for an entire PARTITION Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-25 18:50 +0200
        Re: Permissions for an entire PARTITION Richard Owlett <rowlett@cloud85.net> - 2016-10-28 17:30 +0200
          Re: Permissions for an entire PARTITION Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-28 17:50 +0200
          Re: Permissions for an entire PARTITION Jörg-Volker Peetz <jvpeetz@web.de> - 2016-10-28 21:40 +0200
            EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Richard Owlett <rowlett@cloud85.net> - 2016-10-28 22:50 +0200
              Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] "John L. Ries" <jries@salford-systems.com> - 2016-10-28 23:10 +0200
              Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Brian <ad44@cityscape.co.uk> - 2016-10-29 00:20 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Richard Owlett <rowlett@cloud85.net> - 2016-10-29 01:40 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Reco <recoverym4n@gmail.com> - 2016-10-29 11:20 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] rhkramer@gmail.com - 2016-10-29 14:20 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Reco <recoverym4n@gmail.com> - 2016-10-29 15:00 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Brian <ad44@cityscape.co.uk> - 2016-10-29 16:10 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Reco <recoverym4n@gmail.com> - 2016-10-29 17:50 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Brian <ad44@cityscape.co.uk> - 2016-10-29 20:20 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Reco <recoverym4n@gmail.com> - 2016-10-29 22:30 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Brian <ad44@cityscape.co.uk> - 2016-10-30 00:50 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Reco <recoverym4n@gmail.com> - 2016-10-30 10:30 +0100
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Brian <ad44@cityscape.co.uk> - 2016-10-30 14:00 +0100
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] rhkramer@gmail.com - 2016-10-30 14:20 +0100
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Brian <ad44@cityscape.co.uk> - 2016-10-30 18:10 +0100
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] rhkramer@gmail.com - 2016-10-29 21:30 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Brian <ad44@cityscape.co.uk> - 2016-10-29 22:00 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] rhkramer@gmail.com - 2016-10-29 22:30 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Brian <ad44@cityscape.co.uk> - 2016-10-30 01:10 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] rhkramer@gmail.com - 2016-10-30 01:20 +0200
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] Lisi Reisz <lisi.reisz@gmail.com> - 2016-10-30 13:00 +0100
                Re: EUREKA!!!! - was [Re: Permissions for an entire PARTITION] David Wright <deblis@lionunicorn.co.uk> - 2016-10-31 02:30 +0100
          Re: Permissions for an entire PARTITION Jochen Spieker <ml@well-adjusted.de> - 2016-10-29 15:30 +0200
      Re: Permissions for an entire PARTITION Jochen Spieker <ml@well-adjusted.de> - 2016-10-25 19:40 +0200
      Re: Permissions for an entire PARTITION <tomas@tuxteam.de> - 2016-10-26 10:20 +0200
        Re: Permissions for an entire PARTITION rhkramer@gmail.com - 2016-10-26 13:20 +0200
          Re: Permissions for an entire PARTITION Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-26 14:30 +0200
            Re: Permissions for an entire PARTITION <tomas@tuxteam.de> - 2016-10-26 14:50 +0200
            Re: Permissions for an entire PARTITION Tixy <tixy@yxit.co.uk> - 2016-10-27 07:50 +0200

csiph-web