Jump to content

cannot change password after enabling selinux


aioshin
 Share

Recommended Posts

after I enabled SELINUX in a Centos box, It does not allow me anymore to change my password, wether as root or as regular user, or It wont allow me to change the root passwd, though I still able to login as root. the following errors occurs:

 

when as root:

 

[root@centos01 user]# passwd

Changing password for user root.

New UNIX password:

Retype new UNIX password:

passwd: Authentication failure

 

when as reg user:

[user@centos01 ~]$ passwd

Changing password for user user.

Changing password for user

(current) UNIX password:

New UNIX password:

Retype new UNIX password:

passwd: Authentication token manipulation error

 

have'nt really familiarized yet this SELinux, so Im not really sure how to fix it, I'd enable it the other day, but only today I realized that there's a problem.

any idea?

 

[moved from Everything Linux by spinynorman]

Edited by aioshin
Link to comment
Share on other sites

Guest anon

I know very little about SElinux, but as i recall from dabbling with it, it doesn't like you logging in as root.

You should use sudo instead to carry out root chores. If you want to disable Selinux until you find out more, i believe the command is:

echo 1>/selinux/disable

......or something like that.

Link to comment
Share on other sites

Guest Adriano1

No, this problem is caused by an incompatibility between selinux and reiserfs (and perhaps other journaled filesystems). You can't use selinux on a reiser filesystem. I had the same problem installing Fedora Core 3.

Link to comment
Share on other sites

You actually shouldn't have the ability to install CentOS on reiserfs. My guess is you are using ext3 right?

 

After you enabled SELinux, did you relabled the file system before reboot? If you haven't, this is what I would do,

 

Boot your box, edit the kernel runline with "selinux=0" appended to the end of it,

 

touch /.autorelabel; reboot

 

For more on SELinux

 

 

http://fedora.redhat.com/docs/selinux-faq-....html#id2825207

 

http://www.redhat.com/docs/manuals/enterpr.../selinux-guide/

Link to comment
Share on other sites

As far as ricerfs, I should have stated it.

 

"RHEL does not support or give you the ability to do anything other than ext2/3, there for, CentOS does not support or give you the ability to do anything other than ext2/3" :D

 

So if your using ricerfs, good look on how you installed that and got it to boot :P

Link to comment
Share on other sites

Guest Adriano1

Easy. It was fedora, not RHEL. You can install other filesystems, you just have to boot the install with "linux reiserfs" or "linux xfs" for example.

Link to comment
Share on other sites

You actually shouldn't have the ability to install CentOS on reiserfs.  My guess is you are using ext3 right?

 

After you enabled SELinux, did you relabled the file system before reboot?  If you haven't, this is what I would do,

 

Boot your box, edit the kernel runline with "selinux=0" appended to the end of it,

 

touch /.autorelabel; reboot

 

For more on SELinux

 

 

http://fedora.redhat.com/docs/selinux-faq-....html#id2825207

 

http://www.redhat.com/docs/manuals/enterpr.../selinux-guide/

 

thanks cybrjacle, it works, yeah ur right, i am using ext3... and after doing the autorelabel, as what what you've said, I am now able to change the passwd of users and root... actually, I did it like this: disable selinux first via system-config-security then reboot, then enabled it again, then touch /.autorelabel then reboot. now its ok...

 

:thanks: for the replies

Link to comment
Share on other sites

Easy. It was fedora, not RHEL. You can install other filesystems, you just have to boot the install with "linux reiserfs" or "linux xfs" for example.

 

Well, he clairly stated he was using CentOS, so I was stating an FYI, ext3 is it buddy :D

 

No ricer on CentOS

Link to comment
Share on other sites

Guest Adriano1

I thought you were asking me. I didn't know about CentOS using only ext3.

 

As an aside, shouldn't a secure system not use a journaled fs _at_all_? I read somewhere about some kinds of security risks inherent to journaled filesystems, because information about files is kept not only in the files themselves but also on the journal file.

Link to comment
Share on other sites

dunno, I would have to read what you read for better understanding of what you are talking about.

 

There really isn't much of an option though, ext2 really isn't geared to be used for large drives and enterprise situation.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...