Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
'chmod -R 777 /' destroyed all
Name: Six Date: April 8, 2003 at 21:26:08 Pacific OS: Slackware 9 CPU/Ram: 1.3 512
Comment:
I did a very dumb thing: chmod -R 777 / to my system (yes, bad idea I know) and now everything is broken. I cannot log in as root because I get a 'PAM-security: /etc/security file writable by everyone or is a regular file' or something along that. I cannot su to root as a normal user, it complains: "cannot setgid root" I cannot even startx because I get "Xfree must be started setuid root"
Can I somehow revert my permissions? Or what can I do to get it all going? I can use a boot CD like Knoppix if necessary.
Name: David Perry Date: April 9, 2003 at 04:43:33 Pacific
Reply:
Yes you are right. Assigning rwx to the world for your entire box was a dumb thing. There are good reasons for the restricted permissions. Easiest answer is to re-install as you have done major far reaching damage to the state of your machine. You could in theory boot from a rescue disk and change enough to get it to stop whining but that would not fix the rest of your system.
Summary: Did you try changing the permissions on the mount point after you mounted the partition or before? You will have to do this as root. The mount point directory will loose its permissions and revert to ...
Summary: I'm not a 100% positive what your asking about your lan parties but with Samba you will need to allow full read/write access to that directory. Make sure the sub-directories are not owned by someone ...
Summary: Hmm...how to interpret your post. Are you trying to set permissions so that all files are accessible by all users? To do that, use this command as root: chmod -R 777 / However, that is a very bad ide...