Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #241910 > unrolled thread

unkown root password and mkdir problem.

Started byThomas George <lists@tomgeorge.info>
First post2021-11-06 00:30 +0100
Last post2021-12-10 16:00 +0100
Articles 7 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  unkown root password and mkdir problem. Thomas George <lists@tomgeorge.info> - 2021-11-06 00:30 +0100
    Re: unkown root password and mkdir problem. Jeremy Ardley <jeremy@ardley.org> - 2021-11-06 00:40 +0100
      Re: unkown root password and mkdir problem. Greg Wooledge <greg@wooledge.org> - 2021-11-06 01:10 +0100
      Re: unkown root password and mkdir problem. Thomas George <lists@tomgeorge.info> - 2021-11-06 03:20 +0100
        Re: unkown root password and mkdir problem. deloptes <emanoil.kotsev@deloptes.org> - 2021-11-06 07:30 +0100
    Re: unkown root password and mkdir problem. Andrei POPESCU <andreimpopescu@gmail.com> - 2021-12-10 13:20 +0100
      Re: unkown root password and mkdir problem. Michael Castellon <castellonmichael@gmail.com> - 2021-12-10 16:00 +0100

#241910 — unkown root password and mkdir problem.

FromThomas George <lists@tomgeorge.info>
Date2021-11-06 00:30 +0100
Subjectunkown root password and mkdir problem.
Message-ID<DggOJ-7vS-5@gated-at.bofh.it>
when installing debian I entered eight digits as the root password. The 
instillation completed successfully. Later I tried to become root but 
the eight digits didn't work and many permutations also didn't work.

I have used sudo successfully with many commands including mkdir but 
sudo tar fails to uncompress files because it cannot make the necessary 
directories. That is sudo tar runs but must use mkdir which fails.

I have found mkdir in /usr/bin and changed the ownership to root:tom and 
given it rwx permissions but this does not solve the problem.

If there are no suggested solutions to this email tomorrow I will backup 
all my files to external drive and reinstall bullseye

[toc] | [next] | [standalone]


#241912

FromJeremy Ardley <jeremy@ardley.org>
Date2021-11-06 00:40 +0100
Message-ID<DggYp-7z1-5@gated-at.bofh.it>
In reply to#241910

[Multipart message — attachments visible in raw view] — view raw

On 6/11/21 7:17 am, Thomas George wrote:
> when installing debian I entered eight digits as the root password. 
> The instillation completed successfully. Later I tried to become root 
> but the eight digits didn't work and many permutations also didn't work.
>
> I have used sudo successfully with many commands including mkdir but 
> sudo tar fails to uncompress files because it cannot make the 
> necessary directories. That is sudo tar runs but must use mkdir which 
> fails.
>
> I have found mkdir in /usr/bin and changed the ownership to root:tom 
> and given it rwx permissions but this does not solve the problem.
>
> If there are no suggested solutions to this email tomorrow I will 
> backup all my files to external drive and reinstall bullseye
>
>
Try

sudo passwd root

And reset the root password to a known string

-- 
Jeremy

[toc] | [prev] | [next] | [standalone]


#241913

FromGreg Wooledge <greg@wooledge.org>
Date2021-11-06 01:10 +0100
Message-ID<Dghrs-7Yz-25@gated-at.bofh.it>
In reply to#241912
On Sat, Nov 06, 2021 at 07:35:22AM +0800, Jeremy Ardley wrote:
> On 6/11/21 7:17 am, Thomas George wrote:
> > I have found mkdir in /usr/bin and changed the ownership to root:tom and
> > given it rwx permissions but this does not solve the problem.

> Try
> 
> sudo passwd root
> 
> And reset the root password to a known string

And after you do that, change the ownership and permissions of
/usr/bin/mkdir back to what they are supposed to be:

-rwxr-xr-x 1 root root 85184 Sep 24  2020 mkdir

If that wasn't what they were originally, then your system is severely
broken, and all bets are off.

[toc] | [prev] | [next] | [standalone]


#241915

FromThomas George <lists@tomgeorge.info>
Date2021-11-06 03:20 +0100
Message-ID<Dgjtf-FJ-1@gated-at.bofh.it>
In reply to#241912
Thanks, this fixed my problem and as Greg recommended I have reset mkdir 
ownership and options

On 11/5/21 7:35 PM, Jeremy Ardley wrote:
>
> On 6/11/21 7:17 am, Thomas George wrote:
>> when installing debian I entered eight digits as the root password. 
>> The instillation completed successfully. Later I tried to become root 
>> but the eight digits didn't work and many permutations also didn't work.
>>
>> I have used sudo successfully with many commands including mkdir but 
>> sudo tar fails to uncompress files because it cannot make the 
>> necessary directories. That is sudo tar runs but must use mkdir which 
>> fails.
>>
>> I have found mkdir in /usr/bin and changed the ownership to root:tom 
>> and given it rwx permissions but this does not solve the problem.
>>
>> If there are no suggested solutions to this email tomorrow I will 
>> backup all my files to external drive and reinstall bullseye
>>
>>
> Try
>
> sudo passwd root
>
> And reset the root password to a known string
>

[toc] | [prev] | [next] | [standalone]


#241917

Fromdeloptes <emanoil.kotsev@deloptes.org>
Date2021-11-06 07:30 +0100
Message-ID<Dgnnb-3eT-1@gated-at.bofh.it>
In reply to#241915
Thomas George wrote:

> Thanks, this fixed my problem and as Greg recommended I have reset mkdir
> ownership and options

If I were you, I would be very careful using root

-- 
FCD6 3719 0FFB F1BF 38EA 4727 5348 5F1F DCFE BCB0

[toc] | [prev] | [next] | [standalone]


#242897

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2021-12-10 13:20 +0100
Message-ID<DsN2x-6jj-1@gated-at.bofh.it>
In reply to#241910

[Multipart message — attachments visible in raw view] — view raw

On Vi, 05 nov 21, 19:17:11, Thomas George wrote:
> 
> I have used sudo successfully with many commands including mkdir but sudo
> tar fails to uncompress files because it cannot make the necessary
> directories. That is sudo tar runs but must use mkdir which fails.

In such cases you might want to run the command in a `sudo -i` (or '-s', 
depending on your preference) session.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [next] | [standalone]


#242913

FromMichael Castellon <castellonmichael@gmail.com>
Date2021-12-10 16:00 +0100
Message-ID<DsPxn-7Em-3@gated-at.bofh.it>
In reply to#242897

[Multipart message — attachments visible in raw view] — view raw

for superuser:
su

regards.



On Fri, Dec 10, 2021 at 4:14 AM Andrei POPESCU <andreimpopescu@gmail.com>
wrote:

> On Vi, 05 nov 21, 19:17:11, Thomas George wrote:
> >
> > I have used sudo successfully with many commands including mkdir but sudo
> > tar fails to uncompress files because it cannot make the necessary
> > directories. That is sudo tar runs but must use mkdir which fails.
>
> In such cases you might want to run the command in a `sudo -i` (or '-s',
> depending on your preference) session.
>
> Kind regards,
> Andrei
> --
> http://wiki.debian.org/FAQsFromDebianUser
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web