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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-14-2004, 08:52 AM
|
#1
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
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
|
|
|
06-14-2004, 09:50 AM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Original Poster
Rep:
|
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 !
|
|
|
06-14-2004, 10:31 AM
|
#3
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Original Poster
Rep:
|
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.
|
|
|
06-14-2004, 10:36 AM
|
#4
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Original Poster
Rep:
|
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
|
|
|
06-14-2004, 02:55 PM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
06-14-2004, 03:17 PM
|
#6
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|