What is it or failing that how say having issued sudo -s
can I change it?
Now I did think of using usermod -p password root
Re: Pi 4 Bullseye Desktop x64
By: Vincent Coen to All on Thu Mar 03 2022 01:04 am
VC> What is it or failing that how say having issued sudo -s
VC> can I change it?
VC> Now I did think of using usermod -p password root
$ sudo passwd root
Job done.
Curious to know why 'sudo su' is not working though. If it isn't setting your
environment correctly, there is always:
$ sudo su -
Tristan.
So doing su asks for a password and the one used for user pi does not work.
What is it or failing that how say having issued sudo -s
can I change it?
I always set the root password. There are times when it saves multiple
uses of sudo
Re: Pi 4 Bullseye Desktop x64
By: Vincent Coen to All on Thu Mar 03 2022 01:04 am
What is it or failing that how say having issued sudo -s
can I change it?
Now I did think of using usermod -p password root
$ sudo passwd root
Job done.
Curious to know why 'sudo su' is not working though. If it isn't
setting your environment correctly, there is always:
$ sudo su -
On 02/03/2022 13:04, Vincent Coen wrote:
So doing su asks for a password and the one used for user pi doesto set a root password I tend to use:
not work.
What is it or failing that how say having issued sudo -s
can I change it?
sudo bash
passwd root
On Thu, 3 Mar 2022 10:20:34 +0000
The Natural Philosopher <tnp@invalid.invalid> wrote:
I always set the root password. There are times when it saves
multiple uses of sudo
On a personal/home system with one admin, set a root password and
use root when needed (don't run browsers etc. as root).
On a business system with multiple admins do not permit root
access, have a controlled list of sudoers with an audited sudoers configuration and log everything that happens under sudo against the
real user.
Hello Ahem!
Thursday March 03 2022 10:39, you wrote to The Natural Philosopher:
On Thu, 3 Mar 2022 10:20:34 +0000
The Natural Philosopher <tnp@invalid.invalid> wrote:
I always set the root password. There are times when it saves
multiple uses of sudo
On a personal/home system with one admin, set a root password and
use root when needed (don't run browsers etc. as root).
On a business system with multiple admins do not permit root
access, have a controlled list of sudoers with an audited sudoers configuration and log everything that happens under sudo against the
real user.
To install specific software after compiling using 'make install' must be made using su and sudo -s does not work.
On Thu, 03 Mar 2022 13:08:21 +1200 nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen) wrote:
Hello Ahem!
Thursday March 03 2022 10:39, you wrote to The Natural Philosopher:
On Thu, 3 Mar 2022 10:20:34 +0000and
The Natural Philosopher <tnp@invalid.invalid> wrote:
I always set the root password. There are times when it saves
multiple uses of sudo
On a personal/home system with one admin, set a root password
use root when needed (don't run browsers etc. as root).the
On a business system with multiple admins do not permit root
access, have a controlled list of sudoers with an audited sudoers
configuration and log everything that happens under sudo against
real user.
To install specific software after compiling using 'make install'
must be made using su and sudo -s does not work.
Home system log in as root and run make install - commercial
system don't do that use package management all the way probably
backed by a CMS like ansible or puppet.
Hello Ahem!
Thursday March 03 2022 14:19, you wrote to me:
> On Thu, 03 Mar 2022 13:08:21 +1200
> nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen) wrote:
>> Hello Ahem!
>>
>> Thursday March 03 2022 10:39, you wrote to The Natural Philosopher:
>>
>> > On Thu, 3 Mar 2022 10:20:34 +0000
>> > The Natural Philosopher <tnp@invalid.invalid> wrote:
>>
>> >> I always set the root password. There are times when it saves
>> >> multiple uses of sudo
>>
>> > On a personal/home system with one admin, set a root password
>> and
>> > use root when needed (don't run browsers etc. as root).
>>
>> > On a business system with multiple admins do not permit root
>> > access, have a controlled list of sudoers with an audited sudoers
>> > configuration and log everything that happens under sudo against
>> the
>> > real user.
>>
>> To install specific software after compiling using 'make install'
>> must be made using su and sudo -s does not work.
> Home system log in as root and run make install - commercial
> system don't do that use package management all the way probably
> backed by a CMS like ansible or puppet.
That's the problem - I can't log in as root using su or su - as I do not know the password.
Vincent
Hello Ahem!
Thursday March 03 2022 10:39, you wrote to The Natural Philosopher:
On Thu, 3 Mar 2022 10:20:34 +0000 The Natural Philosopher <tnp@invalid.invalid> wrote:
I always set the root password. There are times when it saves
multiple uses of sudo
On a personal/home system with one admin, set a root password and
use root when needed (don't run browsers etc. as root).
On a business system with multiple admins do not permit root
access, have a controlled list of sudoers with an audited sudoers configuration and log everything that happens under sudo against the
real user.
To install specific software after compiling using 'make install' must
be made using su and sudo -s does not work.
Vincent
On Thu, 03 Mar 2022 13:08:21 +1200 nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen) wrote:
Hello Ahem!
Thursday March 03 2022 10:39, you wrote to The Natural Philosopher:
On Thu, 3 Mar 2022 10:20:34 +0000and
The Natural Philosopher <tnp@invalid.invalid> wrote:
I always set the root password. There are times when it saves
multiple uses of sudo
On a personal/home system with one admin, set a root password
use root when needed (don't run browsers etc. as root).the
On a business system with multiple admins do not permit root
access, have a controlled list of sudoers with an audited sudoers
configuration and log everything that happens under sudo against
real user.
To install specific software after compiling using 'make install'
must be made using su and sudo -s does not work.
Home system log in as root and run make install - commercial
system don't do that use package management all the way probably
backed by a CMS like ansible or puppet.
The trick was to use passwd root
and change it BUT what the devil was it originally - no docs on this
needless to say :(
Hello nev!
Thursday March 03 2022 10:39, you wrote to me:
> On 02/03/2022 13:04, Vincent Coen wrote:
>> So doing su asks for a password and the one used for user pi does
>> not work.
>>
>> What is it or failing that how say having issued sudo -s
>> can I change it?
>>
> to set a root password I tend to use:
> sudo bash
> passwd root
Is that with no options to passwd other than passing 'root' ?
That's the problem - I can't log in as root using su or su - as I do not know the password.
Hello All!
I have installed this distro via raspberry website and have been installing extra s/w as sources and have got to the point where one of them needs to be installed as root (su). This is not sudo or sudo su etc as that will not work.
So doing su asks for a password and the one used for user pi does not work.
Hello Ahem!
Thursday March 03 2022 14:19, you wrote to me:
> On Thu, 03 Mar 2022 13:08:21 +1200
> nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen) wrote:
>> Hello Ahem!
>>
>> Thursday March 03 2022 10:39, you wrote to The Natural Philosopher:
>>
>> > On Thu, 3 Mar 2022 10:20:34 +0000
>> > The Natural Philosopher <tnp@invalid.invalid> wrote:
>>
>> >> I always set the root password. There are times when it saves
>> >> multiple uses of sudo
>>
>> > On a personal/home system with one admin, set a root password
>> and
>> > use root when needed (don't run browsers etc. as root).
>>
>> > On a business system with multiple admins do not permit root
>> > access, have a controlled list of sudoers with an audited sudoers
>> > configuration and log everything that happens under sudo against
>> the
>> > real user.
>>
>> To install specific software after compiling using 'make install'
>> must be made using su and sudo -s does not work.
> Home system log in as root and run make install - commercial
> system don't do that use package management all the way probably
> backed by a CMS like ansible or puppet.
That's the problem - I can't log in as root using su or su - as I do not know the password.
Vincent
Hello Ahem!
Thursday March 03 2022 10:39, you wrote to The Natural Philosopher:
> On Thu, 3 Mar 2022 10:20:34 +0000
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> I always set the root password. There are times when it saves
>> multiple uses of sudo
> On a personal/home system with one admin, set a root password and
> use root when needed (don't run browsers etc. as root).
> On a business system with multiple admins do not permit root
> access, have a controlled list of sudoers with an audited sudoers
> configuration and log everything that happens under sudo against the
> real user.
To install specific software after compiling using 'make install' must be made
using su and sudo -s does not work.
Vincent
Hello Ahem!
Thursday March 03 2022 14:19, you wrote to me:
> On Thu, 03 Mar 2022 13:08:21 +1200
> nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen) wrote:
>> Hello Ahem!
>>
>> Thursday March 03 2022 10:39, you wrote to The Natural Philosopher:
>>
>> > On Thu, 3 Mar 2022 10:20:34 +0000
>> > The Natural Philosopher <tnp@invalid.invalid> wrote:
>>
>> >> I always set the root password. There are times when it saves
>> >> multiple uses of sudo
>>
>> > On a personal/home system with one admin, set a root password
>> and
>> > use root when needed (don't run browsers etc. as root).
>>
>> > On a business system with multiple admins do not permit root
>> > access, have a controlled list of sudoers with an audited sudoers
>> > configuration and log everything that happens under sudo against
>> the
>> > real user.
>>
>> To install specific software after compiling using 'make install'
>> must be made using su and sudo -s does not work.
> Home system log in as root and run make install - commercial
> system don't do that use package management all the way probably
> backed by a CMS like ansible or puppet.
The trick was to use passwd root
and change it BUT what the devil was it originally - no docs on this needless to say :(
Vincent
I never enable root user on macos or debian-derivatives
If I need a root prompt, I
sudo su -
and gives the pi user's passwd.
Within the Makefile there is :
@if [ "`id -un`" != "root" ] ; then \
echo; echo " Must be root to install!"; echo; exit 3;
fi
So if not using su this test will fail.
The
installation should work with single 'sudo make install'.
On Thu, 03 Mar 2022 22:51:00 +1200 nospam.Vincent.Coen@f1.n250.z2.fidonet.org (Vincent Coen) wrote:
The trick was to use passwd root
and change it BUT what the devil was it originally - no docs on this
needless to say :(
It wasn't set at all originally so root could not log in.
On 03/03/2022 01:03, Vincent Coen wrote:
Hello nev!Yes.
Thursday March 03 2022 10:39, you wrote to me:
> On 02/03/2022 13:04, Vincent Coen wrote:
>> So doing su asks for a password and the one used for user pi
does
>> not work.
>>
>> What is it or failing that how say having issued sudo -s
>> can I change it?
>>
> to set a root password I tend to use:
> sudo bash
> passwd root
Is that with no options to passwd other than passing 'root' ?
sudo bash starts a new bash shell as root. Then passwd root will let
you set a new root passwd. As you're now root it doesn't ask for
the old/existing one.
Hello Vincent!
03 Mar 22 17:03, you wrote to Ahem A Rivet's Shot:
That's the problem - I can't log in as root using su or su - as I
do not know the password.
Where is your problem?. It is only a rasberry system, zo it is stored
on a USB drive or a Micro SSD. Take ik to the system where you put
this image on de datacarrier. Mount the secon partition (rootfs) and
look for the shadow file. In the line for root remove the gibberish
between the first and second colon, with any editor.
Root will now have no password, so you should set one as soon as you
have logged in.
But to be serious, it should not be possible to login on root with a password. There should be a '*' in the shadow files and access should
be given in the sudo config.
So instead of my first suggestion to edit the shadow file, edit
sudoers, maybe adding your login account to the group sudo is
sufficient. That file can also be edited while the rootfs in mounted
on the host system.
On 3.3.2022 02:56 AM, Vincent Coen wrote:
Within the Makefile there is :
@if [ "`id -un`" != "root" ] ; then \
echo; echo " Must be root to install!";
echo; exit 3;
fi
So if not using su this test will fail.
Your example is missing a backslash at the end of the second line,
after 'exit 3;'.
After adding it, the example worked with straight sudo and
changing to root with 'sudo bash'. It works on Raspbian and
Raspi OS.
You are doing ther change to superuser too complicated. The
installation should work with single 'sudo make install'.
Sysop: | deepend |
---|---|
Location: | Calgary, Alberta |
Users: | 253 |
Nodes: | 10 (0 / 10) |
Uptime: | 03:35:00 |
Calls: | 1,647 |
Files: | 4,003 |
Messages: | 387,134 |