LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-14-2004, 08:52 AM   #1
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
reset all file permissions, nothing works, need help fixing


Hey guys.
i recently attempted to change my root file system from ext3 to XFS.
it all went wrong, so booting knoppix, i had to mount my nre root XFS pattion,
mount an empty Ext3 partiton, and copy all the files from XFS to ext3. thus re-setting all my file permissions.

at first, nothing worked, couldnt start X, couldnt access home directory.

anyways, ive fixed the home directory by
chmod 700 -R /home/myuser
chown -R myuser /home/myuser

and i set /tmp and /var to be read /write by all users.

i then restarded my font server

and after that, i can now startX. however KDE is acting strangly.
for eample, when i create a new link to application on the desktop, the link fails with the error kdeinit could not start "program name"

also, when in the main menu i try to load konsole, it loads the window and all the tool bars, but no prompt is shown, and it will not take input.

i found some files relating to kde in /opt/ so i set othat to read/write too.

that am i missing ???

thanks
 
Old 06-14-2004, 09:50 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
everything works ine when i log in as root.
i think the problem lies with suid,

ive set suid bit on the binary startx, but this doesnt work. i dont want to just suid all my binary's, in X11R6 but ii dont know which ones i should do !
 
Old 06-14-2004, 10:31 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
well... partly to show off, and partly incase any one else ever finds tis thread and has had the same problem.....

i fixed with
chmod +s /usr/libexec/pt_chown
chmod 666 /dev/pty*
chmod 666 /dev/tty*

well, when i say fixed, i mean my konsole is back.

all my openGL programs still segfault if i run without root permissions.
 
Old 06-14-2004, 10:36 AM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
and by using
Quote:
strace -o error.log glxgears
tail error.log
i found errors reported about unable to open file '/dev/zero'
so chmod 666 /dev/zero and glxgears nolonger segfaults.

if you ever want to learn somthing about linux... do somthing stupid like reset all file permissions.
you learn loads, and look loke a but of a guru linux porn star in forums
 
Old 06-14-2004, 02:55 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I suspect that you haven't changed the permissions of your hidden directories.
In your home directory try:
Code:
chown username:username -R * .*
will be needed to get everything.

If I may make a suggestion, free up a partition of only a few gig and install another installation. Use that as a guide as to what the permission should be. Then you can remove that small installation. For example, If you have /var on a seperate partition, you could mount relocate /var in a subdirectory of the root dir; remove the old /var partition and install in that space.
 
Old 06-14-2004, 03:17 PM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Original Poster
Rep: Reputation: 47
all is fixed. now.
the rpoblem is i performed a network install, which took 7 hours, and i needed my system back and up again fast. anso, i didnt have the needed free space.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fixing mount permissions? zero79 Debian 6 05-06-2005 10:15 AM
Reset permissions spaceballs Slackware 8 03-02-2005 02:45 PM
wireless only works when router is reset dns21 Linux - Wireless Networking 2 12-19-2004 02:48 AM
Fixing MySQL root account permissions. TexasDex Linux - Software 2 02-02-2004 09:39 PM
File permissions keep getting reset johnsmith1899 Linux - Networking 4 05-19-2003 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:09 PM.

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