|
|
|
|
|
by stabbles
991 days ago
|
|
The suggestion there (uid = gid = 1000; uname = user; gname = users) isn't great. Just use uid = gid = 0, and omit uname/gname. If you're distributing software via a tarball, the uid/gid bits are meaningless. They only make sense when you archive / backup a directory and plan to extract on the same system. If you set them to anything other than 0, it may happen that when the tarball is extracted as root user, ownership is changed to the uid/gid of the tarinfo provided those exist on the system. That's a lot of fun! Python itself in fact tries to chown files when extracting a tarfile (under sudo). If you set uid = gid = 0, then at least when extracting as root, the files remain owned by root. |
|