Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend home directory ownership test for non-standard setups #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonathonf
Copy link

@jonathonf jonathonf commented Nov 30, 2021

Various networked environments exist where a user's home directory is not owned by that user:

$ls -ld $HOME
drwx------ 139 root daemon 28672 Nov 30 10:48 /home/userfs/j/jonathon

With this patch Byobu checks ownership of $HOME/.profile too, as a default inclusion of /etc/skel.

Edit: I should also say I've been testing this patch since 2016 on a variety of Ubuntu versions (14.04 - 20.04) and it has been working fine.

Various networked environments exist where a user's home directory is
not owned by that user. With this patch Byobu checks ownership of
.profile too, as a default inclusion of /etc/skel.
@dustinkirkland
Copy link
Owner

Hmm, if you want this, I think we should only be testing ownership of ~/.profile, if ~/.profile exists. Currently, byobu would run just fine, even if ~/.profile did not exist at all. But with this patch, your test would cause byobu to fail entirely if ~/.profile doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants