reset all file permissions, nothing works, need help fixing
Linux - GeneralThis 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.
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.
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.
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 !
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.