www.centos.org Forum Index CentOS 5 - Software Support Error updating ecryptfs-utils-75-8.el5
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
Error updating ecryptfs-utils-75-8.el5 | #1 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/8/12
From
Posts: 12
|
Hi,
So basically I ran YUM to check for updates and saw there was once for ecryptfs-utils, I chose to update, it downloaded fine but when it came to install I was prevented with an error. I have highlighted the exact error message the output from my terminal. Quote: [user@localhost ~]# yum update I have checked the permissions on /etc/group and they show up as, Quote: [user@localhost ~]# ls -ls /etc/group I have permisson to write to file. I also ran ls -Z Quote: [user@localhost ~]# ls -Z /etc/group But still no luck. I have Googled but came up with nothing regarding this error for ecryptfs-utils, I saw some people were having errors with writing to /etc/group but I can so I believe that it not the issue, but I could be wrong. Any help would be appreciated. Regards |
||
Posted on: 2012/3/23 8:17
|
|||
|
Re: Error updating ecryptfs-utils-75-8.el5 | #3 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Quote:
Both the SELinux context and the permissions are wrong. They should be as shown in Trevor's post. One must wonder how they got that way and, if other files are also in a similar state. Might try the following for a start: Perhaps this thread should move to the Security forum if you can't explain it. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/23 15:18
|
|||
|
Re: Error updating ecryptfs-utils-75-8.el5 | #4 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/8/12
From
Posts: 12
|
I have changed permissions and security context and now updating ecryptfs-utils works perfectly. It was strange how the permissions and security context had changed.
I ran Quote: ls -lZ and no other file was affected. This box isn't connected to the internet, And no one else has access to it so I must conclude that I did something to cause these irregularities. Thanks. |
||
Posted on: 2012/3/24 8:02
|
|||
|
Re: Error updating ecryptfs-utils-75-8.el5 | #5 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
It looks like the file had the SELinux context of a user's home directory. If the original was somehow deleted or moved, and replaced by a copy, that could explain it.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/24 15:06
|
|||
|
Re: Error updating ecryptfs-utils-75-8.el5 | #6 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/8/12
From
Posts: 12
|
Quote:
Yeah that's sounds right I reinstalled the server and backed up the config to samba file server which is also running CentOS, I didn't realise. Now I will though Much regards |
||
Posted on: 2012/3/24 18:37
|
|||
|
Re: Error updating ecryptfs-utils-75-8.el5 | #7 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
If backing up you could use a tar archive with the "--selinux" switch to preserve the context.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/24 23:01
|
|||
|
Re: Error updating ecryptfs-utils-75-8.el5 | #8 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2009/9/24
From Brighton, UK
Posts: 6335
|
Also, if you cp files then the selinux context gets set automatically to the right thing based on its destination but if you mv them then it brings the context with the file that's being moved and that's how it gets the wrong value.
|
||
|
_________________
Linux/VoIP Systems Administrator |
|||
Posted on: 2012/3/25 2:26
|
|||
|
Re: Error updating ecryptfs-utils-75-8.el5 | #9 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2009/1/18
From 44°49′14″N 20°27′44″E
Posts: 661
|
Just a quick question: did you alter any of the output code posted for security reasons?
Cause it not, I believe this to be the culprit: Quote:
Strangely nobody noticed that the yum update is being run as a non-root user, or simply neglected to ask.... ![]() EDIT: Normally, it wouldn't occur to me either, since I get "You need to be root to perform this command." in an attempt to run it as non root user. |
||
|
_________________
Milos |
|||
Posted on: 2012/4/28 18:05
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
culley






You cannot start a new topic.
You can view topic.