file system permission is set to to read and write only
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
file system permission is set to to read and write only
trying to improve my file permission security I typed the following command
#find / \( -type f -not -perm 0600 -exec chmod 0600 '{}' ';' \) -or \( -type d -not -perm 0700 -exec chmod 0700 '{}' ';' \)
I have tried changing the file permission settings of every file on the system to 0777,but still cant login using the X window and am failing to login as root user even in CMI mode
Am using Fedora15
trying to improve my file permission security I typed the following command
#find / \( -type f -not -perm 0600 -exec chmod 0600 '{}' ';' \) -or \( -type d -not -perm 0700 -exec chmod 0700 '{}' ';' \)
I have tried changing the file permission settings of every file on the system to 0777,but still cant login using the X window and am failing to login as root user even in CMI mode
Am using Fedora15
I'll refrain from any outright sarcasm (we've all done things we wish we hadn't!), but why would you think that would improve security in the first case?
So let's start with, "Don't do that!".
Because you did this for the entire filesystem, your best move would probably be to reinstall. Otherwise you will likely be stumbling over permission problems for a long time into the future and trying to sort them out individually will exhaust you and everyone on the forums!
I am not a Fedora user, but I think Fedora 15 is ancient as well, so maybe restart with a newer version. And read up on GNU/Linux filesystem basics and security along the way.
Gosh, after making every program in the system non-executable, I wonder why it wouldn't run. In all likelihood, full recovery will only be possible by re-installing. What you can try, though, is to boot from the installation medium in rescue mode (I presume that's how you've been trying to fix things), mount your full file system tree starting with the root on some temporary directory, and then try restoring the permissions thus:
Code:
rpm --root /mnt/tmpdir --setperms -a
That should restore the permissions on all files and directories that are owned by any package, but will not affect anything that any program created later when run, which of course would include all of your personal files.
As I indicated at the start, massive permission mixups are generally considered unrecoverable unless you have a complete backup. Even if you get the system to run again, you will find yourself continually running into strange problems caused by incorrect permissions (to say nothing of the security implications of all those mode 777 files you have now).
I thought i was improving my files permission security by typing
#find / \( -type f -not -perm 0600 -exec chmod 0600 '{}' ';' ) -or \( -type d -not -perm 0700 -exec chmod 0700 '{}' ';' )
The system was down until
I tried to change the file permission of every file on the system to 0777, but now I cant login using the X-window neither am I able to run programs as a root
I am using Fedora 15
The find command above does the following:
any regular file will be set to read/write by root only. Nothing can be executed anymore, even by root.
any directory willbe set to read/write/execute by root only. Nobody but root can list any directory, create files in them or cd to them.
The easiest way to repair this is reinstallation. If there is some data you need to recover first, use a live DVD. Any live DVD, not only Fedora, is applicable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.