On Sun, Jun 12, 2022 at 05:06:01PM +0000, Schwibinger Michael wrote: > Good evening >
Good evening, Sophie Could I ask a favour from you, please? If you start a new question or a new topic, could you please change the subject line of your message. This may make things easier to follow. If you need to operate as root equivalent then you have two ways of doing so: If you have sudo set up, you will normally work as a normal user. If you need to "become root" then sudo -s will give you the equivalent privileges of root. If you have a password set for root and an enabled root user then su - will give you root privileges and you will need to supply the root user password. Some people advise on one or the other: sudo can be limited so that specific commands can be limited to one user, for example. apt / apt-get and other package installation programs need root privileges If you are logged in as a normal user, sudo apt would work if you had set up sudo. With every good wish, as ever, Andy Cater > Thank You > > Is the most easy way for > update > and root managing > > su > su - > sudo? > > Tegards > Sophie > > > ________________________________ > Von: Greg Wooledge <g...@wooledge.org> > Gesendet: Dienstag, 24. Mai 2022 19:16 > An: debian-user@lists.debian.org <debian-user@lists.debian.org> > Betreff: Re: Firmware III grub > > On Tue, May 24, 2022 at 09:07:46PM +0200, Siard wrote: > > I accomplished the same by creating /usr/local/bin/su containing these > > lines: > > > > #! /bin/sh > > PATH=$PATH:/sbin:/usr/sbin > > /bin/su > > > > and making it executable. > > Clever. But the final line should be: > > exec /bin/su "$@" > > I still prefer the /etc/default/su solution from the wiki, though. >