LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2008, 06:43 PM   #1
mehranalmasi
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Rep: Reputation: 0
Unhappy Problem re-installing sendmail on Redhat 7.2


Hi,
My sendmail install on RH 7.2 failed to work as intended so I decided to uninstall the RPM and reinstall sendmail from CD.
After uninstalling, I get a problem when the RPM tries to rename the /usr/sbin/sendmail.

error: unpacking of archive failed on file /usr/sbin/sendmail: cpio: rename failed - Operation not permitted

The permissions for the file ar: -r-sr-xr-x

Please help!

thanks.

Last edited by mehranalmasi; 07-30-2008 at 06:45 PM.
 
Old 07-30-2008, 10:04 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Do you know that RH7.2 was discontinued many yrs ago and is not supported, neither are updates avail, which means its wide open to exploits?
If at all possible, use a modern distro eg Fedora 8 or 9.
It also means you'll have trouble getting help because almost nobody else is running it.
 
Old 07-31-2008, 11:34 AM   #3
mehranalmasi
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I do know! this machine is not exposed to internet and only does cvs. I am hoping that the solution to the problem I have is not unique to the version.
 
Old 07-31-2008, 12:22 PM   #4
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
It looks like he file does not have write permissions. Temporarily make it writable with:

chmod 777 /usr/sbin/sendmail

Make sure permissions are set back (if the rpm doesn't automatically do it) with:

chmod 555 /usr/sbin/sendmail


Hope this helps!
 
Old 07-31-2008, 03:27 PM   #5
mehranalmasi
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
It seems like nothing is permitted on the file!

[root@sbin]# chmod 777 /usr/sbin/sendmail
chmod: changing permissions of `/usr/sbin/sendmail': Operation not permitted
 
Old 07-31-2008, 03:29 PM   #6
mehranalmasi
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
[root@sbin]# ls -l sendmail
-r-sr-xr-x 1 root root 451076 Aug 31 2001 sendmail
 
Old 08-01-2008, 01:35 AM   #7
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
Hmm, strange...

Okay, try going into runlevel 1 with:
telinit 1

You should login as root and then try changing the permissions and installing the rpm within this runlevel.

If that doesn't work, the next best thing I can think of is trying to boot a live-cd, changing the permissions from there (so that the the root partition isn't being actively used) and, if you can, run the rpm program from the live-cd. You can also try chroot'ing into your root partition from the live-cd with:
chroot /path/to/root/mount


Good luck!
 
Old 08-05-2008, 01:20 PM   #8
mehranalmasi
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I was hoping that it wouldn't be that strange
I tried changing permissions after running telinit 1, but I got the same permissions problem. If by any chance it helps, the mv command gives me
mv: cannot unlink `sendmail': Operation not permitted
mv: cannot remove `sendmail': Operation not permitted

I think by booting to a live-cd you mean to boot from the installation CD? when I do, which option should I choose?

thanks,
Mehran
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem re-installing sendmail mehranalmasi Linux - Newbie 1 08-01-2008 02:37 AM
redhat+dovecot+sendmail problem rh4 Linux - Networking 0 05-14-2005 05:18 PM
Problem with Sendmail (Redhat 9) sangjin Linux - Newbie 2 01-05-2004 02:21 AM
Problem with Sendmail (Redhat 9) sangjin Linux - Newbie 0 01-05-2004 01:42 AM
startup sendmail problem redhat 8.0 omlip Linux - Distributions 5 02-10-2003 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration