How to stop permissions on data partition being changed on boot?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its owner, and symlink to the appropriate locations on my home directory. Until I started to use it as a home partition for a few distros (e.g. openSUSE Tumbleweed) everything was going fine, with merely symlinking everything. There were no permission issues. The issue I'm about to describe seems to have begun when I started using it on /home.
After booting Arch I choose to boot openSUSE Tumbleweed and even though it is no longer mounted on /home, only on /data is it mounted, its ownership and file ownership is changed from fusion809:wheel to 1000:998 with 1000 being my users' uid on all my distros. Unfortunately, with this change many files and directories become read-only or unreadable, which is odd given the uid situation. As a result I have to run sudo chown fusion809:wheel /data
and other commands to correct it (as this command doesn't change ownership for all subdirectories or files, adding the -R
option doesn't fix this either), which is tedious and irritating. I get similar ownership difficulties (can't remember the precise permissions ls -ld
showed) when I've booted Arch. To be clear, this doesn't just occur when I switch between distros, this also occurs when I boot Tumbleweed after booting Tumbleweed and boot Arch after Arch.
dual-boot home ownership
add a comment |Â
up vote
0
down vote
favorite
I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its owner, and symlink to the appropriate locations on my home directory. Until I started to use it as a home partition for a few distros (e.g. openSUSE Tumbleweed) everything was going fine, with merely symlinking everything. There were no permission issues. The issue I'm about to describe seems to have begun when I started using it on /home.
After booting Arch I choose to boot openSUSE Tumbleweed and even though it is no longer mounted on /home, only on /data is it mounted, its ownership and file ownership is changed from fusion809:wheel to 1000:998 with 1000 being my users' uid on all my distros. Unfortunately, with this change many files and directories become read-only or unreadable, which is odd given the uid situation. As a result I have to run sudo chown fusion809:wheel /data
and other commands to correct it (as this command doesn't change ownership for all subdirectories or files, adding the -R
option doesn't fix this either), which is tedious and irritating. I get similar ownership difficulties (can't remember the precise permissions ls -ld
showed) when I've booted Arch. To be clear, this doesn't just occur when I switch between distros, this also occurs when I boot Tumbleweed after booting Tumbleweed and boot Arch after Arch.
dual-boot home ownership
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its owner, and symlink to the appropriate locations on my home directory. Until I started to use it as a home partition for a few distros (e.g. openSUSE Tumbleweed) everything was going fine, with merely symlinking everything. There were no permission issues. The issue I'm about to describe seems to have begun when I started using it on /home.
After booting Arch I choose to boot openSUSE Tumbleweed and even though it is no longer mounted on /home, only on /data is it mounted, its ownership and file ownership is changed from fusion809:wheel to 1000:998 with 1000 being my users' uid on all my distros. Unfortunately, with this change many files and directories become read-only or unreadable, which is odd given the uid situation. As a result I have to run sudo chown fusion809:wheel /data
and other commands to correct it (as this command doesn't change ownership for all subdirectories or files, adding the -R
option doesn't fix this either), which is tedious and irritating. I get similar ownership difficulties (can't remember the precise permissions ls -ld
showed) when I've booted Arch. To be clear, this doesn't just occur when I switch between distros, this also occurs when I boot Tumbleweed after booting Tumbleweed and boot Arch after Arch.
dual-boot home ownership
I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its owner, and symlink to the appropriate locations on my home directory. Until I started to use it as a home partition for a few distros (e.g. openSUSE Tumbleweed) everything was going fine, with merely symlinking everything. There were no permission issues. The issue I'm about to describe seems to have begun when I started using it on /home.
After booting Arch I choose to boot openSUSE Tumbleweed and even though it is no longer mounted on /home, only on /data is it mounted, its ownership and file ownership is changed from fusion809:wheel to 1000:998 with 1000 being my users' uid on all my distros. Unfortunately, with this change many files and directories become read-only or unreadable, which is odd given the uid situation. As a result I have to run sudo chown fusion809:wheel /data
and other commands to correct it (as this command doesn't change ownership for all subdirectories or files, adding the -R
option doesn't fix this either), which is tedious and irritating. I get similar ownership difficulties (can't remember the precise permissions ls -ld
showed) when I've booted Arch. To be clear, this doesn't just occur when I switch between distros, this also occurs when I boot Tumbleweed after booting Tumbleweed and boot Arch after Arch.
dual-boot home ownership
dual-boot home ownership
asked 4 mins ago
Brenton Horne
1,39432146
1,39432146
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474718%2fhow-to-stop-permissions-on-data-partition-being-changed-on-boot%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password