Jump to content

Problem with root


Guest duffmckagan
 Share

Recommended Posts

Guest duffmckagan

Whenever I try to do anything that requires root privileges, Mandriva pops up a dialog, requiring me to enter the Root Password.

 

But when I enter the *Correct* Password, it says -- Incorrect Password.

 

When I try to su - to root from Konsole, I get the following:

 

[amit@Copperskull ~]$ su -

Password:

su: warning: cannot change directory to /root: Permission denied

su: cannot set groups: Operation not permitted

[amit@Copperskull ~]$

Why is that?

 

Also, some days ago, i started using Mandriva back again. (Before that, everything used to work fine. I simply didn't use Mandriva in the Interim (used another Linux Distro.)

 

Didn't chmod or chown any folder pertaining to Mandriva (from other distro.)

 

I also tried recreating the user, and checked the permissions. It seems to be fine.

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

One thing you can try to do is boot from the Mandriva CD/DVD, press F1 and type linux rescue.

 

That will boot, and give a menu, choose option to get to console screen.

 

Now, need to find out where your "/" partition is, so type:

 

fdisk -l /dev/hda

 

this will list your partitions, if not then try sda instead, depending on hard disk type IDE or SCSI/SATA. Now, once you've found which one it is:

 

mount /dev/hdax /mnt

 

replace x with the number of the partition. Then type the following:

 

chroot /mnt /bin/bash
passwd root (reset to what you want it to be)
chown -R root:root /root
exit
umount /mnt
reboot

 

and see if that helps.

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...