yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.93k stars 1.06k forks source link

[Platform] When home dir of another user is given, onprem preflight check is failing #8157

Open VijiYB opened 3 years ago

VijiYB commented 3 years ago

If user inputs a home directory that is in the home directory of another user, onprem provider will not set the proper permissions

Created a user vijiyb and created a home dir /home/vijiyb/yugabyte, gave this while creating a provider. The preflight check failed with "(Home Directory) /home/vijiyb/yugabyte is writable": false,

streddy-yb commented 3 years ago

hi @VijiYB - Which user you did use as the SSH user in your provider configuration? yugabyte -or- centos? If yugabyte , did you give sudo access to yugabyte user?

VijiYB commented 3 years ago

I used vijiyb in the provider configuration and this has sudo access. Seems yugabyte user doesnt have permission to access this home directory(/home/vijiyb/yugabyte) of vijiyb user.

dotyjim-work commented 3 years ago

I think this may be a duplicate of https://github.com/yugabyte/yugabyte-db/issues/7656 - @VijiYB, what version are you using?

streddy-yb commented 3 years ago

hi @WesleyW - Can you work with @VijiYB if there is a real bug here? If the yugabyte user exists and does not have write permissions to /home/vijiyb/yugabyte, then this is not a bug.

VijiYB commented 3 years ago

The user is 'vijiyb,' so I'm trying to use my home dir /home/vijiyb. I gave 'vijiyb' as the user in the provider too.