-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
sudo: please make it optional #826
Comments
@Samueru-sama I need your help here, I know you use "doas" |
While using "AM", this is the function that made it work with "sudo"
|
I'm a doas user, however I use AppMan instead of AM which doesn't need elevated privileges. A while ago I did some changes that makes AM depend less on sudo, but if I'm not mistaken it still isn't ready. Once that is merged to dev, please enable the developer mode and update AM and let me know if you still have issues without sudo. |
@vitaly-zdanevich do |
@Samueru-sama discord |
Btw @ivan-hc the same if command -v sudo else command -v doas has to be done in the INSTALL script, I will do it tomorrow, but if you want to do it now do it. @vitaly-zdanevich Let us know if AM works now with doas. |
Oh my, I do not know what |
Looks like unnecessary dependency for installing :( |
When user install from root - is it possible to expect that? |
You are telling me you don't have |
Yes, for what? My root terminal is always running in a dedicated workspace. |
And again - I plan to write the ebuild for it - so it will be installed from root. |
I don't know why all this remembers me Kali Linux |
What are you doing that you need a root terminal constantly open? The only times I need to doas is when installing pacman packages, and I have a doas rule that lets me run I don't think it is a good idea at all to have a root terminal open, like the fact that you have it open tells me that you use it constantly which is worrisome to say the least. |
this is what I mean. You made me think that you are doing everything as root, also net browsing, like in Kali. I only see risks here. |
I have a few terminals, I do not use the root terminal always. Root terminal is autostarted on the specific display. |
No, mostly I use regular user of course. I need root terminal to write and test my ebuilds, for example. |
I understand @Samueru-sama in the function you added, can be added an I think that other than
or something. |
just tested with a root account in Debian, on VirtualBox, both "AM" installation and usage, and all works as expected. its enough to add this line to APP-MANAGER and AM-INSTALLER
as I said before |
uhm... something is gone wrong, I've tried by removing both "sudo" and "doas" as options and the installer have not recognized that I'm root, so I had an |
just noticed that $currentuser is not in AM-INSTALLER |
this is the one that worked
|
this function did the trick
note, I've tested also only the one to use AM as root, so without sudo and doas as options |
maybe I should put "root" as first choice
|
worked |
if you need to test the AM-INSTALLER, it will download "AM" from "main", while the changed version is in "dev" |
but other non-main-admins can't still use AM, its necessary to be the one that have installed AM |
the rule is still the same: the one that installs AM is the one that can do anything in /opt/am |
I prefer not to change what has already widelly used. AppMan is the way to go for unprivileged users. About to made "sudo" optiona, I think that this commit should fix this issue 7cb3cbc |
Thanks! Will check later. |
the change is still in "dev", you should run |
@vitaly-zdanevich change of program! As you said in the first message
since the reason because the issue was opened was the packaging of AM for Gentoo, I think that "sudo" or "doas" will keep be dependences for "AM" itself, after it is installed. A package for repositories being executed as ROOT, needs to use the INSTALL script from the repository. That said, usage of "AM" and its installation via AM-INSTALLER have non sense while the program is installed via system package manager. Changes done in the previous pull request will not be applied. As I have already said at #840, and according to what we said at #830 , this is the guide to package AM for other distributions. I'll repaste the comment ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ What you need to know before you start packaging "AM" for other distrosAbout changes in this project directly, "AM" is a third-party app released under GPL3 and is provided as is. Being it a third party app, I must write it to follow the LSB, so no way I can apply the changes you asked by default. All I can say to you is how to edit your own copy to made it work the way you want. Changes in "INSTALL"The "INSTALL" script is the one that must be executed to install AM and its modules and components
since you need to run it as root, you already know how to run the script without "sudo" or "doas" NOTE: if you don't care if AM is installed in /usr/share and you want to keep AM installed in /opt, ignore points 1 and 2. Changes in APP-MANAGER (do this into a post-installation script)
Line 806 in dd5cac6
Line 807 in dd5cac6
Line 68 in dd5cac6
all is done in this directory are updating of lists and keywords, or running installation scripts or data for the apps, like versions and type. NOTE: again, if you don't care if AM is installed in /usr/share and you want to keep AM installed in /opt, ignore the point 2. That said, I close this as not planned. Thank you for your interest. I worked a lot on this issue before I figure out that all this was to package AM as a package for Gentoo, or for any other distro. "root" only usage of "AM" is not something for what this tool was designed. If you have other questions, I'm here. |
Also because I want to package it for Gentoo Linux - so it already will be installed with root.
The text was updated successfully, but these errors were encountered: