LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-17-2004, 04:04 PM   #1
chumley115
LQ Newbie
 
Registered: Feb 2004
Location: Oregon
Distribution: Mandrake 9.2
Posts: 28

Rep: Reputation: 15
no root access and other annoyances


Hi ,
1. Main issue: I am in a real newbiefix. I tried to change my permissions of all my files since I am the only one that uses this computer. I am running dual boot XP and Mandrake 9.2. Mandrake 9.2 was running well until I decided to play around (that's what it's for in my opinion), well I tried to change the permission to a file can't remember what and it said access denied you don't have enough permissions or something like that and so I tried to su into root and it didn't work for some reason. So, silly me, I tried to chmod -R 777 / to change all of my file permissions so I have access to them. Well that did not work and I forget what message I got but then I went to su again and this time I got the following:"su: warning: cannot set groups: operation not permitted". So then I tried su - and I got the following message: "su: warning: cannot change directory to /root: permission denied. and su: cannot set groups: operation not permitted" I can get into root using single user at login, but then I am at a terminal and I still don't know how to correct the above problem from there.

2. I use KDE 3.1 and the task bar that brings up the menu on the left of the screen does not work now. I click on it and something behind the taskbar peeks over the top, but nothing happens.

3. In Mozilla 1.6, I have set it up so that a wav file I like is supposed to notify me that new email has arrived, but all I get it the default bing. I know the wav file works cuz I tried it in XMMS.

4. I have a bunch of images loaded into KDE for wallpaper and sometimes they are just beautiful and other times they are really unrecognizable (great big pixels)

5. I KNOW there are ways to fix all of the above, but I don't know what they are. I thought I had screwed things up so bad that I should load Mandrake 10.0 and it took me FOREVER to get the isos recorded and they won't either. I can't seem to get past the LILO boot loader. I have changed my BIOS to begin with CDROM, but it bounces to the lilo menu and I have to load XP or Linux.

6. Thanks for listening and helping this poor schlub. I had to get my wife her own computer cuz I was always messing the one we had up. Now she's happy and I am still messing things up.
 
Old 03-17-2004, 06:05 PM   #2
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Log in in single user mode, and check the permissions on /root

'ls -la /root' will show you ownership andpermissions on the root directory (shown as .) and all permissions on it. The first few lines should be something like this -


liam@loki:~$ ls -la /root/
total 2.2M
drwxr-xr-x 16 root root 1.0K 2004-03-18 10:52 ./
drwxr-xr-x 21 root root 1.0K 2004-03-18 12:26 ../

to make sure, you should run these commands

cd /
chown -R root:root /root
chmod iR U+X /root
chmod -R u+rwX /root

This will make sure that everything in /root is a) owned by root, b) is readable and writable by root and c) all directories have execute permissions for root.

After that, you should be able to log in again.

I also recommend using letters with chmod (like chmod uga+rwx instead of chmod 777) while you're learning, it's a little easier to understand.
 
Old 03-17-2004, 10:33 PM   #3
chumley115
LQ Newbie
 
Registered: Feb 2004
Location: Oregon
Distribution: Mandrake 9.2
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks very much. I'll give it a try.
 
Old 03-17-2004, 10:48 PM   #4
chumley115
LQ Newbie
 
Registered: Feb 2004
Location: Oregon
Distribution: Mandrake 9.2
Posts: 28

Original Poster
Rep: Reputation: 15
Just gave it a try and I got an "invalid mode string" for the iR when I typed
chmod iR U+X /root. The other two: chown -R root:root /root and chmod -R u+rwX /root
appear to have worked as I got no error messages.

I dropped out of root with exit and the 9.2 started and I went to a terminal and there
I was chumley: $ I typed su and password and I got the same error message:
"su: cannot set groups: Operation not permitted."

Did I type something wrong?
 
Old 03-17-2004, 11:44 PM   #5
chumley115
LQ Newbie
 
Registered: Feb 2004
Location: Oregon
Distribution: Mandrake 9.2
Posts: 28

Original Poster
Rep: Reputation: 15
Just checked a file in the my chumley directory called .xsession-errors and this is
what it has in it, but I don't know what it means.

cpp: installation problem, cannot exec `cc1': No such file or directory
startkde: Starting up...
kbuildsycoca running...
kio (KService*): WARNING: The service/mime type config file
image/x-webshots.desktop
does not contain a ServiceType=...
or MimeType=... entry
mcop warning: user defined signal handler found for SIG_PIPE, overriding
mcop warning: user defined signal handler found for SIG_PIPE, overriding
WARNING: Kicker: Error loading background theme pixmap
WARNING: Kicker: Error loading background theme pixmap
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
kdecore (KAction): WARNING: KAction::plugAccel(): call to deprecated action.
konsole: cannot chown /dev/pts/0.
Reason: Operation not permitted
konsole: chownpty failed for device /dev/pts/0::/dev/pts/0.
: This means the session can be eavesdroped.
: Make sure konsole_grantpty is installed in
: /usr/bin/ and setuid root.
konsole: cannot chown /dev/pts/0.
Reason: Operation not permitted
konsole: chownpty failed for device /dev/pts/0::/dev/pts/0.
: This means the session can be eavesdroped.
: Make sure konsole_grantpty is installed in
: /usr/bin/ and setuid root.
konsole: cannot chown /dev/pts/0.
Reason: Operation not permitted
konsole: chownpty failed for device /dev/pts/0::/dev/pts/0.
: This means the session can be eavesdroped.
: Make sure konsole_grantpty is installed in
: /usr/bin/ and setuid root.
konsole: cannot chown /dev/pts/0.
Reason: Operation not permitted
konsole: chownpty failed for device /dev/pts/0::/dev/pts/0.
: This means the session can be eavesdroped.
: Make sure konsole_grantpty is installed in
: /usr/bin/ and setuid root.
 
Old 03-18-2004, 01:30 AM   #6
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Code:
chmod -R 777 /
this is a very bad idea..the problem you're having is that /bin/su needs to be setuid root
you can set it by doing
Code:
chmod 4755 /bin/su
in single user mode

I recommend that you find a way to set the permissions back the way they were(maybe get someone with a similar setup to generate a list), or just do a reinstall.
 
Old 03-18-2004, 08:08 AM   #7
Marc A
Member
 
Registered: Mar 2004
Location: Bxl Europe
Distribution: Debian/Ubuntu
Posts: 84

Rep: Reputation: 15
Hi,

liamoboyle gave you the lines and i think there is a mispelling in the fourth one
cd /
chown -R root:root /root
chmod iR U+X /root
chmod -R u+rwX /root
I've re-read man chmod and chmod --help I don't find no i letter for anithing
So I think it should read #chmod -R U+X /root and make the solution.

Hopes this works, Marc A
 
Old 03-18-2004, 10:37 AM   #8
chumley115
LQ Newbie
 
Registered: Feb 2004
Location: Oregon
Distribution: Mandrake 9.2
Posts: 28

Original Poster
Rep: Reputation: 15
Demonbane: Thank you. It worked. I now have su access. Now on to other problems.
Liamoboyle:
I tried the chmod -R U+X /root and it gave me an invalid parameter U+X so I tried u+x and
same result. Oh well, at least I have su access now.
Now if anyone knows where I can straighten out those other annoyances, I sure would
apprecicate it.
Thanks again guys.
Funny thing about the resolution of my wallpaper. Last night I was playing LBreakout 2 and the resolution of the wallpaper was really bad as to be unrecognizable and then after awhile (having done nothing except play the game) the wallpaper cleared up and the pictures were clear as a bell. Weird.
 
Old 03-18-2004, 03:39 PM   #9
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Apologies, my bad typing :-/

it should be u+X

which says, give the user who owns it execute permissions on the directories.
 
Old 03-18-2004, 03:40 PM   #10
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
And more bad typing, thanks Marc A. it was meant to be -R. If only the forums would pop up errors on bad syntax
 
Old 03-18-2004, 09:37 PM   #11
chumley115
LQ Newbie
 
Registered: Feb 2004
Location: Oregon
Distribution: Mandrake 9.2
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks again guys. It worked after I changed the command to chmod -R u+X /root

Any ideas about my other questions or should I only post one question at a time?
 
Old 12-12-2005, 01:20 PM   #12
tigeir
LQ Newbie
 
Registered: Oct 2002
Posts: 3

Rep: Reputation: 0
2006 Edition

Thank you all.

I ran into the same problem in 2006. I followed the suiggestions above and have rescued my installation. I had been reckless with my permissions in my dual boot of Suse so that I could gain easy access to my Mandriva Home folders - I learnt my lesson.

Now I just need to figure out how to resurrect Suse after installing the new kernel...it wouldn't do to have two useable OSes at once would it?

Rob
 
Old 12-12-2005, 02:31 PM   #13
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
This message in .xsession-errors is pretty clear:

: Make sure konsole_grantpty is installed in
: /usr/bin/ and setuid root.

Check if this has any effect:

chmod 4755 /bin/su/konsole_grantpty
 
Old 12-12-2005, 02:58 PM   #14
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Changing it so everything on your system can be run by anyone has got to have major security implications, though. It almost seems like the best thing to do (if there's no way to reset them all back) would be to set everything on your system as owned by/in the group of root and then unlock things one at a time rather than the other way around. Just my two cents...
 
Old 12-12-2005, 09:24 PM   #15
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Multiple kernels

Quote:
Originally Posted by tigeir
Now I just need to figure out how to resurrect Suse after installing the new kernel...it wouldn't do to have two useable OSes at once would it?
I would suggest two things here
- it's simple to have several kernels installed, so that if a new one fails you can boot to the old one and fix the problems. What procedure are you using to install your new kernel? What boot manager are you using?
- have a bootable cd (such as Knoppix) nearby for fixing things, so convenient if things do really die hard.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Debian 3.1 annoyances subjazz Debian 4 09-24-2005 09:22 PM
gnome 2.6 annoyances Kristian2 Slackware - Installation 0 07-18-2004 04:26 AM
mplayer annoyances bulliver Linux - Software 2 04-21-2004 03:25 PM
couple of annoyances e1000 LQ Suggestions & Feedback 8 02-01-2004 12:02 PM
Gnome annoyances... sardaukar_siet Linux - Newbie 6 03-25-2003 03:45 PM


All times are GMT -5. The time now is 05:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration