-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
💪 #492
💪 #492
Conversation
Btw @ivan-hc is the |
@Samueru-sama why |
OK, I got it... user's $HOME ~/.cache directory |
(And also it follows the XDG_Base_Dir specification, which I know you aren't a fan of following rules lol). |
I think that this was what remains of fisrts times you did this change... I don't remember but I think were you adding this |
Yeah I would swear that I removed them from the modules as well lol. (I'm removing it now). |
Hey you merged this right before I removed the xdg check in |
@Samueru-sama I added also the new variable "$AMBRANCH" for our tests just replace at line 227 of APP-MANAGER
with
and we can update/sync from "dev" |
Now let improve the INSTALL script and if you can, upload the changes in the installation scripts |
iirc the only change I did to INSTALL was remove the chown, which cannot be do right now as APP-MANAGER still needs sudo to update itself. I also didn't add the In other words I don't think this will be ready today as I will see the feral gamemode repo to see how they add users to a group that doesn't need sudo without the user having to edit sudoers directly. |
would you prefer that I add an AM-updater or just an "updater" script (not to be managed by -u) in the INSTALL script? |
An AM-updater that does update APP-MANAGER and its modules would be great indeed.
EDIT: Nvm that would download the list of apps as well. |
@Samueru-sama however, you said that it was enough to add $SUDOCOMMAND, isnt it? |
ah, I forgot.... no sudo command |
However you didn't like the idea of having to edit sudoers so I mentioned the other way with groups. (which once again I haven't taken a look at how they work, I know they do because other apps use them). |
@Samueru-sama on your fork, uploads are disabled, so download/extract this https://github.com/ivan-hc/AM/archive/refs/heads/dev.zip and add the content of "modules" in your branch |
Btw I just hit the jackpot:
That does the sudoers change without having to use visudo. Of course username needs to be replaced by the actual name of the user first. This can be a function in AM that uses sudo once to allow the user that called it to be able to update without password |
Oh fuck I misread this and uploaded the entire zip lol. |
Done. |
@Samueru-sama what about
? it seems to work in INSTALL |
sync also worked |
If it works and you don't have some weird shenanigans changing the ownership of /opt/am between users. And AM updates itself without password after running |
I've finished tests on main user, now I'm going test this on other two |
I've finished the tests on non privileged user, its all ok, him cannot update anything nor can remove anything |
By non privileged you mean not in wheel group? I did not test if the NOPASSWD works for users not in the wheel group but that are still added to sudoers. |
Any updates? |
I've managed to update APP-MANAGER by downloading it in $CACHEDIR/am, set owner and group and then move |
Damn that was a fast response 👀 I think the issue is that AM and new modules download themselves in Worth mentioning that before |
@Samueru-sama see here 318b2c7 |
That's great but it wouldn't be needed if the modules downloaded themselves to |
please, remember me that I must switch this later 03b8297 |
now lets go testing... in my zone is 2:30 A.M., I think your zone is about 22:00/10:00 P.M., so keep testing if I fall asleep |
I get this error when doing
Also I cannot do |
you must remove AM
and then download the installer from dev
open the file with a text editor and on top change the URL from main to dev, save and run
|
Ok but this made am be owned by me instead of root? |
The first owner should be root, and in my tests I've updated and I become the owner, then I re-updated with another admin and him become the owner... and back again, updated by my user and I become owner again for all the abow, the group "sudo" is always RW |
Now we need to add a filter to update and sync, that are useless for non-sudo users. Would you like to provide one (in APP-MANAGER)? |
You better do it because I'm a little confused now. lol. Will the |
nope |
@Samueru-sama is this ok as a message to prevent unprivileged users of using some options?
|
It's ok.
It's a shame because with the trick above even guest should be able to update AM even when it is owned by root. |
Nope... and I'm still looking the english version of the agent Smith in the first Matrix saying that humans should not do the job of a machine, in the first shene |
@Samueru-sama is this OK? Should I merge to main? |
If it works and fixes the issues that the users were having recently, then yeah. (I haven't had issues on my end if you wonder) |
@ivan-hc HEY DON'T GO TO SLEEP! I just reinstalled am now that you merged on main and it doesn't work wut: This is because I am not in the root group, but I am on the wheel group: Edit: Also you can see how feral gamemode works there, it has its own group that can do certain sudo tasks. FUCK @ivan-hc Respond! The fix is simple and it is add this to ./INSTALL: sudo usermod -aG root $(who | awk '{print $1}') |
@Samueru-sama hey, I'm here, tell me. What should I do? |
RIGHT NOW, would be to add this to
That adds the user to the root group. Later on we to need make a better group for this, like in the case of gamemode where you can see that it makes a gamemode group, |
Would you like to PR? |
done |
OK, good night 😴 💤 |
This first change is needed to make it easier to transition AM to use no sudo later on.
Haven't tested if this causes an issue with appman. (appman doesn't need to have its cache moved since it is always at a user owned location).
Also I did not remove the sudo and ownership checks here, As that will be on a different pr.