Category: Debian
-
Linux: how to edit certain system files in a secured way: vipw, vigr, visudo
- https://manpages.debian.org/unstable/passwd/vipw.8.en.html
- https://manpages.debian.org/unstable/passwd/vigr.8.en.html
- https://manpages.debian.org/unstable/sudo/visudo.8.en.html
vipw and vigr are actually the same utility.
You still have to also apply sudo on your command in order to gain the necessary privileges:
$ sudo vipwUnder certain circumstances you have to tell the utility, which (visual) editor to use:
$ sudo VISUAL=vim vipwCAVEAT: the following article tells you something incorrect regarding “-s” / “–shadow” (read it up on the manual page referred to above and also on the article’s own comments section!):
-
Linux: how to grant “sudo” privileges to an account: “usermod”
CAVEAT: Do not edit any file for gaining the required effect, instead: use the following command line!
$ sudo usermod --append --groups sudo ACCOUNTActually it adds (“–append”) ACCOUNT to a user group by the name of sudo. That works because of this entry in the file /etc/sudoers (what is the group sudo allowed to do?):
%sudo ALL=(ALL:ALL) ALLIn other Linux distributions the group is named administrators instead, that would effect the usermod command line and the entry in /etc/sudoers.
-
managing APT repositories: reprepro
-
Continuous Integration / Delivery for Debian packages – jenkins-debian-glue.org
I do have Jenkins running on Debian, creating Debian packages as deployables – I plan to deploy to a Debian repository.
- https://wiki.jenkins.io/display/JENKINS/Debian+Pbuilder+Plugin
- https://blog.packagecloud.io/eng/2017/03/23/create-debian-repository-reprepro/
Automatic handling of repositories
without manual interaction:reprepro:
freight:
- https://salsa.debian.org/debian/freight – the fork
- https://github.com/rcrowley/freight – the original
- https://www.systutorials.com/docs/linux/man/1-freight-cache
- http://midactstech.blogspot.com/2014/05/install-freight.html
- – maybe that only works with the original
-
managing APT repositories
- using your own Debian package repository
- is there a CLI interface?
- is there a human oriented web interface?
- sources available?
searching for “debian package repository”:
- https://www.debian.org/distrib/packages
- https://packages.debian.org
- https://wiki.debian.org/DebianRepository/Setup
- https://wiki.debian.org/DebianRepository/Setup#debify
- https://debian-handbook.info/browse/stable/sect.setup-apt-package-repository.html
- …
searching for “ubuntu package repository”:
… – also describes 2 different (simplistic?) web server approaches: