On 2/22/2010 12:40 PM, Bob Taylor wrote:
> Hi, I am writting this message in hope that you can be of a great help
> to me. My husband that has been on this site died suddenly Feb 4th) and
> I can not access my computer. He has a user name and password on the
> system. He has used the Linux and Red Hat to run the computer.... He
> would boot up the system and then I would do my email, documents, etc.
> I never thought to ask him his password or username. There is no one in
> our area that knows how to change the username and password on the Linux
> system... Can you or some one you may know help. I did find a Red Hat
> Boot disk... not sure what to do with it!!!!
>
> I am able to use this email so that is why I am sending this to you
> ,trying to find help. I can be reached through a friend if you can call
> me 970 208 3131..... or email... will be OK also............ I hope
> there is someone to help me get on my computer... Laura
This information is pretty easy to find if you google 'linux password
recovery' so I'll ignore the possibility that this might be a hoax by
someone trying to break into someone else's computer. If this is a
default install with no extra work to secure grub, follow these
instructions:
http://linuxmall.blogspot.com/2009/04/how-to-recover-red-hat-linux-password…
Note that the 'root' password it talks about is the one needed to do
system maintenance and updates. If you want to change the password for
some other user, use the command:
passwd username
and you'll be prompted to enter it twice to change it.
--
Les Mikesell
lesmikesell(a)gmail.com
Am Mo, den 13.02.2006 schrieb Cleber P. de Souza um 23:36:
> There is a way to allow usernames with dots like firstname.lastname.
> On Red hat 7.3 it was possible, but after Fedora 1 it was blocked. How
> this could be changed?
> Cleber P. de Souza
This seems to become a FAQ. If you search the list archive you will find
some discussion about it.
For which reason do you think you need such kind of usernames? If it is
for mail addresses then you don't need those dotted usernames.
Alexander
--
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp
Serendipity 02:01:35 up 3 days, 10:52, load average: 0.56, 0.24, 0.18
Dear Experts,
Could someone enlighten me about the following file:
/etc/subuid
? This file appears to be owned by "setup" package. This is CentOS 7
system, and until now these files if existed were never changed. Today I
have added user quite routine way, by doing
/usr/sbin/groupadd -g 4500 [username]
/usr/sbin/useradd -g [username] -u 4500 -c "User Name, email@domain"
[username]
And the file /etc/subuid changed and user was added into it:
[username]:100000:65536
Nothing like that was happening before. This is first time I create
account after update done on Oct 3, 2019. I checked several CentOS 7
machines, basically doing this:
# grep subuid /usr/sbin/useradd
Binary file /usr/sbin/useradd matches
And CentOS 7 machines indeed may have that file name in the useradd
binary. None of CentOS 6 machines has that.
I tried to do FreeBSD-ism:
man /etc/subuid
came empty, and realized that I'm doing FreeBSD-ism.
I tried to do search on the web (did not "google", I use duckduckgo...
so I "did search"), and came pretty much empty.
Is it just me, or indeed something in CentOS 7 indeed changed? And what
is it?
Another question on the same note: how do we find out what the file is
about and is used for in Linux, apart from searching on the web. (When
there are surprises like the one I had today, one does like to know what
this particular file is used for).
Thanks in advance for your answers.
Valeri
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
Hi, I am writting this message in hope that you can be of a great help to
me. My husband that has been on this site died suddenly Feb 4th) and I can
not access my computer. He has a user name and password on the system. He
has used the Linux and Red Hat to run the computer.... He would boot up
the system and then I would do my email, documents, etc. I never thought to
ask him his password or username. There is no one in our area that knows
how to change the username and password on the Linux system... Can you or
some one you may know help. I did find a Red Hat Boot disk... not sure what
to do with it!!!!
I am able to use this email so that is why I am sending this to you ,trying
to find help. I can be reached through a friend if you can call me 970 208
3131..... or email... will be OK also............ I hope there is someone
to help me get on my computer... Laura
On 2019-10-09 15:47, Valeri Galtsev wrote:
> Dear Experts,
>
> Could someone enlighten me about the following file:
>
> /etc/subuid
>
> ? This file appears to be owned by "setup" package. This is CentOS 7
> system, and until now these files if existed were never changed. Today
> I have added user quite routine way, by doing
>
> /usr/sbin/groupadd -g 4500 [username]
> /usr/sbin/useradd -g [username] -u 4500 -c "User Name, email@domain"
> [username]
>
> And the file /etc/subuid changed and user was added into it:
>
> [username]:100000:65536
>
> Nothing like that was happening before. This is first time I create
> account after update done on Oct 3, 2019. I checked several CentOS 7
> machines, basically doing this:
>
> # grep subuid /usr/sbin/useradd
> Binary file /usr/sbin/useradd matches
>
> And CentOS 7 machines indeed may have that file name in the useradd
> binary. None of CentOS 6 machines has that.
>
> I tried to do FreeBSD-ism:
>
> man /etc/subuid
>
> came empty, and realized that I'm doing FreeBSD-ism.
>
> I tried to do search on the web (did not "google", I use duckduckgo...
> so I "did search"), and came pretty much empty.
>
> Is it just me, or indeed something in CentOS 7 indeed changed? And what
> is it?
>
> Another question on the same note: how do we find out what the file is
> about and is used for in Linux, apart from searching on the web. (When
> there are surprises like the one I had today, one does like to know
> what this particular file is used for).
>
>
> Thanks in advance for your answers.
A quick google search:
https://lmgtfy.com/?qtype=search&q=%2Fetc%2Fsubuid
yielded this as the first link:
http://man7.org/linux/man-pages/man5/subuid.5.html
--
Mike Burger
http://www.bubbanfriends.org
"It's always suicide-mission this, save-the-planet that. No one ever
just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
> On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce <pierce(a)hogranch.com> wrote:
>>
>> win9X has horrible network username habits... you need to determine what
>> username its running as... dirty trick, log off, and the username should be
>> in the login prompt, just hit enter to relogin with the same username and
>> the same blank local password.. on the SAMBA server, create that username
>> as a linux user, AND `smbuser -a username`, assign it a smb password. when
>> win98 prompts for a password, thats the username it will use, you get no
>> choice, and win98 should be able to 'save' that password (if you check said
>> box on the login prompt), which causes it to be saved to a <username>.pwd
>> file (I think thats the name of the password cache).
>>
More progress:
It occurred to me that somewhere along the line I had not given my
CentOS guest user smb access, so I ran smbpasswd and set the guest
password to match its login password. When I went back to W98, I
tried to add the network printer - it recognized the name
(\\mhrichter\MPP1100) and asked for a password. I gave it the guest
password, and it proceeded to try to install it. I put in the CD,
went through all the (right) moves to install the driver, and then the
moment of truth:
W98 said I had to reboot.
I knew I was in trouble. I rebooted, and, lo and behold, the printer
was suddenly offline and unavailable (there was no change to the
CentOS host or the printer at all).
I deleted the printer to start over, but this time W98 said the
printer was offline when I input the name and the password.
W98 still can't see the network or any of the shares in the Network
Neighborhood, but at least I can reach for it by name.
Any doors or windows in this wall?
Thanks.
mhr
PS: I have always said that I don't really hate Window$, I just prefer
working in and on Unix/Linux. I don't think that's true any more,
although I must say that of all the versions of Window$ I've ever
used, XP is the least objectionable.
PPS: Yes, this is Window$ XP Pro (but I think it's still SP1), and 98
SE. It's still Window$, a Micro$oft product, which really says it
all.
Switch to KDM instead of GDM as the default display manager. This will change
the login screen and require typing a username which is much more secure. It
will not change your desktop but you may have to select GNOME or KDE the first
time you log in if you have both installed.
On 06/06/2014 10:34 AM, Wes James wrote:
> I've looked around in the menus and googled this, but I can't find a way to make the login require a username instead of just showing the available users to select from. Where do I change this? I'm using CentOS 6.5.
>
> Thanks,
>
> -wes
> _______________________________________________
> CentOS mailing list
> CentOS(a)centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
> --
>
>
> *********************************************************
> David P. Both, RHCE
> Millennium Technology Consulting LLC
> 919-389-8678
>
> dboth(a)millennium-technology.com
>
> www.millennium-technology.com
> www.databook.bz - Home of the DataBook for Linux
> DataBook is a Registered Trademark of David Both
> *********************************************************
> This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately.
>
Bob Taylor wrote:
> Hi, I am writting this message in hope that you can be of a great help
> to me. My husband that has been on this site died suddenly Feb 4th)
> and I can not access my computer. He has a user name and password on
> the system. He has used the Linux and Red Hat to run the
> computer.... He would boot up the system and then I would do my
> email, documents, etc. I never thought to ask him his password or
> username. There is no one in our area that knows how to change the
> username and password on the Linux system... Can you or some one you
> may know help. I did find a Red Hat Boot disk... not sure what to do
> with it!!!!
in a nutshell, you boot the linux CD into 'linux rescue mode', then the
usernames are in the /etc/passwd file on the mounted hard drive, which
is I believe mounted as /a, so it would be /a/etc/passwd, and the
passwords themselves are encrypted in /etc/shadow ... its easiest to
edit /etc/shadow (probably as /a/etc/shadow due to the rescue mount),
then just zap out the password field.
whoever does this has to be reasonably competent with unix command line
tools like vi, there's no gui in the rescue environment.
a typical /etc/passwd file...
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:
....additional system accounts deleted...
nobody:x:99:99:Nobody:/:
pierce:x:500:510:John R Pierce:/home/pierce:/bin/bash
mudshark:x:502:510:Mud E Shark:/home/mudshark:/bin/bash
and the corresponding /etc/shadow file...
root:$**********************z/:13890:0:99999:7:-1:-1:134538772
bin:*:10810:0:99999:7:::
....system accounts trimmed.....
nobody:*:10810:0:99999:7:::
pierce:$******************0:14332:0:99999:7:-1:-1:134539876
mudshark:$*******************x:10815:0:99999:7:-1:-1:134538468
so two users on this systme are pierce and mudshark, everything before
nobody is a system account. I replaced the bulk of the password hash
with ******, you would remove everything between the : so a line would
look like...
root::13890:0:99999:7:-1:-1:134538772
(note there's now two colons between the username and the next field)
now that account can log on without a password.
hopefully you can find someone who knows enough linux to make sense of this.
MHR wrote:
>> On Mon, Jun 2, 2008 at 10:16 AM, John R Pierce <pierce(a)hogranch.com> wrote:
>>
>>> win9X has horrible network username habits... you need to determine what
>>> username its running as... dirty trick, log off, and the username should be
>>> in the login prompt, just hit enter to relogin with the same username and
>>> the same blank local password.. on the SAMBA server, create that username
>>> as a linux user, AND `smbuser -a username`, assign it a smb password. when
>>> win98 prompts for a password, thats the username it will use, you get no
>>> choice, and win98 should be able to 'save' that password (if you check said
>>> box on the login prompt), which causes it to be saved to a <username>.pwd
>>> file (I think thats the name of the password cache).
>>>
>>>
>
> More progress:
>
> It occurred to me that somewhere along the line I had not given my
> CentOS guest user smb access, so I ran smbpasswd and set the guest
> password to match its login password. When I went back to W98, I
> tried to add the network printer - it recognized the name
> (\\mhrichter\MPP1100) and asked for a password. I gave it the guest
> password, and it proceeded to try to install it. I put in the CD,
> went through all the (right) moves to install the driver, and then the
> moment of truth:
>
> W98 said I had to reboot.
>
> I knew I was in trouble. I rebooted, and, lo and behold, the printer
> was suddenly offline and unavailable (there was no change to the
> CentOS host or the printer at all).
>
> I deleted the printer to start over, but this time W98 said the
> printer was offline when I input the name and the password.
>
> W98 still can't see the network or any of the shares in the Network
> Neighborhood, but at least I can reach for it by name.
>
> Any doors or windows in this wall?
>
It might be easier to give up.*
For years, I had a single inkjet printer on my modest home network,
physically connected to this machine. It works great once setup until
something changes. (Versions of Windows and/or versions and/or flavors
of Linux on another box.) A while back, I added a laser printer,
choosing one that could go either parallel, USB or ethernet. I got out
my crimpers, made a network cable and haven't looked back. What a
pleasure! It was a breeze to set up and it's alway visible to any
computer on the network.
The point is, unless your time is virtually worthless, you might think
about a print server. Netgear, D-link and Linksys all make them. BTW,
my laser printer is a Brother HL-5250 DN and I'm pretty happy with it.
> Thanks.
>
> mhr
>
> PS: I have always said that I don't really hate Window$, I just prefer
> working in and on Unix/Linux. I don't think that's true any more,
> although I must say that of all the versions of Window$ I've ever
> used, XP is the least objectionable.
>
> PPS: Yes, this is Window$ XP Pro (but I think it's still SP1), and 98
> SE. It's still Window$, a Micro$oft product, which really says it
> all.
> _______________________________________________
> CentOS mailing list
> CentOS(a)centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
--
POLITICS n. Strife of interests masquerading as a contest of principles
--Ambrose Bierce
> Hi, I am writting this message in hope that you can be of a great help to
> me. My husband that has been on this site died suddenly Feb 4th) and I
> can not access my computer. He has a user name and password on the
> system. He has used the Linux and Red Hat to run the computer.... He
> would boot up the system and then I would do my email, documents, etc. I
> never thought to ask him his password or username. There is no one in
> our area that knows how to change the username and password on the Linux
> system... Can you or some one you may know help. I did find a Red Hat
> Boot disk... not sure what to do with it!!!!
>
> I am able to use this email so that is why I am sending this to you
> ,trying to find help. I can be reached through a friend if you can call
> me 970 208 3131..... or email... will be OK also............ I hope
> there is someone to help me get on my computer... Laura
Well, on the one hand, an email like this makes me *very* nervous, since
it reads like a scam, with questions like "how can you email here if you
can't get to his email?"
On the other hand, if true, it's utterly horrible - my ...late... wife
died that way, and it's not exactly a Big Sekret Of Sysadmins that all you
need to do is reboot the server, and assuming it shows the usual "booting
linux in x seconds", all you need to do is hit any key, then type 'e',
then scroll down to the line that starts with the word "kernel"; hit 'e'
again (no quotes, anywhere, of course), and at the end of the line, add
the letter s (for single user mode), then <enter>, then the letter b (for
boot).
It then comes up in single user mode, and all you need to do is to change
his password, if your email is under his account. You can
cat /etc/password
and you'll probably be able to figure out his username; then it's merely
passwd <hisusername>
and give a new password when prompted. When you're done, hit <ctrl-D>, and
let it come up, then you can log in.
mark