From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Description of problem: I suddenly experienced segmentaion fault when I wanted to add and del some users. After strace and help from the nahant ML I found out that /etc/gshadow was in a bad shape. All tools seem to segfault when accessing it, although they should give better output of what's going on and not crash (as they important admin tools). It's not too easy to discover the cause of the problem if you are unfamiliar with strace e.g. Version-Release number of selected component (if applicable): shadow-utils-4.0.3-58.RHEL4 How reproducible: Always Steps to Reproduce: 1. [root@jupiter etc]# useradd xyz 2. Segmentation fault 3. Actual Results: User was added although the error occured. Expected Results: No error. Additional info: strace of the useradd (last lines): open("/etc/gshadow", O_RDWR|O_LARGEFILE) = 9 fstat64(9, {st_mode=S_IFREG|0400, st_size=75908, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d78000 read(9, "root:::root\nbin:::root,bin,daemo"..., 4096) = 4096 read(9, ",ns,,,ns,,s,,,,,s,,,,,ins,ns,s,,"..., 4096) = 4096 read(9, "s,,ns,s,,,,s,,,,s,,,,,,ns,s,,s,,"..., 4096) = 4096 read(9, ",s,,,,,ins,ns,,ns,s,,s,,,,ns,,s,"..., 4096) = 4096 read(9, ",,,,,s,,s,,,ins,ns,s,,ns,s,,s,,,"..., 4096) = 4096 read(9, "s,,,,,,,ins,s,,ns,,s,,,s,,,,,ns,"..., 4096) = 4096 read(9, ",s,s,,,,,ins,ns,s,,s,,,,ns,s,,s,"..., 4096) = 4096 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Process 5852 detached
If you like I can attach the corrupt gshadow.
Fine, could u attach your gshadow, please.
Created attachment 123469 [details] gshadow file that caused it
This bug is fixed in shadow-utils-4.0.3-60.RHEL4, which is included in update #3. *** This bug has been marked as a duplicate of 125510 ***