Error Removing Shadow Group Entry
Hi, I upgraded my redhat webserver from 6.1 to 7.1. I did this by a fresh install on a new machine. I copied shadow, password and group files by tar.gz But now users cannot log in via ftp. Their email works and I can do a "su
very important to use a consistent manner in adding user names/groups. It's often the first thing that goes wrong. Additionally, the shadow file is an important file, but if the group or user does not exist, it throws the ball back to you. It's important to not touch the shadow file unless you are very sure of yourself and know exactly why you are fixing something there. It has a tendency to throw more than just a little bit of a fit when you mess with it. I have also found that adding a user works by creating directories and adding to files in a certain pattern as is evident by the adduser file. Additionally, when you remove a user properly, it removes https://www.redhat.com/archives/redhat-list/2001-July/msg01936.html all file line items, directories and such in the reverse pattern. If this does not happen, you may need to try another switch such as -R, meaning recursive. Hope this further helps in your endeavors. Kimi Adams On Sat, 2003-02-15 at 16:52, Lynn David Newton wrote: > > Michael> Thanks Lynn. > Michael> What does this mean? > > Michael> [root@localhost bmike1]# groupdel Downloadtest > Michael> groupdel: error removing shadow group entry > Michael> [root@localhost bmike1]# > > It means http://lists.phxlinux.org/pipermail/plug-discuss/2003-February/035810.html it didn't happen. In your mail below you said > the group name was "downloads" not "Downloadtest". > Could this possibly be the source of your problem? > > Remember too that Unix is case-sensitive. The string > "Xyz" is not the same as "xyz". Furthermore, although > it's not forbidden to do otherwise, it's standard > practice to use lower case login and group names. I > highly recommend following that practice. > > Michael> On Saturday 15 February 2003 02:37 pm, Lynn David Newton wrote: > Michael> remove it and then attempt to add it but the > Michael> maCHINE WON'T let me. It says that I have a > Michael> group with to similar of a name. I look in > Michael> my groups listing and there is a group > Michael> called 'downloads' > >> > >> groupdel downloads > >> > >> But first consult the man page for groupdel(8) because > >> there are some minor considerations. > >> > >> Your situation suggests that the original user was > >> removed improperly or incompletely. Most Unix/Linux > >> systems these days are set up to create a group by the > >> same name as the user and make that the new user's > >> default group. If the user's name is simply whacked out > >> of the password file, the group name remains, and you > >> can't create a ne
Redhat or CentOS you may see this when running system-config-users: "The user database cannot be read. This problem is most likely caused by a mismatch in /etc/passwd and /etc/shadow. The https://scottlinux.com/2010/06/27/repair-etcpasswd-and-etcgroup/ program will now exit." Eek! So something is not right. Try these commands which *may* solve your problem.
This will check for duplicates and errors in /etc/passwd and /etc/shadow: pwck This will check for duplicates and errors in /etc/group and /etc/gshadow: grpck Here is an example output:[user@server ~]$ sudo pwck
user adm: directory /var/adm does not exist
error removing user uucp: directory /var/spool/uucp does not exist
user games: no group 100
user gopher: directory /var/gopher does not exist
user pcap: directory /var/arpwatch does not exist
user avahi-autoipd: directory /var/lib/avahi-autoipd does not exist
user asdf: directory /home/asdf does not exist
user asdf5: directory /home/asdf5 does not exist
duplicate shadow password entry
delete line 'bin:*:14777:0:99999:7:::'? y
error removing shadow duplicate shadow password entry
delete line 'daemon:*:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'sync:*:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'shutdown:*:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'news:*:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'nobody:*:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'nscd:!!:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'mailnull:!!:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'nfsnobody:!!:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'haldaemon:!!:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'ntp:!!:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'distcache:!!:14777:0:99999:7:::'? y
duplicate shadow password entry
delete line 'named:!!:14777:0:99999:7:::'? y
no matching password file entry in /etc/passwd
delete line 'netdump:!!:13459:0:99999:7:::'? y
no matching password file entry in /etc/passwd
delete line 'beagleindex:!!:13459:0:99999:7:::'? y
no matching password file entry in /etc/passwd
delete line 'defang:!!:13468::::::'? y
no matching password file entry in /etc/passwd
delete line 'mailman:!!:14250::::::'? y
pwck: the files have been updated
Whew! Category: linux sysadmin Tags: /etc/group, /etc/passwd, bash, lin
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 13 Oct 2016 04:31:26 GMT by s_ac4 (squid/3.5.20)