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


Groups > linux.debian.user > #175340

Re: arm people distributing images with user 1000 already allocated, please stop that

From emetib <chadbrabec@gmail.com>
Newsgroups linux.debian.user
Subject Re: arm people distributing images with user 1000 already allocated, please stop that
Date 2016-12-02 20:20 +0100
Message-ID <sK1xf-7SH-9@gated-at.bofh.it> (permalink)
References <sJDEB-7vD-15@gated-at.bofh.it> <sJIEh-3MS-11@gated-at.bofh.it> <sJU2K-388-9@gated-at.bofh.it> <sJVia-3Rc-19@gated-at.bofh.it> <sK1xf-7SH-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> > [use sudo]
> >
> > > The last time I tried that, some years ago, it demanded the old
> > > passwd first. I think that was about Red Hat 7.1's day. I'd been
> > > using it since 1998 and 5.0.
> > >
> > > > i hope that this helps some for future reference.
> > >
> > > If no pw is needed, great.
> >
> > `passwd` invoked as the root user does not require you to provide the
> > current password. You can set the password for any user, including the
> > default user of root. So you would need to invoke 'sudo passwd' to
> > change/set the root password without being prompted for the existing
> > one.
> 
> That policy has been changed then. Its been quite some time, possibly a 
> decade or more since I have attempted that procedure. The last time I 
> tried that, I was asked for the old password, and having forgotten it, 
> was refused. I wound up taking that drive to another machine and 
> removing the root pw in both passwd and shadow files.  Then I could set 
> a new one and did when the drive was re-installed in the machine it ran.
> 
> Cheers, Gene Heskett

i believe that gene is correct on this.

checking with a couple of virtual machines that i have, have found that just with the 'sudo shutdown -r now' command the passwd changes.

debian testing -- asks for the user's passwd
centos7 -- asks for the user's passwd
mageia -- asks for user's passwd
opensuse leap -- asks for root's passwd

personally i think that every distro should ask for a root passwd and one username upon installation.  from there the sysadmin can assign people what privileges by putting them in whatever group, and then assign that group in /etc/sudoers.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

arm people distributing images with user 1000 already allocated, please stop that Gene Heskett <gheskett@shentel.net> - 2016-12-01 18:50 +0100
  Re: arm people distributing images with user 1000 already allocated,  please stop that Alexandre GRIVEAUX <agriveaux@deutnet.info> - 2016-12-01 19:20 +0100
    Re: arm people distributing images with user 1000 already allocated, please stop that Gene Heskett <gheskett@shentel.net> - 2016-12-01 20:20 +0100
      Re: arm people distributing images with user 1000 already  allocated, please stop that Joe <joe@jretrading.com> - 2016-12-01 20:50 +0100
  Re: arm people distributing images with user 1000 already allocated,  please stop that emetib <chadbrabec@gmail.com> - 2016-12-01 22:00 +0100
    Re: arm people distributing images with user 1000 already allocated, please stop that Gene Heskett <gheskett@shentel.net> - 2016-12-02 00:10 +0100
      Re: arm people distributing images with user 1000 already allocated,  please stop that Jonathan Dowland <jmtd@debian.org> - 2016-12-02 12:20 +0100
        Re: arm people distributing images with user 1000 already allocated, please stop that Gene Heskett <gheskett@shentel.net> - 2016-12-02 13:40 +0100
          Re: arm people distributing images with user 1000 already allocated,  please stop that emetib <chadbrabec@gmail.com> - 2016-12-02 20:20 +0100
  Re: arm people distributing images with user 1000 already allocated,  please stop that Jonathan Dowland <jmtd@debian.org> - 2016-12-02 12:20 +0100
    Re: arm people distributing images with user 1000 already allocated, please stop that Gene Heskett <gheskett@shentel.net> - 2016-12-02 13:30 +0100

csiph-web