Ask coding questions

← Back to all posts
Could Allow Root User Access Just on Apt?
AmazingMech2418 (1087)

Would it be possible for to allow sudo just on the apt/apt-get commands? and should help if you decide to do this.

install-pkg doesn't give full root access for building applications, so attempting to build different languages, including COBOL, doesn't work. Enabling sudo in install-pkg or apt/apt-get would allow these languages to be used on without you all at having to add them directly. Languages like Fortran do work without root access, but not COBOL and likely some others. It seems like has been putting a lot of focus on languages there are work-arounds for rather than languages like COBOL that you cannot work around.

@amasad What do you think?

19wintersp (1142)

@programmeruser Yeah, saw this, and it looks really cool. Planning on making something which takes advantage of this.

AmazingMech2418 (1087)

@programmeruser I saw Nix as a language, but I was wondering what it was for! This is really cool! Time to port my Ada pi approximator to! LOL!

19wintersp (1142)

This could be really useful, or a system in which these packages can be installed securely by Replit.

Andy_4sberg (54)

I agree, @19wintersp! Please vote this post up for more people to see (and the comments if u want)!

CSharpIsGud (1048)

Having any root access at all is a big risk even for just one program.
How would it tell what you were running is apt? What if someone made a program and named it the same as apt and then put it in PATH?
There are way more ways to break out of a VM when you have root access than if you don't.

programmeruser (595)

@CSharpIsGud well, they could just make the apt binary suid

CSharpIsGud (1048)

@programmeruser Does apt not run scripts for pre install post install etc? You don't want those running as root either.