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

pre: mod_chmod #6

Open
sirmarksalot opened this issue Oct 13, 2019 · 2 comments
Open

pre: mod_chmod #6

sirmarksalot opened this issue Oct 13, 2019 · 2 comments

Comments

@sirmarksalot
Copy link

How is mod_chmod.so suppose to work?

I always get failed to chmod error messages.
chmod file.txt failed!

setuid(olduid);

pre_do_modules(files, buf, argv, subdirs);

the modules are called as a non superuser. chmod is unable to change the permissions of directories that are owned by uid 0

@silv3rr
Copy link
Contributor

silv3rr commented Nov 5, 2019

Try

* Set correct permissions on foo-pre, it needs setuid bit set.

@sirmarksalot
Copy link
Author

@silv3rr yes that is already correctly set and works fine. chown works without issue.

mod_chmod works aswell after foo-pre.c is edited and "setuid(olduid);" is moved from line 1084 to 1139

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

No branches or pull requests

2 participants