-
Notifications
You must be signed in to change notification settings - Fork 445
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
File Permissions - user isn't set? #62
Comments
I don't think so. I think it's all "root" right now..... |
So right now, the user is used primarily for RPM builds, where file permission info is external in the spec file: For debian, it seems sticking with root is the best practice: http://man.he.net/man1/dh_fixperms I also learned i this process about
So, it looks like you need to reserve the UID you want files to be owned as, and you need to create such a user EITHER in the debian chain you're using or in the SO - RPM is covered. Debian is not, but it looks like it is UID based. Actions:
What do you think? |
Sorry for my late reply. This link was really helpful and I think we can do as they propose.
This would imply we append extra code at the end for example appending for preinst# check if user exists
...
# create if not existend
adduser ${username} ... options example appending for postinst# chown according to mapping which are non-root
chown ${username} ${path}
...
example appending for postrm# delete user if exists
...
|
I agree we should try to make this happen. This looks like a decent plan. Thanks for the investigation! IF you get time before I do, let me know :) |
I will give it a try this weekend. I must correct by message before. We could put all stuff in the |
cool! Yeah, sounds like you may have time before me :) |
Can wie close this? |
Sure. I think the RPM side already handle sthis too. |
The FileUtil class provides a
chmod
object, but nothing forchown
.Is the
user
set anywhere in the build?The text was updated successfully, but these errors were encountered: